Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Mark Peek <mark@peek.org>
To: Julien <jducourt@noos.fr>, gdb@sources.redhat.com
Subject: Re: Specifying a device tree for psim within gdb
Date: Sun, 14 Oct 2001 11:13:00 -0000	[thread overview]
Message-ID: <p05101001b7ef832354f7@[10.1.10.118]> (raw)
In-Reply-To: <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


      parent reply	other threads:[~2001-10-14 11:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-14 10:54 Julien
2001-10-14 11:01 ` Andrew Cagney
2001-10-14 12:22   ` Julien
2001-10-14 11:13 ` Mark Peek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='p05101001b7ef832354f7@[10.1.10.118]' \
    --to=mark@peek.org \
    --cc=gdb@sources.redhat.com \
    --cc=jducourt@noos.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox