public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/26024] New: Cannot scroll up in asm view
@ 2020-05-22 13:38 edd at theunixzoo dot co.uk
  2020-06-25 19:40 ` [Bug tui/26024] " magiblot at hotmail dot com
  2021-03-17 10:58 ` edd at theunixzoo dot co.uk
  0 siblings, 2 replies; 3+ messages in thread
From: edd at theunixzoo dot co.uk @ 2020-05-22 13:38 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26024

            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 the
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 <stdio.h>
#include <stdlib.h>

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 

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 lead
to the crash.

I'm using version 9.1 but bug seems also present in 8.2.1, as distributed with
debian.

Thanks

[0]
https://stackoverflow.com/questions/26572805/gdb-tui-scroll-assembly-view-above-current-instruction

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tui/26024] Cannot scroll up in asm view
  2020-05-22 13:38 [Bug tui/26024] New: Cannot scroll up in asm view edd at theunixzoo dot co.uk
@ 2020-06-25 19:40 ` magiblot at hotmail dot com
  2021-03-17 10:58 ` edd at theunixzoo dot co.uk
  1 sibling, 0 replies; 3+ messages in thread
From: magiblot at hotmail dot com @ 2020-06-25 19:40 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26024

magiblot at hotmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |magiblot at hotmail dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug tui/26024] Cannot scroll up in asm view
  2020-05-22 13:38 [Bug tui/26024] New: Cannot scroll up in asm view edd at theunixzoo dot co.uk
  2020-06-25 19:40 ` [Bug tui/26024] " magiblot at hotmail dot com
@ 2021-03-17 10:58 ` edd at theunixzoo dot co.uk
  1 sibling, 0 replies; 3+ messages in thread
From: edd at theunixzoo dot co.uk @ 2021-03-17 10:58 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26024

Edd Barrett <edd at theunixzoo dot co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Edd Barrett <edd at theunixzoo dot co.uk> ---
I just tried the test case with gdb-10.1 and scroll up seems to have been fixed
(albeit with caveats, see Bug #27593).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-17 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 13:38 [Bug tui/26024] New: Cannot scroll up in asm view edd at theunixzoo dot co.uk
2020-06-25 19:40 ` [Bug tui/26024] " magiblot at hotmail dot com
2021-03-17 10:58 ` edd at theunixzoo dot co.uk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).