aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-12-22 10:28:37 -0700
committerTom Tromey <tom@tromey.com>2021-12-24 10:32:14 -0700
commit64b7cc507b77224eeefa64f6c66a9c8e0321b26a (patch)
tree28cbf1b56bda90741cd1c79b21dbc9cbcc8ca2d8 /gdb/utils.c
parent34b965f7c006e64dbd5546575744daa642d4856f (diff)
downloadgdb-64b7cc507b77224eeefa64f6c66a9c8e0321b26a.zip
gdb-64b7cc507b77224eeefa64f6c66a9c8e0321b26a.tar.gz
gdb-64b7cc507b77224eeefa64f6c66a9c8e0321b26a.tar.bz2
Remove gdb_print_host_address
gdb_print_host_address is just a simple wrapper around fprintf_filtered. However, it is readily replaced in all callers by a combination of %s and call to host_address_to_string. This also simplifies the code, so I think it's worthwhile to remove this function. Regression tested on x86-64 Fedora 64.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 41944f8..620ae9f 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -779,14 +779,6 @@ uinteger_pow (ULONGEST v1, LONGEST v2)
}
}
-/* Print a host address. */
-
-void
-gdb_print_host_address_1 (const void *addr, struct ui_file *stream)
-{
- fprintf_filtered (stream, "%s", host_address_to_string (addr));
-}
-
/* An RAII class that sets up to handle input and then tears down