summaryrefslogtreecommitdiffstats
path: root/gdb/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/core.c')
-rw-r--r--gdb/core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/core.c b/gdb/core.c
index 4b8ca14ebc..36c9ab5e75 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -140,12 +140,14 @@ memory_error (status, memaddr)
{
/* Actually, address between memaddr and memaddr + len
was out of bounds. */
- error ("Cannot access memory at address %s.", local_hex_string(memaddr));
+ error ("Cannot access memory at address %s.",
+ local_hex_string((unsigned long) memaddr));
}
else
{
error ("Error accessing memory address %s: %s.",
- local_hex_string (memaddr), safe_strerror (status));
+ local_hex_string ((unsigned long) memaddr),
+ safe_strerror (status));
}
}
OpenPOWER on IntegriCloud