[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 22 07:48:15 PDT 2023
================
@@ -659,3 +659,16 @@ def test_fs_gs_base(self):
pthread_self_val.GetValueAsUnsigned(0),
"fs_base does not equal to pthread_self() value.",
)
+
+ def test_process_must_be_stopped(self):
+ """Check that all register commands error when the process is not stopped."""
+ self.build()
+ exe = self.getBuildArtifact("a.out")
+ pid = self.spawnSubprocess(exe, ["wait_for_attach"]).pid
+ self.setAsync(True)
+ self.runCmd("process attach --continue -p %d" % pid)
----------------
DavidSpickett wrote:
Added a comment to note why we need async.
https://github.com/llvm/llvm-project/pull/67124
More information about the lldb-commits
mailing list