From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122598 invoked by alias); 9 Sep 2017 06:55:25 -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 122589 invoked by uid 89); 9 Sep 2017 06:55:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1905 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Sep 2017 06:55:22 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dqZfh-0006Gh-0t for gdb-patches@sourceware.org; Sat, 09 Sep 2017 02:55:21 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dqZfO-0005vA-28; Sat, 09 Sep 2017 02:54:58 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4648 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dqZfN-00066J-I5; Sat, 09 Sep 2017 02:54:57 -0400 Date: Sat, 09 Sep 2017 06:55:00 -0000 Message-Id: <831sngxsxi.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey CC: gdb-patches@sourceware.org, tom@tromey.com In-reply-to: <20170909003353.25883-2-tom@tromey.com> (message from Tom Tromey on Fri, 8 Sep 2017 18:33:51 -0600) Subject: Re: [RFA 1/3] Add new_inferior, inferior_deleted, and new_thread events Reply-to: Eli Zaretskii References: <20170909003353.25883-1-tom@tromey.com> <20170909003353.25883-2-tom@tromey.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-IsSubscribed: yes X-SW-Source: 2017-09/txt/msg00226.txt.bz2 > From: Tom Tromey > Cc: Tom Tromey > Date: Fri, 8 Sep 2017 18:33:51 -0600 > > This adds a few new events to gdb's Python layer: new_inferior, > inferior_deleted, and new_thread. I wanted to be able to add a > combined inferior/thread display window to my GUI, and I needed a few > events to make this work. This is PR python/15622. > > gdb/ChangeLog > 2017-09-08 Tom Tromey > > PR python/15622: > * NEWS: Add entry. > * python/python.c (do_start_initialization): Initialize new event > types. > * python/python-internal.h (gdbpy_initialize_new_inferior_event) > (gdbpy_initialize_inferior_deleted_event) > (gdbpy_initialize_new_thread_event): Declare. > * python/py-threadevent.c (create_thread_event_object): Add option > "thread" parameter. > * python/py-inferior.c (new_thread_event_object_type) > (new_inferior_event_object_type) > (inferior_deleted_event_object_type): Declare. > (python_new_inferior, python_inferior_deleted): New functions. > (add_thread_object): Emit new_thread event. > (gdbpy_initialize_inferior): Attach new functions to corresponding > observers. > (new_thread, new_inferior, inferior_deleted): Define new event > types. > * python/py-evts.c (gdbpy_initialize_py_events): Add new > registries. > * python/py-events.h (events_object) inferior_deleted, new_thread>: New fields. > * python/py-event.h (create_thread_event_breakpoint): Add optional > "thread" parameter. > > gdb/doc/ChangeLog > 2017-09-08 Tom Tromey > > * python.texi (Events In Python): Document new events. > > gdb/testsuite/ChangeLog > 2017-09-08 Tom Tromey > > * gdb.python/py-infthread.exp: Add tests for new_thread event. > * gdb.python/py-inferior.exp: Add tests for new inferior events. OK for the documentation parts. Thanks.