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.
This commit is contained in:
parent
4e962e74e4
commit
06ff036ed2
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user