binutils-gdb/gdb/nat
Ulrich Weigand 1db33b5a02 Detect SW breakpoints in Cell/B.E. combined debugging
The Linux target and gdbserver now check the siginfo si_code
reported on a SIGTRAP to detect whether the trap indicates
a software breakpoint was hit.

Unfortunately, on Cell/B.E., the kernel uses an si_code value
of TRAP_BRKPT when a SW breakpoint was hit in PowerPC code,
but a si_code value of SI_KERNEL when a SW breakpoint was
hit in SPU code.

This patch updates Linux target and gdbserver to accept both
si_code values to indicate SW breakpoint on PowerPC.

ChangeLog:

	* nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
	(GDB_ARCH_IS_TRAP_BRKPT): ... this.  Add __powerpc__ case.
	* linux-nat.c (check_stopped_by_breakpoint): Use
	GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.

gdbserver/ChangeLog:

	* linux-low.c (check_stopped_by_breakpoint): Use
	GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2015-08-27 19:26:31 +02:00
..
aarch64-linux-hw-point.c Print tid in debug output of debug_reg_change_callback 2015-08-25 14:45:54 +01:00
aarch64-linux-hw-point.h Move aarch64_linux_prepare_to_resume to nat/aarch64-linux.c 2015-08-25 11:39:14 +01:00
aarch64-linux.c Replace some xmalloc-family functions with XNEW-family ones 2015-08-26 17:18:12 -04:00
aarch64-linux.h Move aarch64_linux_new_thread to nat/aarch64-linux.c 2015-08-25 11:39:14 +01:00
gdb_ptrace.h
gdb_thread_db.h
glibc_thread_db.h
linux-btrace.c Replace some xmalloc-family functions with XNEW-family ones 2015-08-26 17:18:12 -04:00
linux-btrace.h
linux-namespaces.c
linux-namespaces.h
linux-nat.h
linux-osdata.c Replace some xmalloc-family functions with XNEW-family ones 2015-08-26 17:18:12 -04:00
linux-osdata.h
linux-personality.c
linux-personality.h
linux-procfs.c
linux-procfs.h
linux-ptrace.c
linux-ptrace.h Detect SW breakpoints in Cell/B.E. combined debugging 2015-08-27 19:26:31 +02:00
linux-waitpid.c
linux-waitpid.h
mips-linux-watch.c
mips-linux-watch.h
ppc-linux.c
ppc-linux.h
x86-cpuid.h
x86-dregs.c
x86-dregs.h
x86-gcc-cpuid.h
x86-linux-dregs.c
x86-linux-dregs.h
x86-linux.c
x86-linux.h