This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Symbol file
- From: dwk <dwks42 at gmail dot com>
- To: Stephen Pape <srpape at gmail dot com>
- Cc: GDB <gdb at sourceware dot org>
- Date: Sat, 29 Oct 2016 22:06:33 +0200
- Subject: Re: Symbol file
- Authentication-results: sourceware.org; auth=none
- References: <CADdUxCxwFREFOGXAPLNQevOST=okxtGwYJ7B_6WHhPpcjDKx+w@mail.gmail.com>
Hi Stephen,
You can generate an almost-empty ELF file which has a symbol table
corresponding to your data. Then just use GDB's "add-symbol-file"
command to load the symbol table. I have some code to generate such an
ELF file, email me if interested.
-- dwk
On Sat, Oct 29, 2016 at 7:56 PM, Stephen Pape <srpape@gmail.com> wrote:
> Hello,
>
> Is there any way to provide GDB with symbol information besides a binary?
>
> I have symbol information in text format (symbol name/address/some
> flags). I can transform the data as necessary, but I can't seem to
> find a way to use it.
>
> Thanks,
>
> -Stephen