diff options
author | Tong Shen <endlessroad@google.com> | 2014-08-05 01:54:19 -0700 |
---|---|---|
committer | Tong Shen <endlessroad@google.com> | 2014-08-05 11:11:33 -0700 |
commit | 547cdfd21ee21e4ab9ca8692d6ef47c62ee7ea52 (patch) | |
tree | 078d52b6025fc1e42b7343550b0dbbdad69eafac /runtime/utils.h | |
parent | 8b62dc0f993d0445401655fc274e5225498fa81c (diff) | |
download | art-547cdfd21ee21e4ab9ca8692d6ef47c62ee7ea52.tar.gz art-547cdfd21ee21e4ab9ca8692d6ef47c62ee7ea52.tar.bz2 art-547cdfd21ee21e4ab9ca8692d6ef47c62ee7ea52.zip |
Emit CFI for x86 & x86_64 JNI compiler.
Now for host-side x86 & x86_64 ART, we are able to get complete stacktrace with even mixed C/C++ & Java stack frames.
Testing:
1. art/test/run-test --host --gdb [--64] --no-relocate 005
2. In gdb, run 'b art::Class_classForName' which is implementation of a Java native method, then 'r'
3. In gdb, run 'bt'. You should see stack frames down to main()
Change-Id: I2d17e9aa0f6d42d374b5362a15ea35a2fce96302
Diffstat (limited to 'runtime/utils.h')
-rw-r--r-- | runtime/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/utils.h b/runtime/utils.h index 73872d31d9..49bcbf9ea7 100644 --- a/runtime/utils.h +++ b/runtime/utils.h @@ -497,6 +497,11 @@ class VoidFunctor { } }; +void PushWord(std::vector<uint8_t>* buf, int32_t data); + +void EncodeUnsignedLeb128(uint32_t data, std::vector<uint8_t>* buf); +void EncodeSignedLeb128(int32_t data, std::vector<uint8_t>* buf); + } // namespace art #endif // ART_RUNTIME_UTILS_H_ |