public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* arm-elf debug info
@ 2000-08-16 16:14 Shaun Jackman
  0 siblings, 0 replies; only message in thread
From: Shaun Jackman @ 2000-08-16 16:14 UTC (permalink / raw)
  To: crossgcc list

My host is x86 Linux
My target is arm-elf

I have a dead simple .c file with three local variables (i, j, k). All the
variables are in scope for the entire function, and optimization is
disabled.
The problem is only i appears in the debugging information.
arm-elf-gcc -g main.c
arm-elf-gdb a.out
info locals
Only i appears in this list. j and k are oddly absent.
They definately exist in the code (they haven't been optimized away) and
have their own locations on in the stack frame.
(i is at [r11, -#16], j is at [r11, -#20], k is at [r11, -#24], r11 is the
frame pointer)

If I compile the same file natively it works.
gcc -g main.c
gdb a.out
info locals
lists the three locals as expected.
objdump --debugging lists the locals in the debugging information as well.

When x-compiling though, I can't get objdump --debugging to give any
information.
It gives the error...
MAIN.ELF:     file format elf32-littlearm
arm-elf-objdump: MAIN.ELF: no recognized debugging information
I know the debugging information's in there though.

As an aside, how do -gdwarf, -ggdb, and the other formats differ? Which
should I use?
-gdwarf is the only one I'm able to get a source view from Insight though.

Thanks,
Shaun





------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-16 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-16 16:14 arm-elf debug info Shaun Jackman

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).