This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] one less cast from CORE_ADDR to long.
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Sun, 25 Jan 2009 23:39:13 +0000
- Subject: [commit] one less cast from CORE_ADDR to long.
I've checked this in.
--
Pedro Alves
2009-01-25 Pedro Alves <pedro@codesourcery.com>
* infcmd.c (program_info): Use paddress instead of casting stop_pc
to unsigned long.
---
gdb/infcmd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: src/gdb/infcmd.c
===================================================================
--- src.orig/gdb/infcmd.c 2009-01-21 12:51:31.000000000 +0000
+++ src/gdb/infcmd.c 2009-01-25 23:31:53.000000000 +0000
@@ -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)