From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 21E913856965 for ; Tue, 2 May 2023 20:56:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21E913856965 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=efficios.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=efficios.com Received: from smarchi-efficios.internal.efficios.com (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 95A2F1E12E; Tue, 2 May 2023 16:56:23 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH 00/30] Make interpreters use virtual methods (instead of observers) Date: Tue, 2 May 2023 16:50:11 -0400 Message-Id: <20230502205011.132151-32-simon.marchi@efficios.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230502205011.132151-1-simon.marchi@efficios.com> References: <20230502205011.132151-1-simon.marchi@efficios.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3491.3 required=5.0 tests=BAYES_00,KAM_DMARC_NONE,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_SOFTFAIL,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Simon Marchi (30): gdb/mi: fix ^running record with multiple MI interpreters gdb/mi: make current_token a field of mi_interp gdb: add interp::on_signal_received method gdb: add interp::on_normal_stop method gdb: add interp::on_signal_exited method gdb: add interp::on_exited method gdb: add interp::on_no_history method gdb: add interp::on_sync_execution_done method gdb: add interp::on_command_error method gdb: add interp::on_user_selected_context_changed method gdb: add interp::on_new_thread method gdb: add interp::on_thread_exited method gdb: add interp::on_inferior_added method gdb: add interp::on_inferior_appeared method gdb: add interp::on_inferior_disappeared method gdb: add interp::on_inferior_removed method gdb: add interp::on_record_changed method gdb: add interp::on_target_resumed method gdb: add interp::on_solib_loaded method gdb: add interp::on_solib_unloaded method gdb: add interp::on_about_to_proceed method gdb: add interp::on_traceframe_changed method gdb: add interp::on_tsv_created method gdb: add interp::on_tsv_deleted method gdb: add interp::on_tsv_modified method gdb: add interp::on_breakpoint_created method gdb: add interp::on_breakpoint_deleted method gdb: add interp::on_breakpoint_modified method gdb: add interp::on_param_changed method gdb: add interp::on_memory_changed method gdb/breakpoint.c | 70 +- gdb/breakpoint.h | 5 + gdb/cli/cli-interp.c | 149 +-- gdb/cli/cli-interp.h | 9 + gdb/cli/cli-setshow.c | 13 +- gdb/corefile.c | 13 +- gdb/inferior.c | 49 +- gdb/infrun.c | 60 +- gdb/infrun.h | 11 + gdb/interps.c | 217 +++++ gdb/interps.h | 190 ++++ gdb/main.c | 2 +- gdb/mi/mi-cmd-break.c | 2 +- gdb/mi/mi-interp.c | 910 ++++++------------- gdb/mi/mi-interp.h | 39 + gdb/mi/mi-main.c | 33 +- gdb/mi/mi-main.h | 5 - gdb/observable.c | 11 - gdb/observable.h | 50 - gdb/record-btrace.c | 2 +- gdb/record-full.c | 2 +- gdb/record.c | 12 +- gdb/record.h | 13 + gdb/remote.c | 5 +- gdb/solib.c | 24 +- gdb/source.c | 5 +- gdb/stack.c | 8 +- gdb/testsuite/gdb.mi/run-with-two-mi-uis.c | 7 + gdb/testsuite/gdb.mi/run-with-two-mi-uis.exp | 44 + gdb/testsuite/lib/mi-support.exp | 22 +- gdb/thread.c | 44 +- gdb/tracepoint.c | 17 +- 32 files changed, 1099 insertions(+), 944 deletions(-) create mode 100644 gdb/testsuite/gdb.mi/run-with-two-mi-uis.c create mode 100644 gdb/testsuite/gdb.mi/run-with-two-mi-uis.exp -- 2.40.1