]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Show type- and function-domain in maint print psymbols
authorTom Tromey <tom@tromey.com>
Mon, 20 Jan 2025 18:02:51 +0000 (11:02 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 1 Feb 2025 00:27:21 +0000 (17:27 -0700)
I neglected to update "maint print psymbols" when adding TYPE_DOMAIN
and FUNCTION_DOMAIN.  This would have been mildly helpful when
debugging a series I am working on.  This patch corrects the
oversight.

Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/psymtab.c

index e92125dae670dd09e6d65d4fff4ff02b3a104ebb..ef7fa23079b898384551d5bde1dfa1166958a268 100644 (file)
@@ -527,6 +527,12 @@ print_partial_symbols (struct gdbarch *gdbarch, struct objfile *objfile,
        case COMMON_BLOCK_DOMAIN:
          gdb_puts ("common block domain, ", outfile);
          break;
+       case TYPE_DOMAIN:
+         gdb_puts ("type domain, ", outfile);
+         break;
+       case FUNCTION_DOMAIN:
+         gdb_puts ("function domain, ", outfile);
+         break;
        default:
          gdb_puts ("<invalid domain>, ", outfile);
          break;