From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A33C33851C0C; Fri, 22 May 2020 13:38:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A33C33851C0C From: "edd at theunixzoo dot co.uk" To: gdb-prs@sourceware.org Subject: [Bug tui/26024] New: Cannot scroll up in asm view Date: Fri, 22 May 2020 13:38:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tui X-Bugzilla-Version: 9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: edd at theunixzoo dot co.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 13:38:20 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26024 Bug ID: 26024 Summary: Cannot scroll up in asm view Product: gdb Version: 9.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: tui Assignee: unassigned at sourceware dot org Reporter: edd at theunixzoo dot co.uk Target Milestone: --- Hi, As others have noted too [0], in certain cases you cannot scroll up using t= he up arrow key when in the asm layout. It seems to me that the bug manifests once the program being debugged has crashed with SIGSEGV. Suppose a.c is a buggy program like: ``` #include #include int main(int argc, char **argv) { printf("%s\n", (char *)0); return (EXIT_SUCCESS); } ``` Now we debug it: ``` $ gcc -g a.c $ gdb a.out ... (gdb) layout asm ``` Now verify that scrolling up and down both work. They do. ``` (gdb) run Starting program: /tmp/a.out=20 Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7f5a181 in ?? () from /lib/x86_64-linux-gnu/libc.so.6 ``` Now scrolling down works, but up does not. This is particularly acute, as you usually want to see what instructions le= ad to the crash. I'm using version 9.1 but bug seems also present in 8.2.1, as distributed w= ith debian. Thanks [0] https://stackoverflow.com/questions/26572805/gdb-tui-scroll-assembly-view-a= bove-current-instruction --=20 You are receiving this mail because: You are on the CC list for the bug.=