aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-06 17:19:06 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-06 17:19:06 -0800
commit4753d33b404f07e749f648c57ae61e3984d40029 (patch)
tree1d0999b959a4f9fc5dbb2f816de59b82dfe0edc6 /gdb/c-valprint.c
parent9c1877ead06db18e19614a598d1e280acb97e971 (diff)
downloadgdb-4753d33b404f07e749f648c57ae61e3984d40029.zip
gdb-4753d33b404f07e749f648c57ae61e3984d40029.tar.gz
gdb-4753d33b404f07e749f648c57ae61e3984d40029.tar.bz2
Delete TYPE_CODE_CLASS, it's just an alias of TYPE_CODE_STRUCT.
gdb/ChangeLog: * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use TYPE_CODE_STRUCT.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r--gdb/c-valprint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 17963f0..c61e18e 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -495,7 +495,7 @@ c_value_print (struct value *val, struct ui_file *stream,
/* Print nothing. */
}
else if (options->objectprint
- && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_CLASS))
+ && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_STRUCT))
{
int is_ref = TYPE_CODE (type) == TYPE_CODE_REF;
@@ -545,7 +545,7 @@ c_value_print (struct value *val, struct ui_file *stream,
if (!value_initialized (val))
fprintf_filtered (stream, " [uninitialized] ");
- if (options->objectprint && (TYPE_CODE (type) == TYPE_CODE_CLASS))
+ if (options->objectprint && (TYPE_CODE (type) == TYPE_CODE_STRUCT))
{
/* Attempt to determine real type of object. */
real_type = value_rtti_type (val, &full, &top, &using_enc);