[Lldb-commits] [PATCH] D62501: Implement GetSharedLibraryInfoAddress
António Afonso via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Jun 5 09:58:17 PDT 2019
aadsm added a comment.
> Another advantage of having this in an abstract class is that you could test this in isolation, as NativeProcessProtocol is already setup to mock memory accesses: https://github.com/llvm-mirror/lldb/blob/master/unittests/Host/NativeProcessProtocolTest.cpp.
I might be missing something here, I'm not sure how having this in a `NativeProcessELF` class instead of `NativeProcessLinux` would make things easier for testing. Like you said, `NativeProcessProtocol` is the one set up to mock memory access. I still need to create my own `MockProcessELF`, which makes me think if there's a way to somehow reuse `MockProcess` to create `MockProcessELF`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62501/new/
https://reviews.llvm.org/D62501
More information about the lldb-commits
mailing list