From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id jeL5Dkqn42N+My0AWB0awg (envelope-from ) for ; Wed, 08 Feb 2023 08:44:42 -0500 Received: by simark.ca (Postfix, from userid 112) id 25AD61E15D; Wed, 8 Feb 2023 08:44:42 -0500 (EST) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=tQKKLnHu; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 ESMTPS id E999F1E112 for ; Wed, 8 Feb 2023 08:44:40 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 012923858422 for ; Wed, 8 Feb 2023 13:44:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 012923858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675863879; bh=tn/dUgaVABbckdJC39fXUx7s7CxxR/aRz6g9velkUr0=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=tQKKLnHuIt1NI7u90kfjeC+3+fPKm08+o+fFoll+dGLf1s3Sd+jc/jsGwYq2SvMVT BWowccdyRgsNNZ58e9jzTjta3WAoByHwk9eCeJTXpwNsFi3ZQdj71/daFg1Ex3aFiC MdzUZgNaHNLHKj8vtjtvIuXBKD9Qi1SgDecESizs= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 05C613858D39 for ; Wed, 8 Feb 2023 13:44:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 05C613858D39 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPkk6-0002DD-Mu for gdb@sourceware.org; Wed, 08 Feb 2023 08:44:10 -0500 Received: from [95.90.136.147] (helo=[192.168.111.41]) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPkk6-00059Y-9B for gdb@sourceware.org; Wed, 08 Feb 2023 08:44:10 -0500 Message-ID: <36c20830-7713-bff5-ca88-ea8bc2aab8b5@gnu.org> Date: Wed, 8 Feb 2023 14:44:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US To: GDB Mailing list Subject: Is there an option to "silent-step"/ "silent-next" (possibly in python and/or mi)? Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Sobisch via Gdb Reply-To: Simon Sobisch Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" For "stepping in the current source" (given a mixed-source) I look for a way to "silent step" / "silent next". This will be useful for example if you debug within Bison and/or Flex generated sources and don't want to step through the state / token machine, having only the Bison / Flex _source_ be visible. Getting the source name from the frame and comparing this after a step/next is no big problem in GDB using python gdb.selected_frame().find_sal().symtab.fullname() Using GDB in TUI mode I commonly "stay" in the source I'm interested in this way, but the GDB command line gets "flooded" with all the intermediate frame positions I'm not interested in. So: is there a way to do a "step"/"next" with suppressing the normal output and mi stop events normally send? Thank you for any pointers, Simon