This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/15956] gdbserver crash when doing tstart with no process


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]