diff options
author | David Taylor <taylor@redhat.com> | 2000-08-25 20:51:19 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 2000-08-25 20:51:19 +0000 |
commit | 52204a0b3a4dda13a5c13c31cafff75bbad077de (patch) | |
tree | ae0ddc7c369a201712f0fcd1ee133dd3fb22ceb2 /gdb/printcmd.c | |
parent | c13b1b775b2ff3918d53d0babed8247d8d34593c (diff) | |
download | gdb-52204a0b3a4dda13a5c13c31cafff75bbad077de.zip gdb-52204a0b3a4dda13a5c13c31cafff75bbad077de.tar.gz 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/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 8210b55..65621e3 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -726,9 +726,9 @@ print_address_numeric (CORE_ADDR addr, int use_local, struct ui_file *stream) kept in the least significant bits of ADDR - the upper bits were either zero or sign extended. Should ADDRESS_TO_POINTER() or some ADDRESS_TO_PRINTABLE() be used to do the conversion? */ - int ptr_bit = TARGET_PTR_BIT; - if (ptr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT)) - addr &= ((CORE_ADDR) 1 << ptr_bit) - 1; + int addr_bit = TARGET_ADDR_BIT; + if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT)) + addr &= ((CORE_ADDR) 1 << addr_bit) - 1; print_longest (stream, 'x', use_local, (ULONGEST) addr); } |