From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64962 invoked by alias); 25 Feb 2019 15:54:35 -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 64945 invoked by uid 89); 25 Feb 2019 15:54:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=frequently, HX-HELO:sk:mail-qt, absence, supplier X-HELO: mail-qt1-f175.google.com Received: from mail-qt1-f175.google.com (HELO mail-qt1-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Feb 2019 15:54:33 +0000 Received: by mail-qt1-f175.google.com with SMTP id j36so10998220qta.7 for ; Mon, 25 Feb 2019 07:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SOJWz2J6r0pW3h32EMtzCjozCdCTfJGyy3EwziJJVRE=; b=V9BSnlpgGscSk20RVZDP6hHakAcDMFv37Q2lrgXKPZqxBfcR/ENQ1NTnzhoz6IwwJB ChOhlP9oYik8JCez4Ou27quSfjp0G8/L4xTw00Lf/27CNiKEsEwh+0ZuTjS5TvMDH7iK 1vjgR/Y5D3Je1Qz7JCfZAY0sTnarQs58q9sbz5m6Noiw2MeBsPCbteGAWa+ZqYvjxd6w xPq3FOIwrTGC4Kk3fAbkpC+oGWFz2Yp0JT47Yg2QMA942NnDdCTe1XmYWGlNBkOpbGFp /KlUMRZ5YhzHhTyiYjP7PajTEdvfiZ4yzNM1fA1ePhFt5vkHnKWC1L9i4TDjJ5lzuf7u fU7Q== MIME-Version: 1.0 References: In-Reply-To: From: dwk Date: Mon, 25 Feb 2019 15:54:00 -0000 Message-ID: Subject: Re: Is nexti confused by pushq? To: David Griffiths Cc: GDB Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-02/txt/msg00063.txt.bz2 I encounter this frequently, although I don't have a minimal case yet either. I think it may have something to do with symbol information, as I've only encountered the case when symbol information is not present (as in the example you gave). stepi always works but nexti sometimes turns into a continue, I assumed because it was unable to figure out where the "next" instruction was somehow in the absence of symbols. dwk On Mon, Feb 25, 2019, 10:41 AM David Griffiths wrote: > Hi, when I get to the following instructions: > > 0x00007fffe192413e: rex.W pushq 0x28(%rsp) > 0x00007fffe1924143: rex.W popq (%rsp) > 0x00007fffe1924147: callq 0x00007fffe1045de0 > > and do "nexti" at the first, it doesn't stop at the second but instead acts > as though I'd done "continue". For some reason I can't reproduce with a > little test though. > > (gdb 8.1 on Ubuntu 16.04) > > BTW I'm doing nexti programmatically and trying to avoid looking at the > next instruction to decide whether to do stepi or nexti. > > Cheers, > > David > > -- > > David Griffiths, Senior Software Engineer > > Undo | Resolve even the most challenging software > defects > with software flight recorder technology > > Software reliability report: optimizing the software supplier and customer > relationship > < > https://info.undo.io/software-reliability-report-optimizing-supplier-and-customer-relationship > > >