ted added a comment.

I've got a test written. It doesn't crash like the debugger in the wild does, 
but it does give a tid of 0 for each thread I ask about. So I can assert if the 
threads don't have the correct tid.

With the patch, the test passes (gets the tids correctly)
Without the patch and asserts enabled, the test causes an assert in 
llvm::Optional
WIthout the patch and asserts disabled, the test fails when it checks the tid.

Which leads me to 1 more question - what should I do when we have a malformed 
response, and there are no threads listed? I'm leaning towards just falling 
through to the if at line 2931, and returning a pid and tid of 1. That's what 
we do if there's and empty response.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109937/new/

https://reviews.llvm.org/D109937

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to