From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1080 invoked by alias); 7 Oct 2014 14:23:20 -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 1069 invoked by uid 89); 7 Oct 2014 14:23:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 07 Oct 2014 14:23:18 +0000 Received: from svr-orw-fem-02x.mgc.mentorg.com ([147.34.96.206] helo=SVR-ORW-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XbVfX-0002XK-4M from Yao_Qi@mentor.com ; Tue, 07 Oct 2014 07:23:15 -0700 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-02.mgc.mentorg.com (147.34.96.168) with Microsoft SMTP Server id 14.3.181.6; Tue, 7 Oct 2014 07:23:14 -0700 From: Yao Qi To: Peng Yu CC: "gdb@sourceware.org" Subject: Re: How step over a ass call command? References: Date: Tue, 07 Oct 2014 14:23:00 -0000 In-Reply-To: (Peng Yu's message of "Sun, 5 Oct 2014 17:59:43 -0500") Message-ID: <87r3ykt12e.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00014.txt.bz2 Peng Yu writes: >>> Suppose that I use gdb with a binary file with source stripped. What do you mean by "a binary file with source stripped"? Did you compile without debug information? My gdb (built from current git repo for x86-linux target) works correctly for binary without debug info. (gdb) disassemble=20 Dump of assembler code for function main: 0x08048406 <+0>: push %ebp 0x08048407 <+1>: mov %esp,%ebp =3D> 0x08048409 <+3>: call 0x8048400 0x0804840e <+8>: mov $0x0,%eax 0x08048413 <+13>: pop %ebp 0x08048414 <+14>: ret=20=20=20=20 End of assembler dump. (gdb) ni 0x0804840e in main () >> Try nexti, which is defined as >> Execute one machine instruction, but if it is a function call, proce= ed >> until the function returns > > I am sorry. I meant to say "nexti" in my original email. "nexti" seems > to the same as "stepi" when the source code is stripped. Is it > supposed to be so? No, it looks a bug to me. What is your gdb version? or you can report this bug here https://sourceware.org/bugzilla/ --=20 Yao (=E9=BD=90=E5=B0=A7)