diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-09-06 17:29:15 +0200 |
---|---|---|
committer | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2016-09-06 17:29:15 +0200 |
commit | a9ff5f12cff6cd06f74ecf387ac5468984c94c6f (patch) | |
tree | 020d432b910dacca794b4b486327d4e40b36c902 /gdb/valprint.c | |
parent | 19f392bc2a93d9e64d063b884cd6eca547c8dad0 (diff) | |
download | gdb-a9ff5f12cff6cd06f74ecf387ac5468984c94c6f.zip gdb-a9ff5f12cff6cd06f74ecf387ac5468984c94c6f.tar.gz gdb-a9ff5f12cff6cd06f74ecf387ac5468984c94c6f.tar.bz2 |
Remove obsolete TYPE_FLAG_... values
Now that init_type no longer takes a FLAGS argument, there is no user of
the TYPE_FLAGS_... enum values left. This commit removes them (and all
references to them in comments as well).
This is mostly a no-op, except for a change to the Python type printer,
which attempted to use them before. (As best as I can tell, this wasn't
really needed anyway, since it was only used to pretty-print type
*instance* flags, which only use the instance flags.)
gdb/ChangeLog:
* gdbtypes.h (enum type_flag_value): Remove.
Remove references to TYPE_FLAG_... in comments throughout.
* gdbtypes.c (recursive_dump_type): Do not print TYPE_FLAG_...
flags, print the corresponding TYPE_... access macro names.
Remove references to TYPE_FLAG_... in comments throughout.
* infcall.c: Remove references to TYPE_FLAG_... in comments.
* valprint.c: Likewise.
* gdb-gdb.py (class TypeFlag): No longer consider TYPE_FLAG_...
values, only TYPE_INSTANCE_FLAG_... values.
(class TypeFlagsPrinter): Likewise.
gdb/testsuite/ChangeLog:
* gdb.cp/hang.exp: Remove reference to TYPE_FLAG_STUB in comment.
Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 6896da2..4a1ee13 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -999,10 +999,9 @@ generic_val_print (struct type *type, const gdb_byte *valaddr, break; case TYPE_CODE_UNDEF: - /* This happens (without TYPE_FLAG_STUB set) on systems which - don't use dbx xrefs (NO_DBX_XREFS in gcc) if a file has a - "struct foo *bar" and no complete type for struct foo in that - file. */ + /* This happens (without TYPE_STUB set) on systems which don't use + dbx xrefs (NO_DBX_XREFS in gcc) if a file has a "struct foo *bar" + and no complete type for struct foo in that file. */ fprintf_filtered (stream, _("<incomplete type>")); break; |