Home » Language IDEs » C / C++ IDE (CDT) » Debugging not possible in Eclipse
| |
Re: Debugging not possible in Eclipse [message #657142 is a reply to message #657041] |
Tue, 01 March 2011 17:44 |
hefeweizen Messages: 32 Registered: July 2009 |
Member |
|
|
OS = Mac OS X Leopard 10.5.8
gdb version available is:
GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC 2009)
When I activate traces I can see the following:
a) in the main function, I can put breakpoints, and the message is something like
499-break-insert /Users/XXXX.cpp:46
499^done,bkpt={number="12",type="breakpoint",disp="keep ",enabled="y",addr="0x00005649",func="main",file="../src/dogrid.cpp ",line="46",shlib="/Users/YYYY/Eclipse_exe",times="0"},time={wallclock= "0.00342",user="0.00082",system="0.00177",start="1299001190.946541 ",end="1299001190.949965"}
(gdb)
where XXXX and YYYY are very similar paths (omitted)
b) if I try to put a breakpoint in a non-main function which is in another file than main, I get errors on the interface and the message on the output is:
503-break-insert /Users/ZZZZ.cpp:63
503^done,matches={b={index="0",canonical="/Users/AAAA.cpp:63 ",file="../src/grid.cpp",binary="/Users/BBBB/Eclipse_exe",line= "63",addr="0x00006e53"},b={index="1",canonical="/Users/CCCC.cpp:63 ",file="../src/grid.cpp",binary="/Users/DDDD/Debug/Eclipse_exe ",line="63",addr="0x000070fd"}},time={wallclock="0.00305 ",user="0.00108",system="0.00197",start="1299001310.803738 ",end="1299001310.806785"}
(gdb)
I am not debuggin neither shared lib nor a DLL. Just a standalone executable. I started from the Hello World example that comes with eclipse. I deleted the hello.cpp that was there and then I added my own code. I know it was a dirty solution, but the program compiles and a new makefile is generated.
|
|
| | | | | | | | | | |
Goto Forum:
Current Time: Mon Sep 23 18:50:48 GMT 2024
Powered by FUDForum. Page generated in 0.04973 seconds
|