| Debugging not possible in Eclipse [message #656779] |
Mon, 28 February 2011 10:00  |
hefeweizen Messages: 32 Registered: July 2009 |
Member |
|
|
Hi, I tried to debug a C++ project in Eclipse Helios, last release. I set breakpoints in some non-main functions, but the debug function never stops there, and I get a warning message which says
"breakpoint attribute problem installation failed"
What could be the reason?
PS: The same problem also happens with Eclipse Galileo, last release
PS2: This bug is described below, but no solution:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331833
|
|
|
|
| Re: Debugging not possible in Eclipse [message #657142 is a reply to message #657041] |
Tue, 01 March 2011 12: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.
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Debugging not possible in Eclipse [message #657916 is a reply to message #657751] |
Fri, 04 March 2011 10:23  |
hefeweizen Messages: 32 Registered: July 2009 |
Member |
|
|
I find no way to get gdb 6.8 right now. I tried to use
/opt/local/bin/fsf-gdb
which is version 7.1
and now it seems to work!
Using standard process launcher (not DSF/GDB)
For the moment, I will continue testing it and reporting
thanks
P.D. How could I get gdb 6.8, just in case?
|
|
|
Powered by
FUDForum. Page generated in 0.02056 seconds