aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>2000-08-25 20:51:19 +0000
committerDavid Taylor <taylor@redhat.com>2000-08-25 20:51:19 +0000
commit52204a0b3a4dda13a5c13c31cafff75bbad077de (patch)
treeae0ddc7c369a201712f0fcd1ee133dd3fb22ceb2 /gdb/gdbtypes.c
parentc13b1b775b2ff3918d53d0babed8247d8d34593c (diff)
downloadfsf-binutils-gdb-52204a0b3a4dda13a5c13c31cafff75bbad077de.zip
fsf-binutils-gdb-52204a0b3a4dda13a5c13c31cafff75bbad077de.tar.gz
fsf-binutils-gdb-52204a0b3a4dda13a5c13c31cafff75bbad077de.tar.bz2
Fri Aug 25 12:11:21 2000 David Taylor <taylor@texas.cygnus.com>
* symtab.c (search_symbols): Fix off by one error in index for initializing variables ourtype, ourtype2, ourtype3, and ourtype4. (symtab_symbol_info): fix similar off by one error. Fri Aug 25 12:03:15 2000 David Taylor <taylor@texas.cygnus.com> * gdbarch.sh (TARGET_ADDR_BIT): New macro for the number of bits in gdb's representation of a target address. * gdbarch.c, gdbarch.h: Regenerated. * gdbtypes.c (build_gdbtypes): Use TARGET_ADDR_BIT instead of TARGET_PTR_BIT when initializing builtin_type_CORE_ADDR. * printcmd.c (print_address_numeric): Use TARGET_ADDR_BIT instead of TARGET_PTR_BIT, because we're printing an address, not a pointer.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 3fee0cf..63bd448 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -2929,7 +2929,7 @@ build_gdbtypes (void)
though the two can be different (cf d10v) */
builtin_type_ptr = make_pointer_type (builtin_type_void, NULL);
builtin_type_CORE_ADDR =
- init_type (TYPE_CODE_INT, TARGET_PTR_BIT / 8,
+ init_type (TYPE_CODE_INT, TARGET_ADDR_BIT / 8,
TYPE_FLAG_UNSIGNED,
"__CORE_ADDR", (struct objfile *) NULL);
builtin_type_bfd_vma =