Discussion:
[Bug tui/15580] New: TUI assembly window line prefix is too long
adrianh.bsc at gmail dot com
2013-06-05 14:27:39 UTC
Permalink
http://sourceware.org/bugzilla/show_bug.cgi?id=15580

Bug ID: 15580
Summary: TUI assembly window line prefix is too long
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: tui
Assignee: unassigned at sourceware dot org
Reporter: adrianh.bsc at gmail dot com

When the assembly window is displayed, it prefixes each line with a fully
resolved C++ function signature and line offset which can be very long as it
can contain namespaces and template parameters. This is ok, except that it
makes it difficult to read the assembly instructions as I have to set the ASM
window focus and then scroll right.

There are a couple of different suggestions that I have for this:

1. Have the assembly window right justify it's instructions. This will allow
the assembly instructions to always be displayed, yet almost always allow the
right most portion of the signature and offset to be displayed.

2. Have an alternative prefix which could include be a <filename>:<line> prefix
or <filename>:<line>+<offset> for something similar to the <function
signature>+<offset> prefix.

I'm thinking that the first would require the least amount of changes, but the
second may be useful, perhaps in combination with the first.
--
You are receiving this mail because:
You are on the CC list for the bug.
adrianh.bsc at gmail dot com
2013-06-05 15:24:12 UTC
Permalink
http://sourceware.org/bugzilla/show_bug.cgi?id=15580

--- Comment #1 from Adrian <adrianh.bsc at gmail dot com> ---
Using `set print max-symbolic-offset 1` command shows me that it is difficult
to match up assembly instructions with source lines, so being able to have
option 2 (<filename>:<line> prefix or <filename>:<line>+<offset>) available
would definitely be useful.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-02 23:44:54 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=15580

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
If the asm view were limited to the current function, the name
could be put in the border.
Or, the border could hold the name for the function at the top,
and if the function changed, it could just be text in the window.
That would remove the prefix entirely.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...