+2015-10-27 Pedro Alves <palves@redhat.com>
+
+ * common/print-utils.c (host_address_to_string): Rename to ...
+ (host_address_to_string_1): ... this.
+ * common/print-utils.h (host_address_to_string): Reimplement as
+ wrapper around host_address_to_string_1.
+ * utils.c (gdb_print_host_address): Rename to ...
+ (gdb_print_host_address_1): ... this.
+ * utils.h (gdb_print_host_address): Reimplement as wrapper macro
+ around host_address_to_string_1.
+
2015-10-27 Pedro Alves <palves@redhat.com>
* alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
/* See print-utils.h. */
const char *
-host_address_to_string (const void *addr)
+host_address_to_string_1 (const void *addr)
{
char *str = get_cell ();
extern const char *core_addr_to_string_nz (const CORE_ADDR addr);
-extern const char *host_address_to_string (const void *addr);
+extern const char *host_address_to_string_1 (const void *addr);
+
+/* Wrapper that avoids adding a pointless cast to all callers. */
+#define host_address_to_string(ADDR) \
+ host_address_to_string_1 ((const void *) (ADDR))
#endif /* COMMON_CELLS_H */
/* Print a host address. */
void
-gdb_print_host_address (const void *addr, struct ui_file *stream)
+gdb_print_host_address_1 (const void *addr, struct ui_file *stream)
{
fprintf_filtered (stream, "%s", host_address_to_string (addr));
}
extern int filtered_printing_initialized (void);
/* Display the host ADDR on STREAM formatted as ``0x%x''. */
-extern void gdb_print_host_address (const void *addr, struct ui_file *stream);
+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)
/* Convert CORE_ADDR to string in platform-specific manner.
This is usually formatted similar to 0x%lx. */