* Using symbols from
@ 2009-11-30 17:02 Venkatesh Srinivas
2009-11-30 17:33 ` Joel Brobecker
0 siblings, 1 reply; 3+ messages in thread
From: Venkatesh Srinivas @ 2009-11-30 17:02 UTC (permalink / raw)
To: gdb
Hi,
I'm using gdb to debug a program on a remote target via IP; the symbol
tables I have are not in a gdb-friendly format.
I have the output of the platform specific nm run against the binary;
is there any way I can teach gdb about the data from nm (at least the
entry addresses to my functions, location of some global variables?).
Thanks,
-- vs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using symbols from
2009-11-30 17:02 Using symbols from Venkatesh Srinivas
@ 2009-11-30 17:33 ` Joel Brobecker
2009-11-30 18:57 ` Paul Pluzhnikov
0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2009-11-30 17:33 UTC (permalink / raw)
To: Venkatesh Srinivas; +Cc: gdb
> I have the output of the platform specific nm run against the binary;
> is there any way I can teach gdb about the data from nm (at least the
> entry addresses to my functions, location of some global variables?).
It's not something that I have tried, so take with a grain of salt.
The only way I can think of is to transform the symbol-table data
into another format that GDB understands (for instance, an ELF symbol
table). For instance, if you could do an objcopy from your format to
ELF, then you can load the symbols from that ELF object file using
add-symbol-file.
--
Joel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using symbols from
2009-11-30 17:33 ` Joel Brobecker
@ 2009-11-30 18:57 ` Paul Pluzhnikov
0 siblings, 0 replies; 3+ messages in thread
From: Paul Pluzhnikov @ 2009-11-30 18:57 UTC (permalink / raw)
To: Joel Brobecker; +Cc: Venkatesh Srinivas, gdb
On Mon, Nov 30, 2009 at 8:29 AM, Joel Brobecker <brobecker@adacore.com> wrote:
> The only way I can think of is to transform the symbol-table data
> into another format that GDB understands (for instance, an ELF symbol
> table). For instance, if you could do an objcopy from your format to
> ELF, then you can load the symbols from that ELF object file using
> add-symbol-file.
Alternatively, link a new "dummy" executable with the same symbols
assigned to matching addresses. This (I think) could be done fairly
easily using GNU-ld linker script.
--
Paul Pluzhnikov
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-30 17:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-30 17:02 Using symbols from Venkatesh Srinivas
2009-11-30 17:33 ` Joel Brobecker
2009-11-30 18:57 ` Paul Pluzhnikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox