Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indigo: "Breakpoint attribute problem: installation failed" on Mac OS X
Indigo: "Breakpoint attribute problem: installation failed" on Mac OS X [message #693450] Wed, 06 July 2011 13:56 Go to next message
Stephan Muehlstrasser is currently offline Stephan MuehlstrasserFriend
Messages: 33
Registered: July 2009
Member
Hi,

I started to use the Indigo version of CDT a few days ago, and I really like the new features like refactoring and code analysis. Thanks to the CDT team.

However, I'm running into a strange problem with the debugger that didn't happen with Helios. While it initially worked, suddenly CDT cannot set breakpoints anymore in certain source files. For example a breakpoint in the main function works as expected, while a breakpoint in a statically linked library is marked as "Breakpoint attribute problem: installation failed". All relevant source files are in folders that I have set in the "Source Location" tab in the "Paths and Symbols" properties of the CDT project.

In the "gdb traces" console I see this:

093,361 6-break-insert /Users/stm/workspaces/ws-pdflib-x/pdflib-x/libs/pdflib/p_poca.c:2056
093,361 7-break-insert /Users/stm/workspaces/ws-pdflib-x/pdflib-x/bind/pdflib/c/hello.c:38
093,361 8-break-insert /Users/stm/workspaces/ws-pdflib-x/pdflib-x/libs/pdflib/p_document.c:3275
093,366 6^error,msg="No source file named /Users/stm/workspaces/ws-pdflib-x/pdflib-x/libs/pdflib/p_p\
oca.c."
093,366 (gdb)
093,370 7^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00000001000011e3",\
func="main",file="hello.c",line="38",shlib="/Users/stm/workspaces/ws-pdflib-x/pdflib-x/bind/pdflib/c\
/hello",times="0"},time={wallclock="0.00436",user="0.00188",system="0.00235",start="1309960093.36623\
7",end="1309960093.370592"}
093,370 (gdb)
093,382 8^error,msg="No source file named /Users/stm/workspaces/ws-pdflib-x/pdflib-x/libs/pdflib/p_d\
ocument.c."

With the same settings this worked without problem in Helios.

My environment:

- Mac OS X 10.5.8
- Eclipse Indigo for Mac OS X 64 Bit
- Java:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-9M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
- 64-bit C application compiled with gcc 4.0.1

I would appreciate any hints how to troubleshoot this and how to identify whether this is a bug in CDT Indigo.

Thanks
Stephan
Re: Indigo: "Breakpoint attribute problem: installation failed" on Mac OS X [message #693452 is a reply to message #693450] Wed, 06 July 2011 14:01 Go to previous messageGo to next message
Stephan Muehlstrasser is currently offline Stephan MuehlstrasserFriend
Messages: 33
Registered: July 2009
Member
Sorry, I forgot the GDB version information:

GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)
Re: Indigo: "Breakpoint attribute problem: installation failed" on Mac OS X [message #693795 is a reply to message #693452] Thu, 07 July 2011 08:23 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
Which debugger framework do you use in Eclipse? DSF in Indigo and Standard in Helios? You can change the debugger (these are two different frameworks for the communication with your installed gdb) in the Debug Launch Config. AFAIK, your old gdb (6.3) does not support pending breankpoints (i.e. breakpoints in shared libs) properly and is therefore not supported by DSF.

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Indigo: "Breakpoint attribute problem: installation failed" on Mac OS X [message #693844 is a reply to message #693795] Thu, 07 July 2011 10:15 Go to previous messageGo to next message
Stephan Muehlstrasser is currently offline Stephan MuehlstrasserFriend
Messages: 33
Registered: July 2009
Member
Axel Mueller wrote on Thu, 07 July 2011 04:23
Which debugger framework do you use in Eclipse? DSF in Indigo and Standard in Helios? You can change the debugger (these are two different frameworks for the communication with your installed gdb) in the Debug Launch Config. AFAIK, your old gdb (6.3) does not support pending breankpoints (i.e. breakpoints in shared libs) properly and is therefore not supported by DSF.


I checked this and in Helios and in Indigo DSF is used.

I tried the "Standard Create Process Launcher" instead of the "GDB (DSF) Create Process Launcher" in Indigo, and with one executable I have reproducibly a slightly better behavior: One breakpoint in a static library can be set successfully then. The same breakpoint cannot be set successfully with the DSF launcher. But in other source files from the same library a breakpoint cannot be set with either launcher at a specific location.

When I use gdb 6.3 from the command line and try to set a breakpoint on an unknown function, it asks the following question:

Quote:

(gdb) b dfsdf
Function "dfsdf" not defined.
Make breakpoint pending on future shared library load? (y or [n])


So the pending breakpoint feature is available, I guess.

The breakpoints I'm trying to set in Eclipse are in statically linked functions, if that matters.

I'm currently fetching a more up-to-date gdb and I will try whether this improves the situation.
Re: Indigo: "Breakpoint attribute problem: installation failed" on Mac OS X [message #694253 is a reply to message #693844] Fri, 08 July 2011 07:54 Go to previous message
Stephan Muehlstrasser is currently offline Stephan MuehlstrasserFriend
Messages: 33
Registered: July 2009
Member
Stephan Muehlstrasser wrote on Thu, 07 July 2011 06:15

I'm currently fetching a more up-to-date gdb and I will try whether this improves the situation.


Unfortunately it seems to be non-trivial to build and install a working gdb from current sources on Mac OS X 10.5.8. It seems to be necessary to sign the binary, see for example http://sourceware.org/gdb/wiki/BuildingOnDarwin .

So probably many people on Mac OS X 10.5.8 are using Eclipse still with gdb 6.3. Am I the only one having problems to debug with the combination of Indigo and an older gdb on Mac OS X 10.5.8?
Previous Topic:How to Add a Library to a CDT Template Project
Next Topic:CoSmart----Free intelligent pin configuration and code generation tool
Goto Forum:
  


Current Time: Thu Mar 28 23:32:03 GMT 2024

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

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

Back to the top