This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: step through code
- From: Keith Seitz <keiths at redhat dot com>
- To: "Heik H. Hellmich" <hellmich at mikro dot ee dot tu-berlin dot de>
- Cc: insight at sources dot redhat dot com
- Date: Fri, 27 Sep 2002 10:21:27 -0700 (PDT)
- Subject: Re: step through code
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