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 C++: handle glibc's ptrace(enum __ptrace_request, ...) 2015-07-24 15:12:15 +01:00
gdb_thread_db.h Protect nat/gdb_thread_db.h against multiple inclusion. 2015-08-05 16:30:57 +02:00
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 ari, btrace: avoid unsigned long long 2015-07-15 08:40:57 +02:00
linux-namespaces.c Fix stale cleanup left by linux_mntns_access_fs 2015-08-21 16:56:22 +01:00
linux-namespaces.h Introduce nat/linux-namespaces.[ch] 2015-06-10 14:28:43 +01:00
linux-nat.h Include header for enum target_stop_reason 2015-05-15 16:00:40 +01:00
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 Remove linux_proc_pid_get_ns 2015-06-10 14:28:43 +01:00
linux-procfs.h Remove linux_proc_pid_get_ns 2015-06-10 14:28:43 +01:00
linux-ptrace.c Linux: sys/ptrace.h -> nat/gdb_ptrace.h everywhere 2015-07-24 15:14:47 +01:00
linux-ptrace.h Detect SW breakpoints in Cell/B.E. combined debugging 2015-08-27 19:26:31 +02:00
linux-waitpid.c Fix gdbserver --debug issues caught by Valgrind 2015-08-06 13:32:27 +01:00
linux-waitpid.h
mips-linux-watch.c Mostly trivial enum fixes 2015-07-31 13:19:53 -04:00
mips-linux-watch.h Mostly trivial enum fixes 2015-07-31 13:19:53 -04:00
ppc-linux.c
ppc-linux.h
x86-cpuid.h
x86-dregs.c
x86-dregs.h Add x86_debug_reg_state to gdbserver 2015-03-24 14:05:43 +00:00
x86-gcc-cpuid.h
x86-linux-dregs.c Linux: sys/ptrace.h -> nat/gdb_ptrace.h everywhere 2015-07-24 15:14:47 +01:00
x86-linux-dregs.h Move low-level Linux x86 debug register code to a shared file 2015-03-24 14:05:45 +00:00
x86-linux.c Move duplicated Linux x86 code to nat/x86-linux.c 2015-03-24 14:05:45 +00:00
x86-linux.h Move duplicated Linux x86 code to nat/x86-linux.c 2015-03-24 14:05:45 +00:00