From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5601 invoked by alias); 7 Oct 2014 16:26:59 -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 5590 invoked by uid 89); 7 Oct 2014 16:26:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f41.google.com Received: from mail-wg0-f41.google.com (HELO mail-wg0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 07 Oct 2014 16:26:52 +0000 Received: by mail-wg0-f41.google.com with SMTP id b13so9915783wgh.24 for ; Tue, 07 Oct 2014 09:26:49 -0700 (PDT) X-Received: by 10.180.187.83 with SMTP id fq19mr28244709wic.59.1412699209699; Tue, 07 Oct 2014 09:26:49 -0700 (PDT) Received: from [192.168.0.102] (bl16-9-107.dsl.telepac.pt. [188.81.9.107]) by mx.google.com with ESMTPSA id wm6sm21354351wjb.5.2014.10.07.09.26.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Oct 2014 09:26:48 -0700 (PDT) Message-ID: <54341447.2070308@gmail.com> Date: Tue, 07 Oct 2014 16:26:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: Pedro Alves , Yao Qi , Peng Yu CC: "gdb@sourceware.org" Subject: Re: How step over a ass call command? References: <87r3ykt12e.fsf@codesourcery.com> <543413AF.4080401@redhat.com> In-Reply-To: <543413AF.4080401@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00016.txt.bz2 On 10/07/2014 05:24 PM, Pedro Alves wrote: > "nexti" relies on being able to backtrace out of that "function", > and check that the previous caller is still found at frame #1, to > detect that a function call was done. So run to that "call" line, > and then do "bt". And then do "stepi" to step that instruction > instead of "nexti", and then do "bt" again. If the second > backtrace doesn't have one extra frame, or if the frame that was frame > #0 in the first backtrace is frame #1 in the second backtrace, ^NOT^ > then "nexti" won't work either. Thanks, Pedro Alves