[Lldb-commits] [lldb] Change debugserver to report the cpu(sub)type of process, not the host. (PR #82938)
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Sun Feb 25 19:16:28 PST 2024
================
@@ -26,3 +31,8 @@ def test(self):
"target triple is updated correctly")
error = process.Kill()
self.assertSuccess(error)
+
+ # Test debugserver behavior.
+ self.filecheck('platform shell cat "%s"' % packets, __file__)
+ # CHECK: cputype:100000c;cpusubtype:2;ptrsize:8;ostype:macosx;vendor:apple;endian:little;
----------------
jasonmolenda wrote:
this is could be done, but you could also just `self.expect("process plugin packet send qProcessInfo", substrs=["cputype:100000c;cpusubtype:2;"])`. We may add additional keys to this response in the future so I'm not sure I like matching all of the keys.
https://github.com/llvm/llvm-project/pull/82938
More information about the lldb-commits
mailing list