* infcmd.c (program_info): Use paddress instead of casting stop_pc

to unsigned long.
This commit is contained in:
Pedro Alves 2009-01-25 23:35:51 +00:00
parent aeaf654094
commit 616d7dd2fe
2 changed files with 6 additions and 2 deletions

View 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

View 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)