summaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorAdam Nemet <anemet@caviumnetworks.com>2008-05-04 03:45:42 +0000
committerAdam Nemet <anemet@caviumnetworks.com>2008-05-04 03:45:42 +0000
commitb5c66fec18ce2e46b1eb35218f9808972eced5aa (patch)
tree473d8d5d957594089e73a6170492b794f96c438c /gdb/symfile.c
parente3a1756aebca3aa35ec083f4e9250a881770613b (diff)
downloadgdb-b5c66fec18ce2e46b1eb35218f9808972eced5aa.tar.gz
* symfile.c (add_symbol_file_command): Use paddress rather than
hex_string to print the address.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 8e651322572..d991c154a78 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -2239,8 +2239,7 @@ add_symbol_file_command (char *args, int from_tty)
entered on the command line. */
section_addrs->other[sec_num].name = sec;
section_addrs->other[sec_num].addr = addr;
- printf_unfiltered ("\t%s_addr = %s\n",
- sec, hex_string ((unsigned long)addr));
+ printf_unfiltered ("\t%s_addr = %s\n", sec, paddress (addr));
sec_num++;
/* The object's sections are initialized when a