-
Notifications
You must be signed in to change notification settings - Fork 345
[lldb] Pass likely module names to reflection parsing machinery #4927
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
[lldb] Pass likely module names to reflection parsing machinery #4927
Conversation
@swift-ci test macOS |
@swift-ci test macOS |
@@ -623,8 +623,25 @@ GetObjectFileFormat(llvm::Triple::ObjectFormatType obj_format_type) { | |||
return obj_file_format; | |||
} | |||
|
|||
static llvm::SmallVector<llvm::StringRef, 1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it work to say SmallVector<llvm::StringRef>
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does, I chose 1 because I think in the vast majority of cases we'll only have one name per image.
virtual bool readELF(swift::remote::RemoteAddress ImageStart, | ||
llvm::Optional<llvm::sys::MemoryBlock> FileBuffer) = 0; | ||
find_section, | ||
llvm::SmallVector<llvm::StringRef, 1> likely_module_names = {}) = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As stated above, I chose 1 because I think in the vast majority of cases we'll only have one name per image, which I think is a reasonable assumption. Perhaps I should've passed SmallVectorImpl
to the addImage
functions, but I just merged the swift side of this patch 😕
@swift-ci macOS |
@swift-ci please test macOS |
@swift-ci please test macOS |
rdar://87889973