diff options
author | Doug Evans <dje@google.com> | 2008-09-04 22:49:30 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-09-04 22:49:30 +0000 |
commit | 623d3eb139cf841da1f6fd08c68c29b12b74ddb0 (patch) | |
tree | 1ba0e24313a07a5a86c93a8ca1fb8db73f848369 /gdb/utils.c | |
parent | b02a33db5021ba4b61115784a689d1017181872a (diff) | |
download | gdb-623d3eb139cf841da1f6fd08c68c29b12b74ddb0.zip gdb-623d3eb139cf841da1f6fd08c68c29b12b74ddb0.tar.gz gdb-623d3eb139cf841da1f6fd08c68c29b12b74ddb0.tar.bz2 |
* defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
Change argument of pulongest from CORE_ADDR to ULONGEST.
All callers updated.
* utils.c (plongest): Renamed from paddr_d.
(pulongest): Renamed from paddr_u, change arg type to ULONGEST.
* remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
`CORE_ADDR addr' arg of error message.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index c787dd0..4aa3367 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2676,18 +2676,18 @@ octal2str (ULONGEST addr, int width) } char * -paddr_u (CORE_ADDR addr) +pulongest (ULONGEST u) { - return decimal2str ("", addr, 0); + return decimal2str ("", u, 0); } char * -paddr_d (LONGEST addr) +plongest (LONGEST l) { - if (addr < 0) - return decimal2str ("-", -addr, 0); + if (l < 0) + return decimal2str ("-", -l, 0); else - return decimal2str ("", addr, 0); + return decimal2str ("", l, 0); } /* Eliminate warning from compiler on 32-bit systems. */ |