libdrgn: debug_info: save .debug_loc

.debug_loc will be used for variable resolution.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2021-05-05 01:26:49 -07:00
parent e105be6c18
commit d5b68455b8
2 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,7 @@ static const char * const drgn_debug_scn_names[] = {
[DRGN_SCN_EH_FRAME] = ".eh_frame",
[DRGN_SCN_ORC_UNWIND_IP] = ".orc_unwind_ip",
[DRGN_SCN_ORC_UNWIND] = ".orc_unwind",
[DRGN_SCN_DEBUG_LOC] = ".debug_loc",
[DRGN_SCN_TEXT] = ".text",
[DRGN_SCN_GOT] = ".got",
};

View File

@ -64,6 +64,7 @@ enum drgn_debug_info_scn {
DRGN_SCN_EH_FRAME,
DRGN_SCN_ORC_UNWIND_IP,
DRGN_SCN_ORC_UNWIND,
DRGN_SCN_DEBUG_LOC,
DRGN_NUM_DEBUG_SCN_DATA,