Re: Breakpoints not working ??
Re: Breakpoints not working ??
- Subject: Re: Breakpoints not working ??
- From: Stephen Travis Pope <email@hidden>
- Date: Thu, 12 Feb 2004 11:28:22 -0800
Thanks for the reply, Jim!
If I set a breakpoint in the first line of the main() of our program,
it shows up in the code editor as shown below, with the gray marker on
the line that calls process_options().
int main (int argc, char ** argv) {
// read/process cmd-line opts
BP_HERE> process_options(argc, argv);
// Create the sound file object and read the file header
SoundFile sndF(argv[1]);
This is at line 78 of AnalysisDriver.cpp.
If I go into the debugger console after the program's finished running
and type "info break" as you suggested, GDB responds with
Num Type Disp Enb Address What
1 breakpoint keep y 0x0002e500 in
fmak::PeakTracker::PeakDataAccessor::WriteTrackedPeak(fmak::
PeakTracker::TrackedPeak const&) at ../Drivers/AnalysisDriver.cpp:78
so the file and line # look AOK, but the function it's in
(WriteTrackedPeak) is quite wrong and is in an entirely other file.
Does this help you analyze our problem?
stp
--
Stephen Travis Pope -- http://create.ucsb.edu/~stp
Faith, surrender, and hope are only as important to life as, say,
breathing.
Begin forwarded message:
> From: Jim Ingham <email@hidden>
> Date: February 12, 2004 10:17:54 AM PST
> To: Stephen Travis Pope <email@hidden>
> Cc: email@hidden
> Subject: Re: Breakpoints not working ??
>
> If you can interrupt the program while it is running, do so, open the
> Debugger console window, and issue the command:
>
> (gdb) info break
>
> do the breakpoints it set there look sensible?
>
> Jim
>
> On Feb 12, 2004, at 9:07 AM, Stephen Travis Pope wrote:
>
>> Hello list,
>>
>> I'm using Xcode 1.1 on OS X 10.3.2 on a new 15" PowerBook G4. Our code
>> is C++ and uses namespaces. (I used to get the RTTI messages I've seen
>> mentioned on this list.)
>>
>> Somehow breakpoints stopped working. I can set then and they appear in
>> the gutter as dark gray markers. They also appear in the breakpoints
>> list, but when I try to debug the file, it runs right through them.
>> I've tried using build&debug as well as the debug executable menu
>> item.
>> My students working on the project say it works fine for them with the
>> same code and project file.
>>
>> If I set breakpoints in the first few executable lines of main(), the
>> debugger tells me
>>
>> Note: breakpoint 1 also set at pc 0x2d66c.
>> Note: breakpoints 1 and 2 also set at pc 0x2d66c.
>> Note: breakpoints 1, 2 and 3 also set at pc 0x2d66c.
>> Note: breakpoints 1, 2, 3 and 4 also set at pc 0x2d66c.
>>
>> but then runs right through them.
>>
>> Has anyone else seen behavior like this?
>>
>> Can you guess what I might have screwed up in my environment? (I tried
>> deleting ~/Library/Preferences/com.Apple.Xcode.plist.)
>>
>> ...any replies appreciated...
>>
>> stp
>>
>> --
>> Stephen Travis Pope -- http://create.ucsb.edu/~stp
>>
>> Faith, surrender, and hope are only as important to life as, say,
>> breathing.
>> _______________________________________________
>> xcode-users mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/xcode-users
>> Do not post admin requests to the list. They will be ignored.
>>
> --
> Jim Ingham email@hidden
> Developer Tools
> Apple Computer
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.