aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-09-03 15:54:57 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-09-03 22:29:07 +0100
commit06ff036ed22bac6c6cc622b2f3d23534b44fff67 (patch)
tree3af4fd4c41c526a43917522c56f5c247989f3036 /gdb/psymtab.c
parent4e962e74e45f2b0365e5b21504f33480c468ff00 (diff)
downloadbinutils-06ff036ed22bac6c6cc622b2f3d23534b44fff67.zip
binutils-06ff036ed22bac6c6cc622b2f3d23534b44fff67.tar.gz
binutils-06ff036ed22bac6c6cc622b2f3d23534b44fff67.tar.bz2
gdb: Handle missing domain types in: maintenance print psymbols
Some domain_enum values were not handled in print_partial_symbols which means that 'maintenance print psymbols' would print '<invalid domain>' when it shouldn't have. gdb/ChangeLog: * psymtab.c (print_partial_symbols): Handle missing domain_enum values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 6cc7566..6f9bf72 100644
--- a/gdb/psymtab.c
+++ b/gdb/psymtab.c
@@ -853,9 +853,15 @@ print_partial_symbols (struct gdbarch *gdbarch, struct objfile *objfile,
case STRUCT_DOMAIN:
fputs_filtered ("struct domain, ", outfile);
break;
+ case MODULE_DOMAIN:
+ fputs_filtered ("module domain, ", outfile);
+ break;
case LABEL_DOMAIN:
fputs_filtered ("label domain, ", outfile);
break;
+ case COMMON_BLOCK_DOMAIN:
+ fputs_filtered ("common block domain, ", outfile);
+ break;
default:
fputs_filtered ("<invalid domain>, ", outfile);
break;