From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18535 invoked by alias); 12 Aug 2015 17:02:00 -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 18524 invoked by uid 89); 12 Aug 2015 17:02:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 12 Aug 2015 17:01:59 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 8673D98C2F for ; Wed, 12 Aug 2015 17:01:58 +0000 (UTC) Received: from brno.lan (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t7CH1vbU024215 for ; Wed, 12 Aug 2015 13:01:58 -0400 From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/7] Replace continuations with an extendable "class" Date: Wed, 12 Aug 2015 17:02:00 -0000 Message-Id: <1439398917-22761-1-git-send-email-palves@redhat.com> X-SW-Source: 2015-08/txt/msg00295.txt.bz2 Mainly, this series replaces the continuations mechanism with a "class" that manages a thread's execution-command-specific state. This fixes bugs, and cleans up core run control and interpreter code in the process, as well as clearing the path for further fixes/cleanups. Pedro Alves (7): Merge async and sync code paths some more Replace "struct continuation" mechanism by something more extensible Convert infcalls to thread_fsm mechanism Convert the until/advance commands to thread_fsm mechanism Garbage collect dummy_frame_ctx_saver Garbage collect thread continuations Delete enum inferior_event_handler::INF_TIMER gdb/Makefile.in | 2 +- gdb/breakpoint.c | 212 ++++++----- gdb/breakpoint.h | 6 +- gdb/cli/cli-interp.c | 13 + gdb/continuations.c | 190 ---------- gdb/continuations.h | 19 - gdb/event-top.c | 2 - gdb/gdbthread.h | 23 +- gdb/inf-loop.c | 70 +--- gdb/infcall.c | 433 ++++++++++++---------- gdb/infcall.h | 9 - gdb/infcmd.c | 758 +++++++++++++++++++++++---------------- gdb/inferior.h | 6 +- gdb/infrun.c | 342 ++++++++++-------- gdb/infrun.h | 22 +- gdb/linux-nat.c | 23 -- gdb/mi/mi-interp.c | 140 +++----- gdb/python/py-finishbreakpoint.c | 5 +- gdb/target.c | 11 + gdb/target.h | 15 +- gdb/testsuite/gdb.mi/mi-cli.exp | 18 + gdb/thread-fsm.c | 107 ++++++ gdb/thread-fsm.h | 104 ++++++ gdb/thread.c | 18 +- gdb/top.c | 16 +- gdb/top.h | 3 + gdb/tui/tui-interp.c | 13 + 27 files changed, 1394 insertions(+), 1186 deletions(-) create mode 100644 gdb/thread-fsm.c create mode 100644 gdb/thread-fsm.h -- 1.9.3