diff options
author | Daniel Jacobowitz <drow@false.org> | 2004-02-29 16:43:49 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2004-02-29 16:43:49 +0000 |
commit | d677d77d05be6878146b9a7062ceea5fb5ba0e00 (patch) | |
tree | 5e8f6460c5388ebadb5a20f3b97b39ea48b532de /gdb/gdbserver | |
parent | 0ad989f9fdcb839be3203f8530c03f0bbc9d195f (diff) | |
download | fsf-binutils-gdb-d677d77d05be6878146b9a7062ceea5fb5ba0e00.zip fsf-binutils-gdb-d677d77d05be6878146b9a7062ceea5fb5ba0e00.tar.gz fsf-binutils-gdb-d677d77d05be6878146b9a7062ceea5fb5ba0e00.tar.bz2 |
* linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-arm-low.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e0f2f98..63bbc91 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2004-02-28 Daniel Jacobowitz <drow@mvista.com> + + * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode. + 2004-02-26 Daniel Jacobowitz <drow@mvista.com> * 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 2e8bb98..f091a3d 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; } |