This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/15956] gdbserver crash when doing tstart with no process
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 10 Feb 2015 18:52:05 +0000
- Subject: [Bug breakpoints/15956] gdbserver crash when doing tstart with no process
- Auto-submitted: auto-generated
- References: <bug-15956-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15956
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Antoine Tremblay <hexa@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b05ec7a53f8a3b0cbcb2b42772ca0e70a319d2ab
commit b05ec7a53f8a3b0cbcb2b42772ca0e70a319d2ab
Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Date: Mon Jan 26 13:08:53 2015 -0500
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.
--
You are receiving this mail because:
You are on the CC list for the bug.