• 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
Re: Remote debugging issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remote debugging issues


  • Subject: Re: Remote debugging issues
  • From: Michael Ryan Bannon <email@hidden>
  • Date: Wed, 28 Jun 2006 09:52:09 -0400
  • Organization: Humagade

OK, I'm an idiot.  The first time I used this solution, I must have typed something wrong a couple times, because now it's working.  It still gives the "Error from Debugger" message, but it hits the breakpoints.
 
Thanks so much for the help.
 
Ryan
----- Original Message -----
From: Alexander von Below
To: Michael Ryan Bannon
Cc: email@hidden
Sent: Wednesday, June 28, 2006 9:36 AM
Subject: Re: Remote debugging issues

I believe here, the solution Chris F. has posted to the list is appropriate:

Xcode 2.3 is passing a new argument to the gdb machine interface for setting breakpoints that 10.3's gdb doesn't understand. We can change the data stream to gdb on your 10.3 machine by changing /usr/bin/gdb on the 10.3 machine. I haven't tested this on a 10.3 install.

1. On your 10.3 machine backup /usr/bin/gdb

sudo cp /usr/bin/gdb /usr/bin/gdb.orig

2. On your 10.3 machine edit /usr/bin/gdb with your favorite command line editor

sudo pico /usr/bin/gdb

Then change the last line from something that looks sort of like (Sorry I don't have a 10.3 machine handy):

exec "$gdb" "$@"

to


exec perl -e 'while($len = sysread(STDIN, $buf, 1024)){$buf =~ s /-break-insert -l -1/-break-insert/g; syswrite(STDOUT, $buf, $len);}' | "$gdb" "$@"    

Search the list archives for more info. I am using this solution very successfully on my 10.3 remote debuggin

Alex


On 28.06.2006, at 15:31, Michael Ryan Bannon wrote:

Hello,
 
I'm new to remote debugging, for starters.  I've set up my two mac machines for remote debugging and everything seems to work fine except for breakpoints.  Every time I try to run the app I get the following message:
 
"Error from Debugger: No symbol table is loaded.  Use the "file" command."
 
I think I know what the problem is.  My local machine is running XCode 2.3, so it's using gcc 4 and gdb 6.  My remote machine (using Mac OS 10.3.9) is using the XCode 1.5 tooles (the best I can get for it), thus it has gcc 3.3 and gdb 5.x.  There's a conflict here; I assume breakpoints aren't working because of the gdb conflict.
 
I've tried installing different XCode toolsets on each machine, but the OS doesn't allow it.  Is what I'm trying to do even possible?
Any help is greatly appreciated.
 
Thanks,
 
Ryan
 
ps - I forgot to mention, even though breakpoints don't work, the app still runs on the remote machine.
 _______________________________________________
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

References: 
 >Remote debugging issues (From: Michael Ryan Bannon <email@hidden>)
 >Re: Remote debugging issues (From: Alexander von Below <email@hidden>)

  • Prev by Date: Re: Remote debugging issues
  • Next by Date: Re: breakpoints don't work
  • Previous by thread: Re: Remote debugging issues
  • Next by thread: Question about using GDB from the command line
  • Index(es):
    • Date
    • Thread