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 10:25 AM, Jeff Nordquist wrote:

Thanks for the response. I tried retyping the script (I had cut-and-pasted it before, but I thought perhaps there was a stray line break or something...) but I still get the crash.

The Debugger console says "unable to read unknown load command 0x1b" as it crashes.

I'm trying to debug from an Intel iMac - perhaps that's the problem? I'm building the PPC target but I could see where perhaps it's getting confused. I'm building on a (much slower) PPC right now to see if that fixes it.

Does that console message ring any bells for anyone?

You need to rebuild everything with STABS debugging format. That load command means that something was built with DWARF, and the 10.3.9 verison of dyld does not understand it.


Jeff

On Jun 29, 2006, at 8:55 AM, Michael Ryan Bannon wrote:

I don't think the GDB version is a problem.  I have the same setup and my 10.3.9 machine is using v5.x while my 10.4 machine is using 6.x.  I think that's the point of the perl script.  The same thing happened with me and what I had to do was rewrite that line in the gdb file (I had fat fingered it or something).
 
Is there even a good way to get gdb v6.x running on 10.3.9?  If I'm not mistaken, it comes with XCode tools 2.x, but that won't install on os 10.3.9.
 
Sorry...I guess I wasnt' much help.
 
Ryan
----- Original Message -----
Sent: Thursday, June 29, 2006 9:42 AM
Subject: Remote Debugging XC 2.3 -> OS 10.3.9

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.

Thanks,
Jeff Nordquist




_______________________________________________
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
 _______________________________________________
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

 _______________________________________________
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

Syd Polk
"Let the music be your light" - Dave Edwards, KUHF-FM, 1982


 _______________________________________________
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>)
 >Re: Remote Debugging XC 2.3 -> OS 10.3.9 (From: Michael Ryan Bannon <email@hidden>)
 >Re: 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.