From: David Taylor Date: Wed, 15 Nov 2000 14:33:50 +0000 (+0000) Subject: * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79496e2fade9445b1497af80b0b73f6839ec6b7f;p=binutils-gdb.git * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT, not TARGET_PTR_BIT, since we are dealing with addresses, not pointers. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 95b3a9a986f..279992865fb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Wed Nov 15 09:31:39 2000 David Taylor + + * utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT, + not TARGET_PTR_BIT, since we are dealing with addresses, not + pointers. + 2000-11-14 Daniel Berlin From Kenneth Block diff --git a/gdb/utils.c b/gdb/utils.c index 79ca40c4b23..64c26aef9be 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2720,19 +2720,19 @@ get_cell (void) int strlen_paddr (void) { - return (TARGET_PTR_BIT / 8 * 2); + return (TARGET_ADDR_BIT / 8 * 2); } char * paddr (CORE_ADDR addr) { - return phex (addr, TARGET_PTR_BIT / 8); + return phex (addr, TARGET_ADDR_BIT / 8); } char * paddr_nz (CORE_ADDR addr) { - return phex_nz (addr, TARGET_PTR_BIT / 8); + return phex_nz (addr, TARGET_ADDR_BIT / 8); } static void