From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113656 invoked by alias); 14 Oct 2015 16:35:02 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 113646 invoked by uid 89); 14 Oct 2015 16:35:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout24.012.net.il Received: from mtaout24.012.net.il (HELO mtaout24.012.net.il) (80.179.55.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Oct 2015 16:35:00 +0000 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NW700900XJ5M400@mtaout24.012.net.il> for gdb-patches@sourceware.org; Wed, 14 Oct 2015 19:28:08 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NW700O7NXQW35A0@mtaout24.012.net.il>; Wed, 14 Oct 2015 19:28:08 +0300 (IDT) Date: Wed, 14 Oct 2015 16:35:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 10/18] Remote thread create/exit events In-reply-to: <1444836486-25679-11-git-send-email-palves@redhat.com> To: Pedro Alves Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83d1whxvbi.fsf@gnu.org> References: <1444836486-25679-1-git-send-email-palves@redhat.com> <1444836486-25679-11-git-send-email-palves@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00232.txt.bz2 > From: Pedro Alves > Date: Wed, 14 Oct 2015 16:27:58 +0100 > > gdb/doc/ChangeLog: > 2015-10-14 Pedro Alves > > * gdb.texinfo (Remote Configuration): List "set/show remote > thread-events" command in configuration table. > (Stop Reply Packets): Document "T05 create" stop > reason and 'w' stop reply. > (General Query Packets): Document QThreadEvents packet. Document > QThreadEvents qSupported feature. > > gdb/gdbserver/ChangeLog: > 2015-10-14 Pedro Alves > > * linux-low.c (handle_extended_wait): Assert that the LWP's > waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about > thread create events, leave the new child's status pending. > (linux_low_filter_event): If GDB wants to hear about thread exit > events, leave the LWP marked dead and don't delete it. > (linux_wait_for_event_filtered): Don't check for thread exit. > (filter_exit_event): New function. > (linux_wait_1): Use it, when returning an exit event. > (linux_resume_one_lwp_throw): Assert that the LWP's > waitstatus is TARGET_WAITKIND_IGNORE. > * remote-utils.c (prepare_resume_reply): Handle > TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED. > * server.c (report_thread_events): New global. > (handle_general_set): Handle QThreadEvents. > * server.h (report_thread_events): Declare. > > gdb/ChangeLog: > 2015-10-14 Pedro Alves > > * NEWS (New commands): Mention "set/show remote thread-events" > commands. > (New remote packets): Mention thread created/exited stop reasons > and QThreadEvents packet. > * infrun.c (disable_thread_events): New function. > (stop_all_threads): Disable/enable thread create/exit events. > Handle TARGET_WAITKIND_THREAD_EXITED. > (handle_inferior_event_1): Handle TARGET_WAITKIND_THREAD_CREATED > and TARGET_WAITKIND_THREAD_EXITED. > * remote.c (remove_child_of_pending_fork): Also remove threads of > threads that have TARGET_WAITKIND_THREAD_EXITED events. > (remote_parse_stop_reply): Handle "create" magic register. Handle > 'w' stop reply. > (initialize_remote): Install remote_thread_events as > to_thread_events target hook. > (remote_thread_events): New function. > * target-delegates.c: Regenerate. > * target.c (target_thread_events): New function. > * target.h (struct target_ops) : New field. > (target_thread_events): Declare. > * target/waitstatus.c (target_waitstatus_to_string): Handle > TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED. > * target/waitstatus.h (enum target_waitkind) > New values. OK for the documentation parts, thanks.