public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Niraj Gupta <ngupta@zumanetworks.com>
To: gdb@sources.redhat.com
Subject: symbol table incorrect with add-symbol-file command
Date: Mon, 22 Jan 2001 13:36:00 -0000	[thread overview]
Message-ID: <01012213364701.17957@bugs> (raw)

we are using one of the latest snapshot of the tree (jan 2001 2-week)
part of  our symbol table is added using the add-symbol-file command
the target is powerpc-linux compiler verion is 2.92.2, all the symbols show 
up correctly except for
global static symbols, this can be recreated with following

/* test.c */

#define LEN   16
static unsigned char a[LEN];
static unsigned char b[LEN];
 
clear()
{
int i;
for(i=0;i<LEN;i++)
        a[i] = b[i] = 0;
} 


compile with
powerpc-linux-gcc -c -g test.c

gdb> add-symbol-file test.c 0x1000 -s .data 0x2000 -s .bss 0x3000

gdb>p/x &a
0x3000

gdb> p/x &b
0x3000




/* here the address of b is incorrect, it should be 0x3010  */

please help

                 reply	other threads:[~2001-01-22 13:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=01012213364701.17957@bugs \
    --to=ngupta@zumanetworks.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).