This is the mail archive of the gdb@sourceware.org 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]

data variable, no debug info


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*)&eth_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


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