From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3028 invoked by alias); 16 Sep 2005 17:18:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2568 invoked by uid 22791); 16 Sep 2005 17:18:11 -0000 Received: from qproxy.gmail.com (HELO qproxy.gmail.com) (72.14.204.206) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 16 Sep 2005 17:18:11 +0000 Received: by qproxy.gmail.com with SMTP id e12so67501qba for ; Fri, 16 Sep 2005 10:18:10 -0700 (PDT) Received: by 10.64.213.2 with SMTP id l2mr17531qbg; Fri, 16 Sep 2005 10:18:10 -0700 (PDT) Received: by 10.65.20.15 with HTTP; Fri, 16 Sep 2005 10:18:10 -0700 (PDT) Message-ID: <7f45d93905091610183e2fb771@mail.gmail.com> Date: Fri, 16 Sep 2005 17:18:00 -0000 From: Shaun Jackman Reply-To: Shaun Jackman To: gdb@sources.redhat.com Subject: data variable, no debug info Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-SW-Source: 2005-09/txt/msg00117.txt.bz2 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 =3D 4 (gdb) ptype eth_stats type =3D (gdb) p *(eth_Stats*)ð_stats $3 =3D {tx_packets =3D 4, tx_bytes =3D 216, tx_underrun =3D 0, tx_collision= s =3D 0, tx_busy =3D 5, tx_errors =3D 0, tx_aborted_errors =3D 0, rx_packets =3D 0, rx_bytes =3D 0, rx_dropped =3D 0, rx_runt_errors =3D 0, rx_giant_errors = =3D 0, rx_missed_errors =3D 0, rx_crc_errors =3D 0, rx_frame_errors =3D 0, inter= rupts =3D 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