Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » gdb debug stepping behavios unexpectvily
gdb debug stepping behavios unexpectvily [message #902323] Fri, 17 August 2012 05:05 Go to next message
anil kumar is currently offline anil kumarFriend
Messages: 17
Registered: January 2012
Junior Member
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 14:04 Go to previous messageGo to next message
Nick Schweyer is currently offline Nick SchweyerFriend
Messages: 175
Registered: July 2009
Senior Member
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.



Niko

Eclipse-CDT Version: 2019-12 (4.14.0), Win10 64bit
Re: gdb debug stepping behavios unexpectvily [message #902459 is a reply to message #902414] Fri, 17 August 2012 17:18 Go to previous message
anil kumar is currently offline anil kumarFriend
Messages: 17
Registered: January 2012
Junior Member
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: Fri Apr 19 09:24:01 GMT 2024

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

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

Back to the top