diff options
author | David Taylor <taylor@redhat.com> | 2000-11-15 14:33:50 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 2000-11-15 14:33:50 +0000 |
commit | 79496e2fade9445b1497af80b0b73f6839ec6b7f (patch) | |
tree | 8a944af417d8938206269bafe4d70af69b6cf3ea | |
parent | 6e53a714096756d06042d60f0dc242ad2556b22f (diff) | |
download | gdb-79496e2fade9445b1497af80b0b73f6839ec6b7f.zip gdb-79496e2fade9445b1497af80b0b73f6839ec6b7f.tar.gz gdb-79496e2fade9445b1497af80b0b73f6839ec6b7f.tar.bz2 |
* utils.c (strlen_paddr, paddr, paddr_nz): Use TARGET_ADDR_BIT,
not TARGET_PTR_BIT, since we are dealing with addresses, not
pointers.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/utils.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 95b3a9a..2799928 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Wed Nov 15 09:31:39 2000 David Taylor <taylor@redhat.com> + + * 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 <dberlin@redhat.com> From Kenneth Block <kenneth.block@compaq.com> diff --git a/gdb/utils.c b/gdb/utils.c index 79ca40c..64c26ae 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 |