[Lldb-commits] [PATCH] D112945: [lldb] Improve error reporting in `lang objc tagged-pointer info`

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 1 11:56:48 PDT 2021


JDevlieghere created this revision.
JDevlieghere added a reviewer: aprantl.
JDevlieghere requested review of this revision.

Improve error handling for the `lang objc tagged-pointer info`. Rather than failing silently, report an error if we couldn't convert an argument to an address or resolve the class descriptor.

  (lldb) lang objc tagged-pointer info 0xbb6404c47a587764
  could not get class descriptor for 0xbb6404c47a587764
  (lldb) lang objc tagged-pointer info n1
  could not convert 'n1' to a valid address


https://reviews.llvm.org/D112945

Files:
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112945.383846.patch
Type: text/x-patch
Size: 4729 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211101/d5ccbe1e/attachment.bin>


More information about the lldb-commits mailing list