public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Shaun Jackman <sjackman@gmail.com>
To: gdb@sources.redhat.com
Subject: data variable, no debug info
Date: Fri, 16 Sep 2005 17:18:00 -0000	[thread overview]
Message-ID: <7f45d93905091610183e2fb771@mail.gmail.com> (raw)

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

             reply	other threads:[~2005-09-16 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-16 17:18 Shaun Jackman [this message]
2005-09-16 17:29 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f45d93905091610183e2fb771@mail.gmail.com \
    --to=sjackman@gmail.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).