From 64b7cc507b77224eeefa64f6c66a9c8e0321b26a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 22 Dec 2021 10:28:37 -0700 Subject: 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. --- gdb/utils.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gdb/utils.h') diff --git a/gdb/utils.h b/gdb/utils.h index fe72078..d86b564 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -528,13 +528,6 @@ extern void fputs_highlighted (const char *str, const compiled_regex &highlight, extern void reset_terminal_style (struct ui_file *stream); -/* Display the host ADDR on STREAM formatted as ``0x%x''. */ -extern void gdb_print_host_address_1 (const void *addr, struct ui_file *stream); - -/* Wrapper that avoids adding a pointless cast to all callers. */ -#define gdb_print_host_address(ADDR, STREAM) \ - gdb_print_host_address_1 ((const void *) ADDR, STREAM) - /* Return the address only having significant bits. */ extern CORE_ADDR address_significant (gdbarch *gdbarch, CORE_ADDR addr); -- cgit v1.1