aboutsummaryrefslogtreecommitdiff
path: root/binutils/dwarf.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-10-24 01:59:39 +0000
committerCary Coutant <ccoutant@google.com>2012-10-24 01:59:39 +0000
commit657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a (patch)
tree7c424d54c503a9756e2c9cb23026f1744794ee3e /binutils/dwarf.h
parentc886f0b40c56bf143dbe400c165dba6c64d45e70 (diff)
downloadgdb-657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a.zip
gdb-657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a.tar.gz
gdb-657d0d47ba7fd3ae014a5b2b6e46ba6c8d1c461a.tar.bz2
binutils/
* dwarf.c (do_debug_addr, do_debug_cu_index): New global flags. (load_debug_info): Fix typo. (cu_tu_indexes_read, shndx_pool, shndx_pool_size, shndx_pool_used): New global variables. (prealloc_cu_tu_list, add_shndx_to_cu_tu_entry, end_cu_tu_entry) (process_cu_tu_index, load_cu_tu_indexes, find_cu_tu_set) (display_cu_index): New functions. (dwarf_select_sections_by_names): Add "debug_addr", "cu_index". Sort entries alphabetically. (dwarf_select_sections_all): Set do_debug_addr, do_debug_cu_index. (debug_displays): Add .debug_cu_index, .debug_tu_index. Clean up formatting. * dwarf.h (dwarf_section_display_enum): Add dwp_cu_index, dwp_tu_index. (do_debug_addr, do_debug_cu_index): New global flags. (find_cu_tu_set): New function declaration. * objdump.c (usage): Add --dwarf=addr, --dwarf=cu_index. * readelf.c (find_section_in_set): New function. (usage): Add --debug-dump=addr, --debug_dump=cu_index. (process_section_headers): Check do_debug_addr and do_debug_cu_index. (section_subset): New global variable. (load_debug_section): Restrict search to section subset. (display_debug_section): Add section index as paramter. Select subset of sections when dumping a .dwp file. Update caller.
Diffstat (limited to 'binutils/dwarf.h')
-rw-r--r--binutils/dwarf.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/binutils/dwarf.h b/binutils/dwarf.h
index 84f5080..2d00b83 100644
--- a/binutils/dwarf.h
+++ b/binutils/dwarf.h
@@ -143,6 +143,8 @@ enum dwarf_section_display_enum
str_index,
str_index_dwo,
debug_addr,
+ dwp_cu_index,
+ dwp_tu_index,
max
};
@@ -218,6 +220,8 @@ extern int do_gdb_index;
extern int do_trace_info;
extern int do_trace_abbrevs;
extern int do_trace_aranges;
+extern int do_debug_addr;
+extern int do_debug_cu_index;
extern int do_wide;
extern int dwarf_cutoff_level;
@@ -238,6 +242,8 @@ extern void dwarf_select_sections_by_names (const char *);
extern void dwarf_select_sections_by_letters (const char *);
extern void dwarf_select_sections_all (void);
+unsigned int * find_cu_tu_set (void *, unsigned int);
+
void * cmalloc (size_t, size_t);
void * xcmalloc (size_t, size_t);
void * xcrealloc (void *, size_t, size_t);