From 616d7dd2fe8aeab9a3c009b65bb44c8ea70333e4 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 25 Jan 2009 23:35:51 +0000 Subject: * infcmd.c (program_info): Use paddress instead of casting stop_pc to unsigned long. --- gdb/ChangeLog | 5 +++++ gdb/infcmd.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'gdb') 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 + + * 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 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) -- cgit v1.1