* infcmd.c (program_info): Use paddress instead of casting stop_pc
authorPedro Alves <palves@redhat.com>
Sun, 25 Jan 2009 23:35:51 +0000 (23:35 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 25 Jan 2009 23:35:51 +0000 (23:35 +0000)
to unsigned long.

gdb/ChangeLog
gdb/infcmd.c

index 84e00cef9144006fabde732391429ac2f3d5d596..ab50bbef3bdce87161cc88bd7839cbc66e85f27e 100644 (file)
@@ -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
index 3696f79b76ae63fe5864d25856467937f4d0340d..a0189c8be77eaa56bbece38ce76c484db8d1ed77 100644 (file)
@@ -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)