binutils-gdb/gdb/nat
Richard Henderson 68f81d6019 Fix PR19061, gdb hangs/spins-on-cpu when debugging any program on Alpha
This fixes PR19061, where gdb hangs/spins-on-cpu when debugging any
program on Alpha.

(This patch is Uros' forward port of the patch from comment #5
of the PR [1].)

Patch was tested on alphaev68-linux-gnu, also tested with gcc's
testsuite, where it fixed all hangs in guality.exp and
simulate-thread.exp testcases.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=19061#c5

gdb/ChangeLog:
2017-12-15  Richard Henderson  <rth@redhat.com>
	    Uros Bizjak  <ubizjak@gmail.com>

	PR gdb/19061
	* alpha-tdep.c (alpha_software_single_step): Call
	alpha_deal_with_atomic_sequence here.
	(set_gdbarch_software_single_step): Set to
	alpha_software_single_step.
	* nat/linux-ptrace.h [__alpha__]: Define GDB_ARCH_IS_TRAP_BRKPT
	and GDB_ARCH_IS_TRAP_HWBKPT.
2017-12-15 18:19:42 +00:00
..
aarch64-linux-hw-point.c
aarch64-linux-hw-point.h
aarch64-linux.c lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00
aarch64-linux.h lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00
amd64-linux-siginfo.c
amd64-linux-siginfo.h Include signal.h in nat/amd64-linux-siginfo.h 2017-01-06 14:33:01 +00:00
fork-inferior.c Implement "set cwd" command on GDB 2017-10-04 01:59:30 -04:00
fork-inferior.h Add ATTRIBUTE_PRINTF to trace_start_error 2017-06-17 23:19:25 +02:00
gdb_ptrace.h
gdb_thread_db.h
glibc_thread_db.h
linux-btrace.c Remove ioctl-based procfs support on Solaris 2017-11-30 16:05:30 +01:00
linux-btrace.h
linux-namespaces.c
linux-namespaces.h
linux-nat.h
linux-osdata.c Fix build failure in linux-osdata.c 2017-10-14 09:28:07 -04:00
linux-osdata.h
linux-personality.c Change maybe_disable_address_space_randomization to a class 2017-11-26 10:42:15 -07:00
linux-personality.h Change maybe_disable_address_space_randomization to a class 2017-11-26 10:42:15 -07:00
linux-procfs.c Rename _const functions to use overloading instead 2017-09-11 15:46:12 -06:00
linux-procfs.h
linux-ptrace.c nat/linux-ptrace.c: add missing gdb_byte* cast 2017-06-18 23:29:03 +02:00
linux-ptrace.h Fix PR19061, gdb hangs/spins-on-cpu when debugging any program on Alpha 2017-12-15 18:19:42 +00:00
linux-waitpid.c linux-waitpid: Get rid of format string warning 2017-09-21 15:19:40 +02:00
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: Print debug registers one per line 2017-06-25 12:40:10 +02:00
x86-dregs.h
x86-gcc-cpuid.h Sync up x86-gcc-cpuid.h with cpuid.h from gcc-6 branch. 2017-02-17 11:43:39 +01:00
x86-linux-dregs.c
x86-linux-dregs.h
x86-linux.c lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00
x86-linux.h lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00