public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tui/30325] New: [gdb/tui] Stray '[' before insn adddress
@ 2023-04-07  9:10 vries at gcc dot gnu.org
  2023-04-07  9:13 ` [Bug tui/30325] " vries at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2023-04-07  9:10 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 30325
           Summary: [gdb/tui] Stray '[' before insn adddress
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

When running test-case gdb.tui/tui-layout-asm.exp with tui_asm_window_width set
to 60, I get:
...
Box Dump (60 x 15) @ (0, 0):
    0 +----------------------------------------------------------+
    1 |    0x4004a7 <main>         push   %rbp                   |
    2 |    0x4004a8 <main+1>       mov    %rsp,%rbp              |
    3 |    0x4004ab <main+4>       mov    $0x0,%eax              |
    4 |    0x4004b0 <main+9>       pop    %rbp                   |
    5 |    0x4004b1 <main+10>      ret                           |
    6 |    0x4004b2                cs nopw 0x0(%rax,%rax,1)      |
    7 |   [0x4004bc                nopl   0x0(%rax)              |
    8 |    0x4004c0                nop                           |
    9 |    0x4004c1                nop                           |
   10 |    0x4004c2                nop                           |
   11 |    0x4004c3                nop                           |
   12 |    0x4004c4                nop                           |
   13 |    0x4004c5                nop                           |
   14 +----------------------------------------------------------+
...

There seems to be a stray '[' at line 7.

I reproduced it on an actual terminal, after setting cols/rows to 24/60:
...
$ ( export TERM=ansi; gdb tui-layout-asm -ex "maint set tui-resize-message on"
-ex "set tui border-kind ascii" -ex "tui enable" -ex "layout asm" )
...
and got:
...
+----------------------------------------------------------+
|    0x4004a7 <main>         push   %rbp                   |
|    0x4004a8 <main+1>       mov    %rsp,%rbp              |
|    0x4004ab <main+4>       mov    $0x0,%eax              |
|    0x4004b0 <main+9>       pop    %rbp                   |
|    0x4004b1 <main+10>      ret                           |
|    0x4004b2                cs nopw 0x0(%rax,%rax,1)      |
|   [0x4004bc                nopl   0x0(%rax)              |
|    0x4004c0                nop                           |
|    0x4004c1                nop                           |
|    0x4004c2                nop                           |
|    0x4004c3                nop                           |
|    0x4004c4                nop                           |
|    0x4004c5                nop                           |
+----------------------------------------------------------+
...

So, this isn't related to the tuienv terminal emulator.

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

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

end of thread, other threads:[~2023-04-12 22:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07  9:10 [Bug tui/30325] New: [gdb/tui] Stray '[' before insn adddress vries at gcc dot gnu.org
2023-04-07  9:13 ` [Bug tui/30325] " vries at gcc dot gnu.org
2023-04-07  9:55 ` vries at gcc dot gnu.org
2023-04-07 12:27 ` tromey at sourceware dot org
2023-04-07 14:25 ` vries at gcc dot gnu.org
2023-04-07 16:13 ` vries at gcc dot gnu.org
2023-04-11  8:24 ` vries at gcc dot gnu.org
2023-04-12 22:18 ` cvs-commit at gcc dot gnu.org
2023-04-12 22:18 ` cvs-commit at gcc dot gnu.org
2023-04-12 22:19 ` vries at gcc dot gnu.org

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).