From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88135 invoked by alias); 9 Apr 2018 14:22:41 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 88124 invoked by uid 89); 9 Apr 2018 14:22:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=BAYES_05,SPF_PASS autolearn=ham version=3.3.2 spammy=HTo:U*gdb, H*Ad:U*gdb, H*r:user, H*r:sk:gdb@sou X-HELO: relay.fit.cvut.cz Received: from relay.fit.cvut.cz (HELO relay.fit.cvut.cz) (147.32.232.237) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Apr 2018 14:22:38 +0000 Received: from imap.fit.cvut.cz (imap.fit.cvut.cz [IPv6:2001:718:2:2901:0:0:0:238] (may be forged)) by relay.fit.cvut.cz (8.15.2/8.15.2) with ESMTPS id w39EMWKe041802 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Mon, 9 Apr 2018 16:22:34 +0200 (CEST) (envelope-from jan.vrany@fit.cvut.cz) Received: from sao (02796a4a.bb.sky.com [2.121.106.74] (may be forged)) (authenticated bits=0 as user vranyj1) by imap.fit.cvut.cz (8.15.2/8.15.2) with ESMTPSA id w39EMVqF092321 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 9 Apr 2018 16:22:32 +0200 (CEST) (envelope-from jan.vrany@fit.cvut.cz) Message-ID: Subject: How to use -list-target-features MI command From: Jan Vrany To: "gdb@sourceware.org" Date: Mon, 09 Apr 2018 14:22:00 -0000 Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-FIT-MailScanner-Information: X-FIT-MailScanner-ID: w39EMWKe041802 X-FIT-MailScanner: Found to be clean X-FIT-MailScanner-SpamCheck: not spam, SpamAssassin (score=-0.1, required 6, autolearn=not spam, BAYES_00 -0.10) X-FIT-MailScanner-From: jan.vrany@fit.cvut.cz X-FIT-MailScanner-Watermark: 1523305354.42829@wsZj0tlaKFNZ+xZccujqqw X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00004.txt.bz2 Hi there, I need to know (in advance) whether the target supports async mode or not. I know that -list-target-features can be used for that, but not sure when and how to use -list-target-features. The documentation says: "Whenever a target can change, due to commands such as -target-select, -target-attach or -exec-run, the list of target features may change, and the frontend should obtain it again." However, once I issue `-exec-run` using a target with no async mode support, I will not get the result of -list-target-feature before debugee stops. Another problem is that user may enter CLI command manually. In case, how do I find out that target may have changed and I should check for features? Could you give me any advice on how and when to correctly check for target features? Thanks a lot! Jan