From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id rNdBGoHzEWAbVAAAWB0awg (envelope-from ) for ; Wed, 27 Jan 2021 18:13:05 -0500 Received: by simark.ca (Postfix, from userid 112) id 4F1EA1EF80; Wed, 27 Jan 2021 18:13:05 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D01231E940 for ; Wed, 27 Jan 2021 18:13:03 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 24B3D382E817; Wed, 27 Jan 2021 23:13:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24B3D382E817 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1611789183; bh=2UBU1lwNrAKF2NycAAbiyFQOBfnTmVp7iuV372tXiFM=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=mpKQJCENMNWwsRZRwloX/gmiVny640ImmoFVMt76mg6x2gbQqltz6H3/6DoX2dhdO gEQvQGzG9PHJTfxlN5CD8LuOPA1c4/TYsPNixEBgy/PzbvBOMGLRUGhsNpVnsoKyxF d6UKhtwO5y22bPWBTomKOcnVyASuoHHn8eD5fpS8= Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by sourceware.org (Postfix) with ESMTPS id DA265386103B for ; Wed, 27 Jan 2021 23:13:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DA265386103B Received: by mail-il1-x130.google.com with SMTP id e1so3520258ilu.0 for ; Wed, 27 Jan 2021 15:13: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:from:date:message-id:subject:to; bh=2UBU1lwNrAKF2NycAAbiyFQOBfnTmVp7iuV372tXiFM=; b=ZRqUNYbvxP1ubCjbzzaqpSF+uFWkciRhHDawypLqxq01VWTWUNsaj/NkFVDgFHA/Lc z0tXrA/isHhSZs6SXSpCV6Y9XxGHAubLQzsf8KVB7tuEZPIPwTd8hpeus8l6zK6Lg2n1 Qb/j709m1y15ZeJe3UYXiuPjHoKIN2X4ssPz1C5VbaL2R37rO03sng8rxnBLi3KAt6YR qI02QCJ8rroCb6OgasNsV0iUq850bF5lNWupfHHu2ditogk+tIBg2b+tdxdtLfobeh40 l5Ew0s38bPgrA6Mdg+Ugq4nmeS6E7bIn3z9SkK50ukqGgl4RRaWe8a0JPUbTlTg2CNkZ Iqnw== X-Gm-Message-State: AOAM533iFQuLrWo08/AMZfX/eMbX3OoPZPUD9ynAr8ZfEe+IP4ApJEAl MdFQwm2BEvH069UpQolikGC0kt+hlT+fXLpVSYqgVOwvmkM= X-Google-Smtp-Source: ABdhPJxhtmghcY3zi52OoRVjEsnovIH2y5EEdMgT+aeO9Ivs0JnCY98zxwdwhK1gbp1yn9MLvY/HZfrVYFSja1xhZLQ= X-Received: by 2002:a05:6e02:154d:: with SMTP id j13mr10521594ilu.153.1611789180086; Wed, 27 Jan 2021 15:13:00 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a6b:c88b:0:0:0:0:0 with HTTP; Wed, 27 Jan 2021 15:12:59 -0800 (PST) Date: Wed, 27 Jan 2021 17:12:59 -0600 Message-ID: Subject: How to display instructions around the current instuction? To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" 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: , From: Peng Yu via Gdb Reply-To: Peng Yu Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" Hi, The following command will disply instructions below the current instructions. Is there a way to display around the current instruction (e.g., 5 instructions above and 5 instructions below)? display/10i $rip -- Regards, Peng