diff options
author | David Srbecky <dsrbecky@google.com> | 2021-02-14 21:42:08 +0000 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2021-03-09 22:10:03 +0000 |
commit | 0b6d9eefdc4996ce99c799dc6d23a388e969c2af (patch) | |
tree | 787db46db092526de0ca9f393c8210c672732804 /libunwindstack/include/unwindstack/JitDebug.h | |
parent | 8c9b52bdf55e82a4d60fedc12db3784c1ffd4a50 (diff) | |
download | unwinding-0b6d9eefdc4996ce99c799dc6d23a388e969c2af.tar.gz |
Add helpers to create JitDebug and DexFiles.
These helpers will make it easier to replace the
implementation without affecting users of the classes.
The helpers take the arch, which ensures it is set and
it allows to return templated variant based on the arch.
Test: art/test.py -r -b --host -t 137-cfi
Test: libunwindstack_test
Change-Id: I6e09ce29e39faa57c95fc8a3e86f2260bf91a76e
Diffstat (limited to 'libunwindstack/include/unwindstack/JitDebug.h')
-rw-r--r-- | libunwindstack/include/unwindstack/JitDebug.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libunwindstack/include/unwindstack/JitDebug.h b/libunwindstack/include/unwindstack/JitDebug.h index 2090f3f..d8c04e0 100644 --- a/libunwindstack/include/unwindstack/JitDebug.h +++ b/libunwindstack/include/unwindstack/JitDebug.h @@ -66,6 +66,9 @@ class JitDebug : public Global { std::mutex lock_; }; +std::unique_ptr<JitDebug> CreateJitDebug(ArchEnum arch, std::shared_ptr<Memory>& memory, + std::vector<std::string> search_libs = {}); + } // namespace unwindstack #endif // _LIBUNWINDSTACK_JIT_DEBUG_H |