This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/21044] Text or color mark on current line in code listing
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 12 Jan 2017 11:27:15 +0000
- Subject: [Bug cli/21044] Text or color mark on current line in code listing
- Auto-submitted: auto-generated
- References: <bug-21044-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21044
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
Component|tui |cli
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
In the TUI (try "tui enable"), we already highlight the current line.
For "list", I agree that'd be really nice. (I've wanted it for a long while.)
lldb does that, and puts the arrow before the line numbers, which I think is
more visible:
102 printf(...)
-> 103 int a = 1; // arrow?
104 return 0;
105 }
This shouldn't be hard to implement if someone wants to take a stab at it.
Note we already print the current instruction in the output of the
"disassemble" command:
0x00000000004009d3 <+12>: mov %rsi,-0x30(%rbp)
=> 0x00000000004009d7 <+16>: mov $0x400c62,%edi
0x00000000004009dc <+21>: callq 0x400760 <objc_get_class@plt>
0x00000000004009e1 <+26>: mov %rax,%rbx
In the TUI, you'll notice that we also indicate which lines have
breakpoints, with "b+". That's something that I've wanted for "list" and
"disassemble" too.
--
You are receiving this mail because:
You are on the CC list for the bug.