From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by sourceware.org (Postfix) with ESMTPS id 3E83838708C0 for ; Thu, 11 Mar 2021 23:28:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E83838708C0 Received: by mail-il1-x12d.google.com with SMTP id h18so959152ils.2 for ; Thu, 11 Mar 2021 15:28:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xMd2MJuuIZn1kRmbxynUw4ezM2SsHzW0HOQjX7KM/NY=; b=NsYkKTD/Fkn8kspGHpSzFc5iPtzeiOKZyG4q6GKSRvwmetuWIvtifGFw17fnrGgjt+ oApvRLEwvNWZlwFfc+irKslozcEo+RL2wDSeoXKSJzRBoaoMiACCEW4wsZlslvCfFpQH +xPr2bEkeLOPmWpUdMCnuO6f8lznVMadYWHG7wwl6dde9x+vfopasH8RrjmEydqwV4nd xMsa63UXo81/99FZGLWa8BTpM7NnJ2aPE8P/bW75ryo8EbJHAkqdMPJxij+pogcZ7Tmt iXS+5xoeHttlmm1mGmG9DIOfvEBeZmM7S2CShXyze+ZLR9ZraZEvIJXE4bs1OvtcQQfY kNWA== X-Gm-Message-State: AOAM533VScgh7DNJQ0DB0vm1FdKjIWW873REgFm4qOu5l5LR/wE7aJUf HJkozT+dmZAC0UcINz3JhbvBkxPeESv8aPPlGX1i5G3ZSK0= X-Google-Smtp-Source: ABdhPJxc0EYfw6cviu/FKl9nzP7cvvwzn5Nr2ljnIJG8xJvitBPbHkTkoTQVD/8oN6kSdMeLpEWt+jG3DJHFFwVOGF0= X-Received: by 2002:a05:6e02:d4a:: with SMTP id h10mr659318ilj.107.1615505279735; Thu, 11 Mar 2021 15:27:59 -0800 (PST) MIME-Version: 1.0 References: <4425a354-036c-7995-8b47-a92983b340e0@redhat.com> <87r1kloovf.fsf@igel.home> In-Reply-To: <87r1kloovf.fsf@igel.home> From: Ruslan Kabatsayev Date: Fri, 12 Mar 2021 02:27:48 +0300 Message-ID: Subject: Re: Question about disassembly To: Andreas Schwab , mahmood.nt@gmail.com Cc: Andrew Dinn via Gdb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 23:28:01 -0000 On Thu, 11 Mar 2021 at 16:10, Andreas Schwab wrote: > > On M=C3=A4r 11 2021, Andrew Dinn via Gdb wrote: > > > You will probably want to print the next instruction after each step wh= ich > > can be done using x/i $pc. > > You can do that with disp/i $pc. Or, maybe even easier, use TUI. Namely, issue the command "layout asm", and you won't need disp/i. (Press Ctrl-x followed by "a" key to return to normal, non-TUI, mode.) You may also find Single Key mode of the TUI useful. To use it, in the TUI press Ctrl-x followed by key "s". Now you can step into instruction by single key "i" (as if using "stepi"), and step over by key "o" (as if using "nexti"). To exit single-key mode hit "q" key. For more single-key commands see "TUI Single Key Mode" in the docs [1]. [1]: https://sourceware.org/gdb/onlinedocs/gdb/TUI-Single-Key-Mode.html > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 > "And now for something completely different."