binutils-gdb/gdb/testsuite/gdb.trace
Antoine Tremblay b05ec7a53f gdbserver: Fix crash when QTinit is handled with no inferior process attached
When gdbserver is called with --multi and attach has not been called yet
and tstart is called on the gdb client, gdbserver would crash.
This patch fixes gdbserver so that it returns E01 to the gdb client.

Also this patch adds a testcase to verify this bug named no-attach-trace.exp

gdb/gdbserver/ChangeLog:
	PR breakpoints/15956
	* tracepoint.c (cmd_qtinit): Add check for current_thread.

gdb/testsuite/ChangeLog:
	* gdb.trace/no-attach-trace.c: New file.
	* gdb.trace/no-attach-trace.exp: New file.
2015-02-10 13:49:41 -05:00
..
Makefile.in gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
actions-changed.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
actions.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ax.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
backtrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc-1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc-2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
change-loc.h Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
circ.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
circ.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
collection.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
collection.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
deltrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
disconnected-tracing.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
disconnected-tracing.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
entry-values.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
entry-values.exp Require numeric attributes to specify the form. 2015-01-11 15:45:43 -08:00
ftrace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
ftrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
infotrace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-trace-frame-collected.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-trace-unavailable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-traceframe-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-tracepoint-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
mi-tsv-changed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
no-attach-trace.c gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
no-attach-trace.exp gdbserver: Fix crash when QTinit is handled with no inferior process attached 2015-02-10 13:49:41 -05:00
packetlen.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
passc-dyn.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
passcount.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pending.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pending.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pendshr1.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pendshr2.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
pr16508.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
qtro.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
qtro.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
range-stepping.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
range-stepping.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read-memory.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
read-memory.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
report.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
save-trace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
stap-trace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
stap-trace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
status-stop.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
status-stop.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
strace.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
strace.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfile.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfile.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tfind.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-break.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-break.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-buffer-size.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-buffer-size.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-mt.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-mt.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
trace-unavailable.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tracecmd.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tspeed.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tspeed.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tstatus.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
tsv.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable-dwarf-piece.c Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable-dwarf-piece.exp Require numeric attributes to specify the form. 2015-01-11 15:45:43 -08:00
unavailable.cc Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
unavailable.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
while-dyn.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00
while-stepping.exp Update year range in copyright notice of all files owned by the GDB project. 2015-01-01 13:32:14 +04:00