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: debug universal binary on 10.3?



I very much appreciate the heads up!

However, in my host machine, I see the following error:

sed: illegal option -- l
usage: sed script [-Ean] [-i extension] [file ...]
       sed [-an] [-i extension] [-e script] ... [-f script_file] ... [file ...]

I have copied the line below exactly like it was to my /usr/bin/gdb. Any clue?

Alex

Am 26.05.2006 um 03:08 schrieb Chris Friesen:


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 /usr/bin/sed -l s/-break-insert\ -l\ -1/-break-insert/  | "$gdb" "$@"     


I'll filed a Radar on this.

Cheers,
ChrisF          

On May 25, 2006, at 1:19 PM, Todd Ransom wrote:

I temporarily commented out the code that was causing the dyld errors. Apparently this was caused because I have references to Address Book and bindings constants available only on 10.4. So now I can get my app to launch on the remote machine and load into the debugger. But every time I try to set a breakpoint I get this:

mi_cmd_break_insert: Unknown option ``l''
Unable to set breakpoint  . Make sure to build the file   with debugging symbols.

any ideas what might be causing this?

TR


 _______________________________________________
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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >debug universal binary on 10.3? (From: Todd Ransom <email@hidden>)
 >Re: debug universal binary on 10.3? (From: Chris Espinosa <email@hidden>)
 >Re: debug universal binary on 10.3? (From: Todd Ransom <email@hidden>)
 >Re: debug universal binary on 10.3? (From: Todd Ransom <email@hidden>)
 >Re: debug universal binary on 10.3? (From: Chris Friesen <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.