* linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.

This commit is contained in:
Daniel Jacobowitz 2004-02-29 16:43:49 +00:00
parent 0ad989f9fd
commit d677d77d05
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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;
}