aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--gdbhelpers3
-rw-r--r--show-parse.c1
-rw-r--r--symbol.c2
-rw-r--r--symbol.h4
4 files changed, 3 insertions, 7 deletions
diff --git a/gdbhelpers b/gdbhelpers
index 2fe9336d..8d186cee 100644
--- a/gdbhelpers
+++ b/gdbhelpers
@@ -152,9 +152,6 @@ define gdb_show_ctype
if ($arg0->modifiers & MOD_ASSIGNED)
printf "MOD_ASSIGNED "
end
- if ($arg0->modifiers & MOD_TYPE)
- printf "MOD_TYPE "
- end
if ($arg0->modifiers & MOD_SAFE)
printf "MOD_SAFE "
end
diff --git a/show-parse.c b/show-parse.c
index 7b65ba67..68b3e718 100644
--- a/show-parse.c
+++ b/show-parse.c
@@ -140,7 +140,6 @@ const char *modifier_string(unsigned long mod)
{MOD_NODEREF, "[noderef]"},
{MOD_TOPLEVEL, "[toplevel]"},
{MOD_ASSIGNED, "[assigned]"},
- {MOD_TYPE, "[type]"},
{MOD_SAFE, "[safe]"},
{MOD_USERTYPE, "[usertype]"},
{MOD_NORETURN, "[noreturn]"},
diff --git a/symbol.c b/symbol.c
index a410af43..116b1040 100644
--- a/symbol.c
+++ b/symbol.c
@@ -742,7 +742,7 @@ static const struct ctype_declare {
} ctype_declaration[] = {
{ &bool_ctype, SYM_BASETYPE, MOD_UNSIGNED, &bits_in_bool, &max_int_alignment, &int_type },
{ &void_ctype, SYM_BASETYPE, 0, NULL, NULL, NULL },
- { &type_ctype, SYM_BASETYPE, MOD_TYPE, NULL, NULL, NULL },
+ { &type_ctype, SYM_BASETYPE, 0, NULL, NULL, NULL },
{ &incomplete_ctype,SYM_BASETYPE, 0, NULL, NULL, NULL },
{ &bad_ctype, SYM_BASETYPE, 0, NULL, NULL, NULL },
diff --git a/symbol.h b/symbol.h
index 7c4568ee..4e7e437b 100644
--- a/symbol.h
+++ b/symbol.h
@@ -222,7 +222,7 @@ struct symbol {
#define MOD_UNSIGNED 0x00004000
#define MOD_EXPLICITLY_SIGNED 0x00008000
-#define MOD_TYPE 0x00010000
+ // MOD UNUSED 0x00010000
#define MOD_USERTYPE 0x00020000
#define MOD_CHAR 0x00040000
#define MOD_SHORT 0x00080000
@@ -373,7 +373,7 @@ static inline int is_signed_type(struct symbol *sym)
static inline int is_type_type(struct symbol *type)
{
- return (type->ctype.modifiers & MOD_TYPE) != 0;
+ return type == &type_ctype;
}
static inline int is_ptr_type(struct symbol *type)