* gdbarch.sh (bfd_vma): Remove.
* gdbarch.c, gdbarch.h: Regenerate. * gdbtypes.h (builtin_bfd_vma_type): Remove. * gdbtypes.h (builtin_bfd_vma_type): Remove. (build_gdbtypes): Do not initialize it. (_initialize_gdbtypes): Do not swap it.
This commit is contained in:
parent
794ac4286c
commit
5d8140d1da
@ -1,3 +1,13 @@
|
|||||||
|
2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
|
* gdbarch.sh (bfd_vma): Remove.
|
||||||
|
* gdbarch.c, gdbarch.h: Regenerate.
|
||||||
|
|
||||||
|
* gdbtypes.h (builtin_bfd_vma_type): Remove.
|
||||||
|
* gdbtypes.h (builtin_bfd_vma_type): Remove.
|
||||||
|
(build_gdbtypes): Do not initialize it.
|
||||||
|
(_initialize_gdbtypes): Do not swap it.
|
||||||
|
|
||||||
2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
|
2007-06-16 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
|
* gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float,
|
||||||
|
@ -144,7 +144,6 @@ struct gdbarch
|
|||||||
const struct floatformat ** long_double_format;
|
const struct floatformat ** long_double_format;
|
||||||
int ptr_bit;
|
int ptr_bit;
|
||||||
int addr_bit;
|
int addr_bit;
|
||||||
int bfd_vma_bit;
|
|
||||||
int char_signed;
|
int char_signed;
|
||||||
gdbarch_read_pc_ftype *read_pc;
|
gdbarch_read_pc_ftype *read_pc;
|
||||||
gdbarch_write_pc_ftype *write_pc;
|
gdbarch_write_pc_ftype *write_pc;
|
||||||
@ -268,7 +267,6 @@ struct gdbarch startup_gdbarch =
|
|||||||
0, /* long_double_format */
|
0, /* long_double_format */
|
||||||
8 * sizeof (void*), /* ptr_bit */
|
8 * sizeof (void*), /* ptr_bit */
|
||||||
8 * sizeof (void*), /* addr_bit */
|
8 * sizeof (void*), /* addr_bit */
|
||||||
8 * sizeof (void*), /* bfd_vma_bit */
|
|
||||||
1, /* char_signed */
|
1, /* char_signed */
|
||||||
0, /* read_pc */
|
0, /* read_pc */
|
||||||
0, /* write_pc */
|
0, /* write_pc */
|
||||||
@ -404,7 +402,6 @@ gdbarch_alloc (const struct gdbarch_info *info,
|
|||||||
current_gdbarch->double_bit = 8*TARGET_CHAR_BIT;
|
current_gdbarch->double_bit = 8*TARGET_CHAR_BIT;
|
||||||
current_gdbarch->long_double_bit = 8*TARGET_CHAR_BIT;
|
current_gdbarch->long_double_bit = 8*TARGET_CHAR_BIT;
|
||||||
current_gdbarch->ptr_bit = current_gdbarch->int_bit;
|
current_gdbarch->ptr_bit = current_gdbarch->int_bit;
|
||||||
current_gdbarch->bfd_vma_bit = gdbarch_bfd_arch_info (current_gdbarch)->bits_per_address;
|
|
||||||
current_gdbarch->char_signed = -1;
|
current_gdbarch->char_signed = -1;
|
||||||
current_gdbarch->virtual_frame_pointer = legacy_virtual_frame_pointer;
|
current_gdbarch->virtual_frame_pointer = legacy_virtual_frame_pointer;
|
||||||
current_gdbarch->num_regs = -1;
|
current_gdbarch->num_regs = -1;
|
||||||
@ -519,7 +516,6 @@ verify_gdbarch (struct gdbarch *current_gdbarch)
|
|||||||
/* Skip verify of ptr_bit, invalid_p == 0 */
|
/* Skip verify of ptr_bit, invalid_p == 0 */
|
||||||
if (current_gdbarch->addr_bit == 0)
|
if (current_gdbarch->addr_bit == 0)
|
||||||
current_gdbarch->addr_bit = gdbarch_ptr_bit (current_gdbarch);
|
current_gdbarch->addr_bit = gdbarch_ptr_bit (current_gdbarch);
|
||||||
/* Skip verify of bfd_vma_bit, invalid_p == 0 */
|
|
||||||
if (current_gdbarch->char_signed == -1)
|
if (current_gdbarch->char_signed == -1)
|
||||||
current_gdbarch->char_signed = 1;
|
current_gdbarch->char_signed = 1;
|
||||||
/* Skip verify of read_pc, has predicate */
|
/* Skip verify of read_pc, has predicate */
|
||||||
@ -693,9 +689,6 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file)
|
|||||||
fprintf_unfiltered (file,
|
fprintf_unfiltered (file,
|
||||||
"gdbarch_dump: bfd_arch_info = %s\n",
|
"gdbarch_dump: bfd_arch_info = %s\n",
|
||||||
gdbarch_bfd_arch_info (current_gdbarch)->printable_name);
|
gdbarch_bfd_arch_info (current_gdbarch)->printable_name);
|
||||||
fprintf_unfiltered (file,
|
|
||||||
"gdbarch_dump: bfd_vma_bit = %s\n",
|
|
||||||
paddr_d (current_gdbarch->bfd_vma_bit));
|
|
||||||
fprintf_unfiltered (file,
|
fprintf_unfiltered (file,
|
||||||
"gdbarch_dump: breakpoint_from_pc = <0x%lx>\n",
|
"gdbarch_dump: breakpoint_from_pc = <0x%lx>\n",
|
||||||
(long) current_gdbarch->breakpoint_from_pc);
|
(long) current_gdbarch->breakpoint_from_pc);
|
||||||
@ -1408,23 +1401,6 @@ set_gdbarch_addr_bit (struct gdbarch *gdbarch,
|
|||||||
gdbarch->addr_bit = addr_bit;
|
gdbarch->addr_bit = addr_bit;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
gdbarch_bfd_vma_bit (struct gdbarch *gdbarch)
|
|
||||||
{
|
|
||||||
gdb_assert (gdbarch != NULL);
|
|
||||||
/* Skip verify of bfd_vma_bit, invalid_p == 0 */
|
|
||||||
if (gdbarch_debug >= 2)
|
|
||||||
fprintf_unfiltered (gdb_stdlog, "gdbarch_bfd_vma_bit called\n");
|
|
||||||
return gdbarch->bfd_vma_bit;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
set_gdbarch_bfd_vma_bit (struct gdbarch *gdbarch,
|
|
||||||
int bfd_vma_bit)
|
|
||||||
{
|
|
||||||
gdbarch->bfd_vma_bit = bfd_vma_bit;
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
gdbarch_char_signed (struct gdbarch *gdbarch)
|
gdbarch_char_signed (struct gdbarch *gdbarch)
|
||||||
{
|
{
|
||||||
|
@ -141,11 +141,6 @@ extern void set_gdbarch_ptr_bit (struct gdbarch *gdbarch, int ptr_bit);
|
|||||||
extern int gdbarch_addr_bit (struct gdbarch *gdbarch);
|
extern int gdbarch_addr_bit (struct gdbarch *gdbarch);
|
||||||
extern void set_gdbarch_addr_bit (struct gdbarch *gdbarch, int addr_bit);
|
extern void set_gdbarch_addr_bit (struct gdbarch *gdbarch, int addr_bit);
|
||||||
|
|
||||||
/* Number of bits in a BFD_VMA for the target object file format. */
|
|
||||||
|
|
||||||
extern int gdbarch_bfd_vma_bit (struct gdbarch *gdbarch);
|
|
||||||
extern void set_gdbarch_bfd_vma_bit (struct gdbarch *gdbarch, int bfd_vma_bit);
|
|
||||||
|
|
||||||
/* One if `char' acts like `signed char', zero if `unsigned char'. */
|
/* One if `char' acts like `signed char', zero if `unsigned char'. */
|
||||||
|
|
||||||
extern int gdbarch_char_signed (struct gdbarch *gdbarch);
|
extern int gdbarch_char_signed (struct gdbarch *gdbarch);
|
||||||
|
@ -414,8 +414,6 @@ v::const struct floatformat **:long_double_format:::::floatformats_ieee_double::
|
|||||||
v::int:ptr_bit:::8 * sizeof (void*):current_gdbarch->int_bit::0
|
v::int:ptr_bit:::8 * sizeof (void*):current_gdbarch->int_bit::0
|
||||||
# addr_bit is the size of a target address as represented in gdb
|
# addr_bit is the size of a target address as represented in gdb
|
||||||
v::int:addr_bit:::8 * sizeof (void*):0:gdbarch_ptr_bit (current_gdbarch):
|
v::int:addr_bit:::8 * sizeof (void*):0:gdbarch_ptr_bit (current_gdbarch):
|
||||||
# Number of bits in a BFD_VMA for the target object file format.
|
|
||||||
v::int:bfd_vma_bit:::8 * sizeof (void*):gdbarch_bfd_arch_info (current_gdbarch)->bits_per_address::0
|
|
||||||
#
|
#
|
||||||
# One if \`char' acts like \`signed char', zero if \`unsigned char'.
|
# One if \`char' acts like \`signed char', zero if \`unsigned char'.
|
||||||
v::int:char_signed:::1:-1:1
|
v::int:char_signed:::1:-1:1
|
||||||
|
@ -129,7 +129,6 @@ struct type *builtin_type_ia64_quad;
|
|||||||
struct type *builtin_type_void_data_ptr;
|
struct type *builtin_type_void_data_ptr;
|
||||||
struct type *builtin_type_void_func_ptr;
|
struct type *builtin_type_void_func_ptr;
|
||||||
struct type *builtin_type_CORE_ADDR;
|
struct type *builtin_type_CORE_ADDR;
|
||||||
struct type *builtin_type_bfd_vma;
|
|
||||||
|
|
||||||
int opaque_type_resolution = 1;
|
int opaque_type_resolution = 1;
|
||||||
static void
|
static void
|
||||||
@ -3435,10 +3434,6 @@ Show resolution of opaque struct/class/union types (if set before loading symbol
|
|||||||
init_type (TYPE_CODE_INT, gdbarch_addr_bit (current_gdbarch) / 8,
|
init_type (TYPE_CODE_INT, gdbarch_addr_bit (current_gdbarch) / 8,
|
||||||
TYPE_FLAG_UNSIGNED,
|
TYPE_FLAG_UNSIGNED,
|
||||||
"__CORE_ADDR", (struct objfile *) NULL);
|
"__CORE_ADDR", (struct objfile *) NULL);
|
||||||
builtin_type_bfd_vma =
|
|
||||||
init_type (TYPE_CODE_INT, gdbarch_addr_bit (current_gdbarch) / 8,
|
|
||||||
TYPE_FLAG_UNSIGNED,
|
|
||||||
"__bfd_vma", (struct objfile *) NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct gdbarch_data *gdbtypes_data;
|
static struct gdbarch_data *gdbtypes_data;
|
||||||
@ -3678,7 +3673,6 @@ _initialize_gdbtypes (void)
|
|||||||
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_void_data_ptr);
|
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_void_data_ptr);
|
||||||
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_void_func_ptr);
|
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_void_func_ptr);
|
||||||
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_CORE_ADDR);
|
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_CORE_ADDR);
|
||||||
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_bfd_vma);
|
|
||||||
deprecated_register_gdbarch_swap (NULL, 0, build_gdbtypes);
|
deprecated_register_gdbarch_swap (NULL, 0, build_gdbtypes);
|
||||||
|
|
||||||
/* Note: These types do not need to be swapped - they are target
|
/* Note: These types do not need to be swapped - they are target
|
||||||
|
@ -1069,10 +1069,6 @@ extern struct type *builtin_type_void_func_ptr;
|
|||||||
|
|
||||||
/* The target CPU's address type. This is the ISA address size. */
|
/* The target CPU's address type. This is the ISA address size. */
|
||||||
extern struct type *builtin_type_CORE_ADDR;
|
extern struct type *builtin_type_CORE_ADDR;
|
||||||
/* The symbol table address type. Some object file formats have a 32
|
|
||||||
bit address type even though the TARGET has a 64 bit pointer type
|
|
||||||
(cf MIPS). */
|
|
||||||
extern struct type *builtin_type_bfd_vma;
|
|
||||||
|
|
||||||
/* Explicit sizes - see C9X <intypes.h> for naming scheme. The "int0"
|
/* Explicit sizes - see C9X <intypes.h> for naming scheme. The "int0"
|
||||||
is for when an architecture needs to describe a register that has
|
is for when an architecture needs to describe a register that has
|
||||||
|
Loading…
Reference in New Issue
Block a user