]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use ui_out for "info checkpoints"
authorKevin Buettner <kevinb@redhat.com>
Mon, 24 Feb 2025 20:04:00 +0000 (13:04 -0700)
committerKevin Buettner <kevinb@redhat.com>
Mon, 24 Feb 2025 20:05:02 +0000 (13:05 -0700)
commit04bfaa910acb40412d35ef622a02c3a27ace1991
tree434b9c32de8e3d5c8d27763cecde27e1a67acd50
parent431b369e1cb963b221345991a25f901a0b58d91a
Use ui_out for "info checkpoints"

In his review of my recent checkpoint work (commit e5501dd4321),
Andrew Burgess suggested that I use GDB's structured table generation
mechanism for the "info checkpoints" command.  This patch does
that.

Andrew also recommended using print_stack_frame() for the "Frame"
column.  I tried this, but ran into some problems, which are described
in a comment in the code.  I got it to mostly work, except for the
case when the current/active fork is running.  Switching context away
from and then back to a running fork doesn't work.  It could, perhaps,
be made to work, but I'm not convinced that the checkpoint facility is
important enough to expend the effort for this case.  So, instead,
I simply adapted the existing checkpoint frame printing code to
use the ui_out machinery instead of gdb_printf.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/linux-fork.c