aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index d9953a0..76ea6b1 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -2869,6 +2869,14 @@ string_to_core_addr (const char *my_string)
return addr;
}
+const char *
+host_address_to_string (const void *addr)
+{
+ char *str = get_cell ();
+ sprintf (str, "0x%lx", (unsigned long) addr);
+ return str;
+}
+
char *
gdb_realpath (const char *filename)
{