aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2015-10-13 18:45:38 -0400
committerDavid Edelsohn <dje.gcc@gmail.com>2015-10-13 18:45:38 -0400
commit33f914a197fa8cd4338396e7d62a5f26621f183c (patch)
tree8ecf2dbb536b1ba8bdbbed24916c35cc9b4deec9 /gdb/xcoffread.c
parente6a959d68b8181c816851dcfc91ae0b2b9296df3 (diff)
downloadgdb-33f914a197fa8cd4338396e7d62a5f26621f183c.zip
gdb-33f914a197fa8cd4338396e7d62a5f26621f183c.tar.gz
gdb-33f914a197fa8cd4338396e7d62a5f26621f183c.tar.bz2
Recognize a few more AIX XCOFF DWARF sections.
gdb/ChangeLog: * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 2c158b8..b900640 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 */