Skip to content

🍒/FBI/50b40b051890+f9e6be5cc1a2+10eb32f45d40+d09a21a0b378 #3573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

JDevlieghere
Copy link

  • [lldb] Improve error reporting in lang objc tagged-pointer info
  • [lldb] Update tagged pointer command output and test.
  • [lldb] Improve 'lang objc tagged-pointer info' command
  • [lldb] Remove failures case from TestTaggedPointerCmd

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

(cherry picked from commit 50b40b0)
 - Use formatv to print the addresses.
 - Add check for 0x0 which is treated as an invalid address.
 - Use a an address that's less likely to be interpreted as a real
   tagged pointer.

(cherry picked from commit f9e6be5)
Don't try to get a class descriptor for a pointer that doesn't look like
a tagged pointer. Also print addresses as fixed-width hex and update the
test.

(cherry picked from commit 10eb32f)
Somehow every pointer looks like it's tagged on GreenDragon. Removing
the check to unblock the bot until we can get to the bottom of this.

(cherry picked from commit d09a21a)
@JDevlieghere
Copy link
Author

@swift-ci please test

1 similar comment
@JDevlieghere
Copy link
Author

@swift-ci please test

@JDevlieghere JDevlieghere merged commit f0f0299 into stable/20210726 Nov 29, 2021
@JDevlieghere JDevlieghere deleted the 🍒/FBI/50b40b051890+f9e6be5cc1a2+10eb32f45d40+d09a21a0b378 branch November 29, 2021 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant