• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Breakpoints that won't stop.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Breakpoints that won't stop.


  • Subject: Breakpoints that won't stop.
  • From: Bertrand Landry-Hetu <email@hidden>
  • Date: Wed, 30 Nov 2005 20:12:06 -0800

Hi list,

I'm having intermittent breakpoint issues with one of my libraries and
I'd like to know if anybody else experienced the same thing.

Basically I have 1 app that loads 1 framework on launch. The code I'm
trying to break in is part of a library (libFoo.a) that gets linked in
the framework.

GDB is not stopping on those breakpoint and I could swear that it
worked last week. So I did a bit of investigation using the debug
console.

br info returns :

Num Type           Disp Enb Address    What
1   breakpoint     keep y   <PENDING>  "SDAC_FileTransferDatabase.cpp:1286

So I'm guessing the library is not resolved yet (even if some code has
been executed in it).

I then tried to put a symbolic break point. And it worked:

2   breakpoint     keep y   0x018ec428 in
SDAC_FileTransferDatabase::removeUpload(std::string const&) at
/Volumes/Data/depot/Desktop/syd/main/MainApp/Syd/Mac/../../libSDOM/Source/SDAC/SDAC_FileTransferDatabase.cpp:1281

So I tried br <fullpath to file>:1281 and it worked!

I tried it from gdb directly from terminal.app and got the same
result. So I'm guessing there is something wrong with my library. I
did try both -g and -full.

The debug console does display this:

Unable to set breakpoint
SDAC_FileTransferDatabase::removeUpload(std::string const&)+32. Make
sure to build the file SDAC_FileTransferDatabase with debugging
symbols.

But debug symbols are generated, I confirmed with nm. I also made sure
the file did not have any additional compiler flags that would
override the target's settings.

So is there anyway to tell Xcode to give GDB full paths ? Is there a
setting that will make gdb find the paths correctly ? Did I miss
anything ?

Thanks.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Can't debug "external application"
  • Next by Date: X-Code question....
  • Previous by thread: Can't debug "external application"
  • Next by thread: X-Code question....
  • Index(es):
    • Date
    • Thread