Skip to content

Conversation

Michael137
Copy link

@Michael137 Michael137 commented Oct 1, 2025

On Darwin C-symbols are prefixed with a '_'. The LLDB Macho-O parses
handles Objective-C metadata symbols starting with '_OBJC' specially.
Previously global symbols starting with a '_O' prefix were lost because
of incorrectly scoped if-guards. This patch removes those checks.

There is more cleanup that can be done in this file because there's a
bunch of duplicated checks for these ObjC symbols. I decided to leave
that for an NFC follow-up.

rdar://161740420
(cherry picked from commit 9f7e7f7)

…lvm#161521)

On Darwin C-symbols are prefixed with a '_'. The LLDB Macho-O parses
handles Objective-C metadata symbols starting with '_OBJC' specially.
Previously global symbols starting with a '_O' prefix were lost because
of incorrectly scoped if-guards. This patch removes those checks.

There is more cleanup that can be done in this file because there's a
bunch of duplicated checks for these ObjC symbols. I decided to leave
that for an NFC follow-up.

Depends on llvm#161520

rdar://158159242
(cherry picked from commit 9f7e7f7)
…unction (llvm#161536)

Just a simple de-duplication of the same code. We saw a bug here
recently (llvm#161521). Might as
well isolate this all in one place.

rdar://158159242
(cherry picked from commit 23e0815)
@Michael137 Michael137 merged commit 86fac95 into stable/21.x Oct 1, 2025
@Michael137 Michael137 deleted the lldb/macho-objc-metadata-parsing-to-21.x branch October 1, 2025 16:11
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