]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/tui: use correct setting to control asm window styling
authorAndrew Burgess <aburgess@redhat.com>
Mon, 17 Feb 2025 10:51:30 +0000 (10:51 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 24 Feb 2025 16:57:24 +0000 (16:57 +0000)
commitdbfac07a71613288529d4b40c9a48ad76c19b360
tree5a40c3da1238ebdceb742f30821a5058f428444e
parent4fd9516e3300249a9fe90d5c7ba6b63ba3058857
gdb/tui: use correct setting to control asm window styling

Currently the TUI's asm window uses `source_styling` to control
styling.  This setting is supposed to be for styling of source files
though, and the asm window displays disassembler output.

We have a different setting for this `disassemble_styling`, which is
controlled with 'set style disassembler enabled on|off'.

Switch to use the correct control variable.

I've written a new test for this, but this required some additions to
the tuiterm library in order to grab character attributes for a screen
region.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.tui/tui-disasm-styling.exp [new file with mode: 0644]
gdb/testsuite/lib/tuiterm.exp
gdb/tui/tui-disasm.c