aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-04-18 02:30:28 +0000
committerFred Fish <fnf@specifix.com>1992-04-18 02:30:28 +0000
commit1867b3be843be289d478ea3a7833efafb3ac9ba8 (patch)
treebe3b36780ae45fef93a5969904227cf3f4f4eaba /gdb/c-exp.y
parentc3089ec904b4a3a7d99449a067aaec6119eea4a2 (diff)
downloadgdb-1867b3be843be289d478ea3a7833efafb3ac9ba8.zip
gdb-1867b3be843be289d478ea3a7833efafb3ac9ba8.tar.gz
gdb-1867b3be843be289d478ea3a7833efafb3ac9ba8.tar.bz2
Back out of TYPE_FLAG_FUND_TYPE change, solve the problem in valprint.c by
just printing the type name from the type if it is not otherwise handled. Implement new handling of the ".syms" file for reusable symbol files.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y34
1 files changed, 17 insertions, 17 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 4026d04..b3bf309 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1568,71 +1568,71 @@ _initialize_c_exp ()
{
builtin_type_void =
init_type (TYPE_CODE_VOID, 1,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"void", (struct objfile *) NULL);
builtin_type_char =
init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"char", (struct objfile *) NULL);
builtin_type_signed_char =
init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE | TYPE_FLAG_SIGNED,
+ TYPE_FLAG_SIGNED,
"signed char", (struct objfile *) NULL);
builtin_type_unsigned_char =
init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE | TYPE_FLAG_UNSIGNED,
+ TYPE_FLAG_UNSIGNED,
"unsigned char", (struct objfile *) NULL);
builtin_type_short =
init_type (TYPE_CODE_INT, TARGET_SHORT_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"short", (struct objfile *) NULL);
builtin_type_unsigned_short =
init_type (TYPE_CODE_INT, TARGET_SHORT_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE | TYPE_FLAG_UNSIGNED,
+ TYPE_FLAG_UNSIGNED,
"unsigned short", (struct objfile *) NULL);
builtin_type_int =
init_type (TYPE_CODE_INT, TARGET_INT_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"int", (struct objfile *) NULL);
builtin_type_unsigned_int =
init_type (TYPE_CODE_INT, TARGET_INT_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE | TYPE_FLAG_UNSIGNED,
+ TYPE_FLAG_UNSIGNED,
"unsigned int", (struct objfile *) NULL);
builtin_type_long =
init_type (TYPE_CODE_INT, TARGET_LONG_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"long", (struct objfile *) NULL);
builtin_type_unsigned_long =
init_type (TYPE_CODE_INT, TARGET_LONG_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE | TYPE_FLAG_UNSIGNED,
+ TYPE_FLAG_UNSIGNED,
"unsigned long", (struct objfile *) NULL);
builtin_type_long_long =
init_type (TYPE_CODE_INT, TARGET_LONG_LONG_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"long long", (struct objfile *) NULL);
builtin_type_unsigned_long_long =
init_type (TYPE_CODE_INT, TARGET_LONG_LONG_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE | TYPE_FLAG_UNSIGNED,
+ TYPE_FLAG_UNSIGNED,
"unsigned long long", (struct objfile *) NULL);
builtin_type_float =
init_type (TYPE_CODE_FLT, TARGET_FLOAT_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"float", (struct objfile *) NULL);
builtin_type_double =
init_type (TYPE_CODE_FLT, TARGET_DOUBLE_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"double", (struct objfile *) NULL);
builtin_type_long_double =
init_type (TYPE_CODE_FLT, TARGET_LONG_DOUBLE_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"long double", (struct objfile *) NULL);
builtin_type_complex =
init_type (TYPE_CODE_FLT, TARGET_COMPLEX_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"complex", (struct objfile *) NULL);
builtin_type_double_complex =
init_type (TYPE_CODE_FLT, TARGET_DOUBLE_COMPLEX_BIT / TARGET_CHAR_BIT,
- TYPE_FLAG_FUND_TYPE,
+ 0,
"double complex", (struct objfile *) NULL);
add_language (&c_language_defn);