Re: Alternative GDB for Xcode
Re: Alternative GDB for Xcode
- Subject: Re: Alternative GDB for Xcode
- From: Nick Lott <email@hidden>
- Date: Sat, 20 Aug 2005 12:43:23 +1200
I've only just got my new ibook set up with Tiger and the avr-tool
chain, but haven't had a chance to get test it on xcode 2 and tiger.
I used replaced the /usr/bin/gdb with a symbolic link to avr-gdb as
follows
cp /usr/bin/gdb /usr/bin/ppc-gdb
#to setup
rm /usr/bin/gdb
ln -s /usr/local/bin/avr-gdb /usr/bin/gdb
#to restore.
rm /usr/bin/gdb
ln -s /usr/bin/ppc-gdb /usr/bin/gdb
You could easily put this into a script to help streamline the
proccess. Ihaven't had a chance yet to fool around in xcode 2.0 so
there might be an easier way of doing this.
The main problem I had with avarice was that there is no 'run'
command as with a normal gdb session. The avarice only accepts 'cont'
to start the debugging session. I'm sure I can get around this
behaviour with a bit more tweaking but as I say I haven't had enough
time lately.
So I could get xcode to start the degugger, connect to the remote
target (avarice) but could not get any useful advantage out of it
(ie. still only using the console)
Have you seen the article here.
http://www.macdevcenter.com/pub/a/mac/2005/01/21/embedded.html
Do you know of any MacOS X embedded resources? Here are some of the
links that have helped me (with AVR)
http://www.mip.sdu.dk/~frodi/mac.html
http://ccrma.stanford.edu/workshops/pid2004/avr/osx.html
http://screwdecaf.cx/tools.html
http://www.wildrice.com/MacTron/
ttp://www.eecs.berkeley.edu/~mseeman/resources/macmicro.html
http://www.nongnu.org/avr-libc/user-manual/install_tools.html
I also hope to get this going with the gnu-arm tool chain as well. If
you have any ideas or suggestions please don't hesitate to send me an
email.
Nick Lott
email@hidden
On 20/08/2005, at 6:25 AM, Kingston Co. wrote:
Nick:
Did you ever figure out how to get Xcode's debugger to use AVR-GDB
instead of the normal version for the PPC?
Thanks,
Fred
Kingston Co.
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