[all-commits] [llvm/llvm-project] 50b40b: [lldb] Improve error reporting in `lang objc tagge...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Tue Nov 2 14:25:56 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50b40b0518900f60ec2712384f6ce40341ed7484
      https://github.com/llvm/llvm-project/commit/50b40b0518900f60ec2712384f6ce40341ed7484
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2021-11-02 (Tue, 02 Nov 2021)

  Changed paths:
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
    A lldb/test/API/lang/objc/tagged-pointer/Makefile
    A lldb/test/API/lang/objc/tagged-pointer/TestTaggedPointerCmd.py
    A lldb/test/API/lang/objc/tagged-pointer/main.m

  Log Message:
  -----------
  [lldb] Improve error reporting in `lang objc tagged-pointer info`

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
  error: could not get class descriptor for 0xbb6404c47a587764

  (lldb) lang objc tagged-pointer info n1
  error: could not convert 'n1' to a valid address

Differential revision: https://reviews.llvm.org/D112945




More information about the All-commits mailing list