aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:53:18 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-10-30 21:53:18 +0000
commit8a7e34d89e12307fdf6f8c919bf05b4a8ffb1572 (patch)
treebc7b00a4adc213889f4e81dbbbf3e8d0900c58a9
parent992166eeb0e1058b48048eaa9bd9161f2bd30cb8 (diff)
downloadgdb-8a7e34d89e12307fdf6f8c919bf05b4a8ffb1572.zip
gdb-8a7e34d89e12307fdf6f8c919bf05b4a8ffb1572.tar.gz
gdb-8a7e34d89e12307fdf6f8c919bf05b4a8ffb1572.tar.bz2
2007-10-30 Markus Deuling <deuling@de.ibm.com>
* gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/gdbtypes.c21
2 files changed, 14 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9f7bf33..1f2c4e0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2007-10-30 Markus Deuling <deuling@de.ibm.com>
+ * gdbtypes.c (gdbtypes_post_init): Replace current_gdbarch by gdbarch.
+
+2007-10-30 Markus Deuling <deuling@de.ibm.com>
+
* frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Use get_frame_arch
to get at the current architecture by frame_info.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 7400d68..bcd571b 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -3427,8 +3427,7 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
builtin_type->builtin_char =
init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
(TYPE_FLAG_NOSIGN
- | (gdbarch_char_signed (current_gdbarch) ?
- 0 : TYPE_FLAG_UNSIGNED)),
+ | (gdbarch_char_signed (gdbarch) ? 0 : TYPE_FLAG_UNSIGNED)),
"char", (struct objfile *) NULL);
builtin_type->builtin_true_char =
init_type (TYPE_CODE_CHAR, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
@@ -3448,38 +3447,38 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
"unsigned char", (struct objfile *) NULL);
builtin_type->builtin_short =
init_type (TYPE_CODE_INT,
- gdbarch_short_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_short_bit (gdbarch) / TARGET_CHAR_BIT,
0, "short", (struct objfile *) NULL);
builtin_type->builtin_unsigned_short =
init_type (TYPE_CODE_INT,
- gdbarch_short_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_short_bit (gdbarch) / TARGET_CHAR_BIT,
TYPE_FLAG_UNSIGNED, "unsigned short",
(struct objfile *) NULL);
builtin_type->builtin_int =
init_type (TYPE_CODE_INT,
- gdbarch_int_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_int_bit (gdbarch) / TARGET_CHAR_BIT,
0, "int", (struct objfile *) NULL);
builtin_type->builtin_unsigned_int =
init_type (TYPE_CODE_INT,
- gdbarch_int_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_int_bit (gdbarch) / TARGET_CHAR_BIT,
TYPE_FLAG_UNSIGNED, "unsigned int",
(struct objfile *) NULL);
builtin_type->builtin_long =
init_type (TYPE_CODE_INT,
- gdbarch_long_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT,
0, "long", (struct objfile *) NULL);
builtin_type->builtin_unsigned_long =
init_type (TYPE_CODE_INT,
- gdbarch_long_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_long_bit (gdbarch) / TARGET_CHAR_BIT,
TYPE_FLAG_UNSIGNED, "unsigned long",
(struct objfile *) NULL);
builtin_type->builtin_long_long =
init_type (TYPE_CODE_INT,
- gdbarch_long_long_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_long_long_bit (gdbarch) / TARGET_CHAR_BIT,
0, "long long", (struct objfile *) NULL);
builtin_type->builtin_unsigned_long_long =
init_type (TYPE_CODE_INT,
- gdbarch_long_long_bit (current_gdbarch) / TARGET_CHAR_BIT,
+ gdbarch_long_long_bit (gdbarch) / TARGET_CHAR_BIT,
TYPE_FLAG_UNSIGNED, "unsigned long long",
(struct objfile *) NULL);
builtin_type->builtin_float
@@ -3556,7 +3555,7 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
lookup_pointer_type (lookup_function_type (builtin_type->builtin_void));
builtin_type->builtin_core_addr =
init_type (TYPE_CODE_INT,
- gdbarch_addr_bit (current_gdbarch) / 8,
+ gdbarch_addr_bit (gdbarch) / 8,
TYPE_FLAG_UNSIGNED,
"__CORE_ADDR", (struct objfile *) NULL);