From: Pedro Alves Date: Sun, 25 Jan 2009 23:35:51 +0000 (+0000) Subject: * infcmd.c (program_info): Use paddress instead of casting stop_pc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=616d7dd2fe8aeab9a3c009b65bb44c8ea70333e4;p=binutils-gdb.git * infcmd.c (program_info): Use paddress instead of casting stop_pc to unsigned long. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 84e00cef914..ab50bbef3bd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-01-25 Pedro Alves + + * infcmd.c (program_info): Use paddress instead of casting stop_pc + to unsigned long. + 2009-01-24 Pedro Alves * infrun.c (normal_stop): Don't call diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3696f79b76a..a0189c8be77 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)