AIX DWARF debugging sections

David Edelsohn
2015-09-25T14:53:42Z

Initial AIX support for DWARF did not include location lists, debug
frame, and macinfo. Support was added in a later update.

xcoffread defines most of the sections -- including some that were
included later and omitting some that were included in the initial
implementation.

Does anyone know why pbtyp and mac are not define? I'm not sure if
AIX .dwamac is macinfo or macro or both.

Thanks, David

* xcoffread (dwrf2_xcoff_names): Add .dwmac and .dwpbtyp.

diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 0d49751..998ca8f 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -159,11 +159,11 @@ static const struct dwarf2_debug_sections dwarf2_xcoff_nam
es = {
{ ".dwabrev", NULL },
{ ".dwline", NULL },
{ ".dwloc", NULL },
- { NULL, NULL }, /* debug_macinfo */
- { NULL, NULL }, /* debug_macro */
+ { ".dwmac", NULL },
+ { ".dwmac", NULL },
{ ".dwstr", NULL },
{ ".dwrnges", NULL },
- { NULL, NULL }, /* debug_types */
+ { ".dwpbtyp", NULL },
{ NULL, NULL }, /* debug_addr */
{ ".dwframe", NULL },
{ NULL, NULL }, /* eh_frame */