From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org 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 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:From:To:MIME-Version:Date:in-reply-to: references; bh=tn/dUgaVABbckdJC39fXUx7s7CxxR/aRz6g9velkUr0=; b=INcPo9c3r5zdUA 7XcbFHR3G7RP0i4/vOTj6ijErQjgpqCWwAnxW52kqpbRNEvVU/4bf6Ks2OQa6ZDR9ZxXMpmF5FwNn j2V5dslW+VKEzFZclSykv6j4Us3VpK6zPRpOQf0ksNJbUAzmlFi4cEY+mDmWonhrhX08rlCHX4hW8 viQTMT6Aiwt0bGdskaoyUGo+qGP6kqJGvzQZAnJBwFJXynbBvmxczWhkJPE6tyDUiddoUlhYlUatC n6NLaxLOAx8tjFyDZ7q2+WOH8DM4KxMehfGd0Ttvr0wMDNtMPDCBT9Q4Rfa4/GMHe+9a9dVTFpX/E LwDzhVUaz2nrviVTQ3qg==; 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 From: Simon Sobisch 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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