Adding user-defined symbols to GDB
Matthew Rinaldi via Gdb <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <YfHfb8MDunW30KEd@ephemeral> |
Hello, I have a list of symbols that I have parsed out from a section within the binary. The data is not in any standard symbol table format. I have extracted the symbol's name and address. I want to add these symbols to GDB, but it is non-trivial. The solutions that I have seen for adding new user-defined symbols do not look ideal for a seemingly simple task. Example: https://github.com/mahaloz/decomp2gef/blob/main/decomp2gef.py#L247 Is it possible to have a feature/command where the user could add symbols directly to GDB without the use of an objfile? I brought it up with Simon Marchi, and he said the following: > But off-hand, I don't see why this wouldn't be possible. Each objfile > could have a list of user-defined symbols, that lookup_symbol_in_objfile > would search in addition to the other regular methods. Thank you, Matthew Rinaldi