Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » gdb debug stepping behavios unexpectvily
gdb debug stepping behavios unexpectvily [message #902323] Fri, 17 August 2012 01:05 Go to next message
Eclipse UserFriend
i am new to C and C++, i have created a simple Helloworld.cpp project using managed make by selecting cygwin as toolchain,and build the project ,exe got generated successfully, then i am running the exe as Debug as->local c/c++ Application,the application opened in debug mode and Helloworld.cpp opended and break point first statement of main method,then i have started clicking on step in function,after some clicks gdb hang's ,i am not able to do any thing.
only Terminal button is enabled ,i have attached the screen shots also please have a look, if i give "info thread" command in gdb console getting following trace.
info thread
Id Target Id Frame
2 Thread 5800.0x1690 0x7c90e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
* 1 Thread 5800.0x1a20 0x610b5d00 in dirname () from /cygdrive/c/cygwin/bin/cygwin1.dll

even i am not able to see the helloworld.cpp output.

what is the problem and how to resolve it.
Re: gdb debug stepping behavios unexpectvily [message #902414 is a reply to message #902323] Fri, 17 August 2012 10:04 Go to previous messageGo to next message
Eclipse UserFriend
hi,

when the program has run to the line with "cout << ..." and you step one line ahead then the output should be visible. But if the Eclipse window is in front of the programs output window you will not see it automatically. You have to click on the programs output window to put it on top of all windows. Then - hopefully - you will see it.

I am using Eclipse with Linux, but the behaviour of gdb should be the same as in Windows.

Re: gdb debug stepping behavios unexpectvily [message #902459 is a reply to message #902414] Fri, 17 August 2012 13:18 Go to previous message
Eclipse UserFriend
you means to say , while "cout<< " statement we didn't apply step in function? and i am keeping program window top even,i am not able to see any output,simply it hangs.

Previous Topic:Simulation randomly stop
Next Topic:how to implement custom build in CDT
Goto Forum:
  


Current Time: Mon Apr 21 08:58:26 EDT 2025

Powered by FUDForum. Page generated in 0.04598 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top