public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: Handle missing domain types in: maintenance print psymbols
@ 2019-09-03 21:32 Andrew Burgess
  0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2019-09-03 21:32 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=06ff036ed22bac6c6cc622b2f3d23534b44fff67

commit 06ff036ed22bac6c6cc622b2f3d23534b44fff67
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date:   Tue Sep 3 15:54:57 2019 +0100

    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.

Diff:
---
 gdb/ChangeLog | 5 +++++
 gdb/psymtab.c | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5d88be8..f55d1a8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
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;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-03 21:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 21:32 [binutils-gdb] gdb: Handle missing domain types in: maintenance print psymbols Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).