This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

step through code


Hi all,

I am using Insight GNU gdb 5.2 (--host=sparc-sun-solaris2.8
--target=powerpc-eabi) and have the problem that I cannot step through
the generated elf-code because the step/next/finish/continue buttons are
always greyed out for target=sim. I am able to load the elf-file and can
see the c-file and the corresponding asm-file in Insight's source
window.
I have already tried to figure out the problem adressing it to
insight@sources.redhat.com. But we weren't able to solve it. They told
me that the real experts can be found at gdb@sources.redhat.com!!
Please find below the compilation commands and attached the elf-file!

> #!/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

Waiting for replies!

Regards,
  Heik

Attachment: ppc_debug.elf.gz
Description: GNU Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]