public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* data variable, no debug info
@ 2005-09-16 17:18 Shaun Jackman
  2005-09-16 17:29 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Shaun Jackman @ 2005-09-16 17:18 UTC (permalink / raw)
  To: gdb

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: data variable, no debug info
  2005-09-16 17:18 data variable, no debug info Shaun Jackman
@ 2005-09-16 17:29 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-09-16 17:29 UTC (permalink / raw)
  To: Shaun Jackman; +Cc: gdb

On Fri, Sep 16, 2005 at 11:18:10AM -0600, Shaun Jackman wrote:
> 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.

Known bug in GCC 4.0.1.  I believe it's fixed in 4.0.2RC1.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-16 17:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-16 17:18 data variable, no debug info Shaun Jackman
2005-09-16 17:29 ` Daniel Jacobowitz

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