local variables
Shaun Jackman
shaunj@gray-interfaces.com
Tue Aug 15 10:05:00 GMT 2000
I've got a tiny source file for an arm-elf-gcc tool-chain.
It only has three local variables: int i, j, k;
For some reason though, only i shows up in "info locals".
The target is an Atmel EB01 dev board with a AT91M40400 processor
(ARM7TDMI).
I don't have debugging enabled, and i, j, and k definately have their own
places on the stack (by looking at the assembler output).
GCC is version 2.9.52 (--target=arm-elf), GDB is version 5.0 (Insight) (ran
as command line interface with -nw).
I have tried this both in the simulator and on the target. Results are the
same.
Which debugging format should I use?
-gdwarf seems to be the only one that Insight will recognize.
I also tried -ggdb, and -gdwarf+, but Insight won't give me a source view.
The command line used can be seen from the attached makefile.
Attached are the relevant files...
Thanks,
Shaun
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.c
Type: text/x-c
Size: 204 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20000815/ec0a2e60/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Main.elf
Type: application/x-executable
Size: 34467 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20000815/ec0a2e60/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 627 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20000815/ec0a2e60/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Start.ld
Type: text/x-asm
Size: 1034 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20000815/ec0a2e60/attachment-0003.bin>
-------------- next part --------------
.section .text
.global _start
.global main
.global stackTop
.global __gccmain
_start:
ldr r0,_stackTop
# mov sp,r0
mov fp,r0
bl main
nop
end:
nop
b end
__gccmain:
mov pc,lr
_main: .word main
_stackTop: .word stackTop
More information about the Gdb
mailing list