summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-arm-low.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2004-02-29 16:43:49 +0000
committerDaniel Jacobowitz <dan@debian.org>2004-02-29 16:43:49 +0000
commit3f80b23cf9b73f0f35e41b33a2cb2af945b11737 (patch)
tree137dfc9cea14339f3953787973885da1a2c183bc /gdb/gdbserver/linux-arm-low.c
parent7a831fe96a08de1df22c263e35232d8c4acbd569 (diff)
downloadgdb-3f80b23cf9b73f0f35e41b33a2cb2af945b11737.tar.gz
* linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
Diffstat (limited to 'gdb/gdbserver/linux-arm-low.c')
-rw-r--r--gdb/gdbserver/linux-arm-low.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c
index 2e8bb981b52..f091a3dccc3 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;
}