diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-10 02:18:40 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-10 02:18:40 +0000 |
commit | 451edb419588b21c668c73e7062046b3d12ed8dc (patch) | |
tree | 9b8e7afe6314458457a7e4e9654af02c29d28311 | |
parent | 27e428da1ea767dacafab65bc91d7317d064bb86 (diff) | |
download | gdb-451edb419588b21c668c73e7062046b3d12ed8dc.tar.gz |
2003-04-09 Andrew Cagney <cagney@redhat.com>
* defs.h (gdb_print_host_address): Make "addr" parameter a
pointer constant.
* utils.c (gdb_print_host_address): Update.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/defs.h | 2 | ||||
-rw-r--r-- | gdb/utils.c | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d65075986bb..07082edc3af 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2003-04-09 Andrew Cagney <cagney@redhat.com> + + * defs.h (gdb_print_host_address): Make "addr" parameter a + pointer constant. + * utils.c (gdb_print_host_address): Update. + 2003-04-09 Kevin Buettner <kevinb@redhat.com> * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the diff --git a/gdb/defs.h b/gdb/defs.h index 636b515da52..35d23df9caa 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -479,7 +479,7 @@ extern void fputstr_unfiltered (const char *str, int quotr, struct ui_file * str extern void fputstrn_unfiltered (const char *str, int n, int quotr, struct ui_file * stream); /* Display the host ADDR on STREAM formatted as ``0x%x''. */ -extern void gdb_print_host_address (void *addr, struct ui_file *stream); +extern void gdb_print_host_address (const void *addr, struct ui_file *stream); /* Convert a CORE_ADDR into a HEX string. paddr() is like %08lx. paddr_nz() is like %lx. paddr_u() is like %lu. paddr_width() is diff --git a/gdb/utils.c b/gdb/utils.c index f8ac0fd41a8..e72aec72a2b 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1261,7 +1261,7 @@ print_spaces (register int n, register struct ui_file *file) /* Print a host address. */ void -gdb_print_host_address (void *addr, struct ui_file *stream) +gdb_print_host_address (const void *addr, struct ui_file *stream) { /* We could use the %p conversion specifier to fprintf if we had any |