From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17257 invoked by alias); 21 Feb 2019 11:24:43 -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 16997 invoked by uid 89); 21 Feb 2019 11:24:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=natively X-HELO: mail-wm1-f50.google.com Received: from mail-wm1-f50.google.com (HELO mail-wm1-f50.google.com) (209.85.128.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Feb 2019 11:24:34 +0000 Received: by mail-wm1-f50.google.com with SMTP id y185so6794553wmd.1 for ; Thu, 21 Feb 2019 03:24:34 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:75e6:857f:3506:a1f4? ([2001:8a0:f913:f700:75e6:857f:3506:a1f4]) by smtp.gmail.com with ESMTPSA id 132sm23210031wmd.27.2019.02.21.03.24.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 03:24:31 -0800 (PST) Subject: Re: "finish" command leads to SIGTRAP To: David Griffiths , gdb@sourceware.org References: From: Pedro Alves Message-ID: Date: Thu, 21 Feb 2019 11:24:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-02/txt/msg00038.txt.bz2 On 02/21/2019 11:21 AM, David Griffiths wrote: > > I need it to work because I'm trying to automate something via gdb/MI. Any > suggestions as to how to debug this would be very welcome. Start with "set debug infrun 1". And then "set debug lin-lwp 1" if debugging natively, or "set debug remote 1" if using the remote serial protocol. Thanks, Pedro Alves