From 33f914a197fa8cd4338396e7d62a5f26621f183c Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 13 Oct 2015 18:45:38 -0400 Subject: [PATCH] Recognize a few more AIX XCOFF DWARF sections. gdb/ChangeLog: * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp. --- gdb/ChangeLog | 4 ++++ gdb/xcoffread.c | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fddacfe40a6..cabfe362fee 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2015-10-13 David Edelsohn + + * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp. + 2015-10-13 Pedro Alves * ada-lang.c (ada_enum_name): Constify local. diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 2c158b8b65f..b9006409e22 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -159,11 +159,14 @@ static const struct dwarf2_debug_sections dwarf2_xcoff_names = { { ".dwabrev", NULL }, { ".dwline", NULL }, { ".dwloc", NULL }, - { NULL, NULL }, /* debug_macinfo */ - { NULL, NULL }, /* debug_macro */ + /* AIX XCOFF defines one, named DWARF section for macro debug information. + XLC does not generate debug_macinfo for DWARF4 and below. + The section is assigned to debug_macro for DWARF5 and above. */ + { NULL, NULL }, + { ".dwmac", NULL }, { ".dwstr", NULL }, { ".dwrnges", NULL }, - { NULL, NULL }, /* debug_types */ + { ".dwpbtyp", NULL }, { NULL, NULL }, /* debug_addr */ { ".dwframe", NULL }, { NULL, NULL }, /* eh_frame */ -- 2.30.2