From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5603 invoked by alias); 5 Oct 2014 22:31:28 -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 5593 invoked by uid 89); 5 Oct 2014 22:31:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-oi0-f54.google.com Received: from mail-oi0-f54.google.com (HELO mail-oi0-f54.google.com) (209.85.218.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 05 Oct 2014 22:31:27 +0000 Received: by mail-oi0-f54.google.com with SMTP id v63so2852090oia.41 for ; Sun, 05 Oct 2014 15:31:24 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.51.227 with SMTP id n3mr22726784oeo.52.1412548284321; Sun, 05 Oct 2014 15:31:24 -0700 (PDT) Received: by 10.76.104.231 with HTTP; Sun, 5 Oct 2014 15:31:24 -0700 (PDT) In-Reply-To: References: Date: Sun, 05 Oct 2014 22:31:00 -0000 Message-ID: Subject: Re: How step over a ass call command? From: Max Filippov To: Peng Yu Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00007.txt.bz2 On Mon, Oct 6, 2014 at 2:12 AM, Peng Yu wrote: > Suppose that I use gdb with a binary file with source stripped. > > 0x1ea7 : mov %eax,(%esp) > 0x1eaa : call 0x1f14 > 0x1eaf : mov 0x1180(%ebx),%ecx > > Suppose that pc is at 0x1ea7 and I want to step 2 instructions to > 0x1eaf and without stopping inside call 0x1f14. "stepi" does not seem > to work in this case (my guess is that it only works with source code > for skipping function calls, but not at the assembly level.) > > Does anybody know what is the best way to get to the line 0x1eaf? (I > could set a breakpoint at 0x1eaf, but I found this is too cumbersome.) Try nexti, which is defined as Execute one machine instruction, but if it is a function call, proceed until the function returns -- Thanks. -- Max