summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-09-04 22:49:26 +0000
committerDoug Evans <dje@google.com>2008-09-04 22:49:26 +0000
commite1c6f95a71617b4c21c95c6a410308e2175181d8 (patch)
treef1791f5312380ed9c4a127528c4a703382c51a26 /gdb/utils.c
parent6c230d832fcd862ff3ffafc780cba49da6b0ce93 (diff)
downloadgdb-e1c6f95a71617b4c21c95c6a410308e2175181d8.tar.gz
* 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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index c787dd044d3..4aa33676504 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. */