This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Specifying a device tree for psim within gdb
- To: Julien <jducourt at noos dot fr>, gdb at sources dot redhat dot com
- Subject: Re: Specifying a device tree for psim within gdb
- From: Mark Peek <mark at peek dot org>
- Date: Sun, 14 Oct 2001 11:11:42 -0700
- References: <1003082570.1316.21.camel@athlon_force.localdomain>
At 8:02 PM +0200 10/14/01, Julien wrote:
>I'm using gdb 5.0 on a linux x86 box, configured with
>--target=powerpc-unknown-eabi. I want to debug a raw memory image (my
>exec+some data) using the psim simulator.
>
> When I run the simulator directly (powerpc-unknown-eabi-run), I specify
>a device-tree (whith a 'file' device to load my image).
>But when I use the debugger I don't know how to specify a device-tree.
>The psim doc in sources.redhat.com talks about an attach patch but all
>the links seem to be broken.
>Does someone have this patch ? Or is there another way to specify the
>device tree within gdb ?
I couldn't find an "attach patch" either. I believe it was folded
into gdb. You can specify arguments to the simulator either at the
gdb command prompt or in the .gdbinit file using the target command.
I'm currently using this in my .gdbinit:
target sim -e chirp -r 33554432
set architecture powerpc:604
load
You can specify device tree information on the target line using -o
for individual entries or -f to specify a file with the device tree
to be merged in.
Mark