From: Daniel Jacobowitz Date: Sun, 29 Feb 2004 16:43:49 +0000 (+0000) Subject: * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=d677d77d05be6878146b9a7062ceea5fb5ba0e00;p=deliverable%2Fbinutils-gdb.git * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e0f2f98d97..63bbc91c76 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2004-02-28 Daniel Jacobowitz + + * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. + 2004-02-26 Daniel Jacobowitz * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c index 2e8bb981b5..f091a3dccc 100644 --- a/gdb/gdbserver/linux-arm-low.c +++ b/gdb/gdbserver/linux-arm-low.c @@ -1,5 +1,5 @@ /* GNU/Linux/ARM specific low level interface, for the remote server for GDB. - Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002 + Copyright 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -47,11 +47,15 @@ arm_cannot_fetch_register (int regno) return (regno >= arm_num_regs); } +extern int debug_threads; + static CORE_ADDR arm_get_pc () { unsigned long pc; collect_register_by_name ("pc", &pc); + if (debug_threads) + fprintf (stderr, "stop pc is %08lx\n", pc); return pc; }