Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote Debugging XC 2.3 -> OS 10.3.9



On Jun 29, 2006, at 6:42 AM, Jeff Nordquist wrote:

Greetings,

I'm trying to remote debug our application - from Xcode 2.3 on Tiger to OS 10.3.9 (that has Xcode 1.5 installed). The list archives contain many suggestions but unfortunately none of them have solved the problem.

When I try to debug, I immediately get a "No symbol table is loaded. Use "file" command" error in the console. Then when I try to put in a breakpoint the app just goes away.

Things I've tried and verified:
My ssh connection is correct.
I'm building a PPC target and there is no stripping going on.
STABS Debug symbols are being generated.

Following a suggestion in the list archives, in /usr/bin/gdb on the 10.3 machine I replaced:
exec "$gdb" "$@"
with
exec perl -e 'while($len = sysread(STDIN, $buf, 1024)){$buf =~ s /-break-insert -l -1/-break-insert/g; syswrite(STDOUT, $buf, $len);}' | "$gdb" "$@"

Before that the breakpoints weren't even being recognized, now I know they are because they cause the app to shut down. I suppose that's progress. :) But the lack of symbol table at first is what gets me. Do I need a different version of GDB?

Any advice would be appreciated.

What is the Debug Format of the built project?  Xcode 2.3 supports the Dwarf format, but the gdb on the 10.3 machine does not.  Make sure that if you are debugging on 10.3.x that your Debug Format is Stabs.

Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Remote Debugging XC 2.3 -> OS 10.3.9 (From: Jeff Nordquist <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.