gdb: Handle missing domain types in: maintenance print psymbols
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 3 Sep 2019 14:54:57 +0000 (15:54 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 3 Sep 2019 21:29:07 +0000 (22:29 +0100)
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.

gdb/ChangeLog
gdb/psymtab.c

index 5d88be8a7256e9cb2ea0cf927f626b5f349b9b85..f55d1a8e31f15495b88294fd51c9f1b496705db4 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-03  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * psymtab.c (print_partial_symbols): Handle missing domain_enum
+       values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
+
 2019-09-03  Tom Tromey  <tromey@adacore.com>
 
        * ada-valprint.c (ada_val_print_num): Don't recurse for range
index 6cc7566580abb78bec918e7a8f4cb25545b881e8..6f9bf7268f500830917335e18251ba1a93a301ff 100644 (file)
@@ -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;