* symbol table incorrect with add-symbol-file command
@ 2001-01-22 13:36 Niraj Gupta
0 siblings, 0 replies; only message in thread
From: Niraj Gupta @ 2001-01-22 13:36 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-01-22 13:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-22 13:36 symbol table incorrect with add-symbol-file command Niraj Gupta
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).