public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug tui/30325] New: [gdb/tui] Stray '[' before insn adddress
Date: Fri, 07 Apr 2023 09:10:04 +0000	[thread overview]
Message-ID: <bug-30325-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2023-04-07  9:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-07  9:10 vries at gcc dot gnu.org [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30325-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).