Finished implementing the Checkpoint feature.

This commit is contained in:
Ernie Pasveer
2025-06-01 11:48:24 -05:00
parent 70d191263f
commit 8d5c6a68fb
11 changed files with 515 additions and 27 deletions
+3 -3
View File
@@ -41,8 +41,8 @@ class MICheckpoint(gdb.MICommand):
checkpointmeta["id"] = columns.group(2)
checkpointmeta["state"] = columns.group(1)
checkpointmeta["process"] = columns.group(3)
checkpointmeta["file"] = columns.group(4)
checkpointmeta["line"] = columns.group(5)
checkpointmeta["file"] = re.sub("^file ", "", columns.group(4))
checkpointmeta["line"] = re.sub("^line ", "", columns.group(5))
checkpointentries.append(checkpointmeta)
@@ -64,7 +64,7 @@ class MICheckpoint(gdb.MICommand):
gdb.execute ("checkpoint " + " ".join(argv), to_string=True)
return None
elif self._mode == "select":
gdb.execute ("select " + " ".join(argv), to_string=True)
gdb.execute ("restart " + " ".join(argv), to_string=True)
return None
elif self._mode == "delete":
gdb.execute ("delete checkpoint " + " ".join(argv), to_string=True)