aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-01-25 23:35:51 +0000
committerPedro Alves <palves@redhat.com>2009-01-25 23:35:51 +0000
commit616d7dd2fe8aeab9a3c009b65bb44c8ea70333e4 (patch)
tree38ccba33a5cb6e5f2aa060d4b8943aed38cfd6b3 /gdb
parentaeaf654094927f7ba0a6d8998095f3cb1d988cec (diff)
downloadgdb-616d7dd2fe8aeab9a3c009b65bb44c8ea70333e4.zip
gdb-616d7dd2fe8aeab9a3c009b65bb44c8ea70333e4.tar.gz
gdb-616d7dd2fe8aeab9a3c009b65bb44c8ea70333e4.tar.bz2
* infcmd.c (program_info): Use paddress instead of casting stop_pc
to unsigned long.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infcmd.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 84e00ce..ab50bbe 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-01-25 Pedro Alves <pedro@codesourcery.com>
+
+ * infcmd.c (program_info): Use paddress instead of casting stop_pc
+ to unsigned long.
+
2009-01-24 Pedro Alves <pedro@codesourcery.com>
* infrun.c (normal_stop): Don't call
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index 3696f79..a0189c8 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1583,8 +1583,7 @@ program_info (char *args, int from_tty)
stat = bpstat_num (&bs, &num);
target_files_info ();
- printf_filtered (_("Program stopped at %s.\n"),
- hex_string ((unsigned long) stop_pc));
+ printf_filtered (_("Program stopped at %s.\n"), paddress (stop_pc));
if (tp->stop_step)
printf_filtered (_("It stopped after being stepped.\n"));
else if (stat != 0)