public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: "Heik H. Hellmich" <hellmich@mikro.ee.tu-berlin.de>
Cc: insight@sources.redhat.com
Subject: Re: step through code
Date: Fri, 27 Sep 2002 10:18:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.44.0209271017240.1515-100000@valrhona.uglyboxes.com> (raw)
In-Reply-To: <3D9491C7.84727946@mikro.ee.tu-berlin.de>

On Fri, 27 Sep 2002, Heik H. Hellmich wrote:

The script I use for compilation:

> #!/usr/bin/csh -f
> mkdir -p v2pdk
> mkdir -p v2pdk/debug
> powerpc-eabi-gcc -Wall -gdwarf -msdata=eabi -mcpu=403 \
> -I/work/hellmich/sftwr/libs/bsp/include \
> -DV2PDK -DDEBUG -o v2pdk/debug/ppc.o -c ppc.c
> powerpc-eabi-gcc -Wall -gdwarf -msdata=eabi -mcpu=403 \
> -I/work/hellmich/sftwr/libs/bsp/include \
> -DV2PDK -DDEBUG -Wl,-T,/work/hellmich/sftwr/mapfiles/mapfile_ppc \
> -u _boot -o v2pdk/debug/ppc_debug.elf v2pdk/debug/ppc.o \
> /work/hellmich/sftwr/libs/bsp/v2pdk/debug/bsp.a
> mkdir -p v2pdk
> mkdir -p v2pdk/release
> powerpc-eabi-gcc -Wall -O3 -msdata=eabi -mcpu=403 \
> -I/work/hellmich/sftwr/libs/bsp/include \
> -DV2PDK -o v2pdk/release/ppc.o -c ppc.c
> powerpc-eabi-gcc -Wall -O3 -msdata=eabi -mcpu=403 \
> -I/work/hellmich/sftwr/libs/bsp/include \
> -DV2PDK -Wl,-T,/work/hellmich/sftwr/mapfiles/mapfile_ppc \
> -u _boot -o v2pdk/release/ppc_release.elf v2pdk/release/ppc.o \
> /work/hellmich/sftwr/libs/bsp/v2pdk/release/bsp.a

Hmm. Doesn't the sim need something like a "-msim" option (or a simulator 
linker script or a special specs file)? Does the simulator support the 
403? It may just be a generic insn set simulator.

Try "-msim". Try looking for a linker script (like sim.ld) in the install 
dir of the compiler. I'm sure one of these is needed.

If this fails, I suggest asking on gdb@sources.redhat.com about how to 
build and debug something on the PPC simulator. The real experts hang out 
there.

Keith

       reply	other threads:[~2002-09-27 17:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3D9491C7.84727946@mikro.ee.tu-berlin.de>
2002-09-27 10:18 ` Keith Seitz [this message]
     [not found] <3D948874.99C32AFE@mikro.ee.tu-berlin.de>
2002-09-27  9:56 ` Keith Seitz
     [not found] <3D9323DB.C90B70D3@mikro.ee.tu-berlin.de>
2002-09-26  8:49 ` Keith Seitz
2002-09-25  3:58 Heik H. Hellmich
2002-09-25  8:34 ` Keith Seitz

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=Pine.LNX.4.44.0209271017240.1515-100000@valrhona.uglyboxes.com \
    --to=keiths@redhat.com \
    --cc=hellmich@mikro.ee.tu-berlin.de \
    --cc=insight@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).