public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug tui/24137] TUI configuration variables: add settings for default focus when entering TUI [not found] <bug-24137-4717@http.sourceware.org/bugzilla/> @ 2023-05-27 10:05 ` vries at gcc dot gnu.org 2023-05-27 12:51 ` vries at gcc dot gnu.org 2023-05-27 18:30 ` vries at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: vries at gcc dot gnu.org @ 2023-05-27 10:05 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=24137 --- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- This: ... $ cat ~/.gdbinit define tui hookpost-enable focus cmd end define layout hookpost-src focus cmd end define layout hookpost-asm focus cmd end define layout hookpost-regs focus cmd end define layout hookpost-split focus cmd end define layout hookpost-next focus cmd end define layout hookpost-prev focus cmd end ... gets us a fair amount of the way, but has two caveats: - doesn't work for gdb -tui. When tui_enable is called, the hook is not installed yet. We can't fix this by moving the hooks to .gdbearlyinit, because that's too early for define. - doesn't work for new layouts, unless we add an additional hook for each of those. Then again, the first caveat can be worked around by introducing some alias that has the desired behaviour: ... $ alias tui="gdb -q -tui -iex \"focus cmd\"" ... -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tui/24137] TUI configuration variables: add settings for default focus when entering TUI [not found] <bug-24137-4717@http.sourceware.org/bugzilla/> 2023-05-27 10:05 ` [Bug tui/24137] TUI configuration variables: add settings for default focus when entering TUI vries at gcc dot gnu.org @ 2023-05-27 12:51 ` vries at gcc dot gnu.org 2023-05-27 18:30 ` vries at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: vries at gcc dot gnu.org @ 2023-05-27 12:51 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=24137 --- Comment #3 from Tom de Vries <vries at gcc dot gnu.org> --- Created attachment 14908 --> https://sourceware.org/bugzilla/attachment.cgi?id=14908&action=edit Tentative patch -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tui/24137] TUI configuration variables: add settings for default focus when entering TUI [not found] <bug-24137-4717@http.sourceware.org/bugzilla/> 2023-05-27 10:05 ` [Bug tui/24137] TUI configuration variables: add settings for default focus when entering TUI vries at gcc dot gnu.org 2023-05-27 12:51 ` vries at gcc dot gnu.org @ 2023-05-27 18:30 ` vries at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: vries at gcc dot gnu.org @ 2023-05-27 18:30 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=24137 --- Comment #4 from Tom de Vries <vries at gcc dot gnu.org> --- https://sourceware.org/pipermail/gdb-patches/2023-May/199901.html -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-27 18:30 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-24137-4717@http.sourceware.org/bugzilla/> 2023-05-27 10:05 ` [Bug tui/24137] TUI configuration variables: add settings for default focus when entering TUI vries at gcc dot gnu.org 2023-05-27 12:51 ` vries at gcc dot gnu.org 2023-05-27 18:30 ` 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).