summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/linux-arm-low.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2004-02-29 16:43:49 +0000
committerDaniel Jacobowitz <drow@false.org>2004-02-29 16:43:49 +0000
commitd677d77d05be6878146b9a7062ceea5fb5ba0e00 (patch)
tree5e8f6460c5388ebadb5a20f3b97b39ea48b532de /gdb/gdbserver/linux-arm-low.c
parent0ad989f9fdcb839be3203f8530c03f0bbc9d195f (diff)
downloadbinutils-gdb-d677d77d05be6878146b9a7062ceea5fb5ba0e00.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;
}