public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/30356] New: gdb/mi equivalent for "checkpoint"
@ 2023-04-14 19:28 epasveer at att dot net
2023-04-22 0:25 ` [Bug mi/30356] " tromey at sourceware dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: epasveer at att dot net @ 2023-04-14 19:28 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30356
Bug ID: 30356
Summary: gdb/mi equivalent for "checkpoint"
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: mi
Assignee: unassigned at sourceware dot org
Reporter: epasveer at att dot net
Target Milestone: ---
Hi,
Are there gdb/mi equivalents for the regular checkpoint commands?
* checkpoint
* info checkpoints
* restart <checkpoint-id>
* delete checkpoint <checkpoint-id>
Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug mi/30356] gdb/mi equivalent for "checkpoint"
2023-04-14 19:28 [Bug mi/30356] New: gdb/mi equivalent for "checkpoint" epasveer at att dot net
@ 2023-04-22 0:25 ` tromey at sourceware dot org
2023-05-08 20:18 ` epasveer at att dot net
2023-05-09 18:12 ` tromey at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2023-04-22 0:25 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30356
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I don't think there is currently an MI command for this.
You may be able to write one in Python without too
much effort. (Perhaps hackily though.)
Checkpoints in general seem a bit weird to me.
It's unclear if people use them much; they are
only available for Linux and they don't work with
threaded inferiors.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug mi/30356] gdb/mi equivalent for "checkpoint"
2023-04-14 19:28 [Bug mi/30356] New: gdb/mi equivalent for "checkpoint" epasveer at att dot net
2023-04-22 0:25 ` [Bug mi/30356] " tromey at sourceware dot org
@ 2023-05-08 20:18 ` epasveer at att dot net
2023-05-09 18:12 ` tromey at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: epasveer at att dot net @ 2023-05-08 20:18 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30356
--- Comment #2 from Ernie Pasveer <epasveer at att dot net> ---
Hi Tom,
Can you elaborate more the the "python hack" approach. I can at least
investigate that. I suspect it would mean the output from the python code would
follow the form of gdb/mi stream channels. ie:
-checkpoint-create
-checkpoint-list
^done,CheckpointTable={nr_rows="1",nr_cols="4", ...
-checkpoint-restore N
The python code would accept these "new" commands and somehow morph them into
the native gdb commands.
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Checkpoint_002fRestart.html#Checkpoint_002fRestart
Perhaps you can point me to the resources to make custom commands in python.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug mi/30356] gdb/mi equivalent for "checkpoint"
2023-04-14 19:28 [Bug mi/30356] New: gdb/mi equivalent for "checkpoint" epasveer at att dot net
2023-04-22 0:25 ` [Bug mi/30356] " tromey at sourceware dot org
2023-05-08 20:18 ` epasveer at att dot net
@ 2023-05-09 18:12 ` tromey at sourceware dot org
2 siblings, 0 replies; 4+ messages in thread
From: tromey at sourceware dot org @ 2023-05-09 18:12 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=30356
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
Basically you can write new MI commands in Python now:
https://sourceware.org/gdb/current/onlinedocs/gdb.html/GDB_002fMI-Commands-In-Python.html#GDB_002fMI-Commands-In-Python
So you could use this to wrap the CLI commands and generate MI output.
This isn't fantastic but it could be done without patching gdb itself.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-05-09 18:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-14 19:28 [Bug mi/30356] New: gdb/mi equivalent for "checkpoint" epasveer at att dot net
2023-04-22 0:25 ` [Bug mi/30356] " tromey at sourceware dot org
2023-05-08 20:18 ` epasveer at att dot net
2023-05-09 18:12 ` tromey at sourceware dot 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).