Troubleshooting entries rewritten as FIXED with the fixing commits:
backend e6678e1 (Step Out in main, Stop/async, Run target switch,
temp main bp) and UI a3df7cd (narrow pane incl. the wrapping hint
root cause, sticky selection/checkbox, search popup). Run table row
updated (Target/Args read every time), stale-breakpoints note
updated (kept staged), First-run quirk callout removed, Known bugs
section rewritten as all fixed.
(a) The breakpoint pane opened with its # and Location columns
clipped off-screen left. The divider was at 380px (now 560px),
but the real cause was the hint line under the list: one
unwrapped ~700px line forced the pane minimum width to ~734px,
wider than the paned 560px slot, so GTK right-aligned the
overflowing pane. The hint now wraps; the pane fits its slot
exactly, # and Location are fully visible, the rest scrolls.
The list also keeps a 480px minimum width with a horizontal
scrollbar, Location has a 140px minimum and expands, and all
columns are resizable.
(b)/(h) The 150ms poll cleared and rebuilt every list on every tick,
wiping the selection (Edit/Remove did nothing) and dropping
quick checkbox clicks. Lists are now rebuilt only when their
contents change (fingerprint), the selection is preserved across
a rebuild (by breakpoint id, row index for staged rows, watch
name), the horizontal scroll offset is preserved too, and the
Enabled checkbox flips optimistically, reverting only on a
backend error.
(c) Step Out in main() checks can_step_out() first and writes a
sticky status-line note instead of showing gdb modal error.
(e) Run and autorun use restart_or_start(), so a changed Target or
Args switches target instead of re-running the loaded exe.
(g) Interactive search disabled on every debugger list
(gtk_tree_view_set_enable_search FALSE), so typing with a list
focused can no longer open GTK search popup.
Verified live under Xvfb with screenshots; console 42/42, GTK 8/8.
(c) step_out() refused in the outermost frame instead of sending
-exec-finish: new can_step_out() (frames>1, fallback on the stop
frame level); the UI now shows a status-line note, no modal.
(d) gdb runs in synchronous mode by default, so -exec-interrupt sat
unread while the target ran: enable mi-async at spawn, and
interrupt() falls back to SIGINT then SIGSTOP on the inferior pid.
Interrupt of a target in gtk_main now lands in ~0.1s (was a 5s
timeout, timed out waiting for gdb reply).
(e) new restart_or_start(exe, args): same target restarts, a changed
Target/Args kills the old target (via gdb kill, so it is reaped
at once) and starts the new one. kill_target() uses gdb kill as
primary; raw SIGKILL left a dead-but-unreaped inferior that made
-file-exec-and-symbols fail. Failed breakpoint re-applies stay
staged (id 0) so they come back when switching back.
(f) break-on-main breakpoint is now marked temporary: never written
to debugger_bps.conf, never duplicated on the next session, and
load dedupes stale duplicate main lines. add_breakpoint and the
refresh merge preserve the temporary flag.
Tests: harness 37-41 console (step_out refused, can_step_out in a
call, break-on-main not persisted, restart_or_start switches target,
interrupt stops a running target) + gtkspin target and GTK test 37
(interrupt_gtkapp_in_gtk_main). Console 42/42, GTK 8/8.