This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
data variable, no debug info
- From: Shaun Jackman <sjackman at gmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Fri, 16 Sep 2005 11:18:10 -0600
- Subject: data variable, no debug info
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
eth_stats is a global variable of type eth_Stats which is a typedef
struct. GDB doesn't seem to have any type information on it though.
(gdb) p eth_stats
$1 = 4
(gdb) ptype eth_stats
type = <data variable, no debug info>
(gdb) p *(eth_Stats*)ð_stats
$3 = {tx_packets = 4, tx_bytes = 216, tx_underrun = 0, tx_collisions = 0,
tx_busy = 5, tx_errors = 0, tx_aborted_errors = 0, rx_packets = 0,
rx_bytes = 0, rx_dropped = 0, rx_runt_errors = 0, rx_giant_errors = 0,
rx_missed_errors = 0, rx_crc_errors = 0, rx_frame_errors = 0, interrupts = 0}
It was compiled with debugging information (-g). How might I fix this?
Thanks,
Shaun
$ arm-elf-gdb --version | head -1
GNU gdb 6.3.50.20050906-cvs
$ arm-elf-gcc --version | head -1
arm-elf-gcc (GCC) 4.0.1
$ /usr/local/arm-elf/bin/as --version | head -1
GNU assembler 2.16.91 20050906
$ /usr/local/arm-elf/bin/ld --version | head -1
GNU ld version 2.16.91 20050906