Created
January 20, 2017 12:15
-
-
Save AnnaMag/80644d61795c983f848d6e8fc437f3ea to your computer and use it in GitHub Desktop.
helper functions to print V8 Objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lldb debugging v8-related functionality in Node.js | |
# ========================================================= | |
# lldb re-write of user-defined V8 debugging functions | |
# https://github.com/v8/v8/blob/master/tools/gdbinit | |
#allow the file to be read when lldb starts (set to false to ignore it) | |
settings set target.load-cwd-lldbinit true | |
# Print HeapObjects. | |
command regex job 's/(.+)/call _v8_internal_Print_Object((void*)(%1))/' | |
# Print v8::Local handle value. | |
command regex jlh 's/(^\*.+)/call _v8_internal_Print_Object(*(v8::internal::Object**)(%1))/' | |
# Print Code objects containing given PC from an internal code address | |
command regex jco 's/(.+)/call _v8_internal_Print_Code((void*)(%1))/' | |
# Print TypeFeedbackVector | |
command regex jfv 's/(.+)/call _v8_internal_Print_TypeFeedbackVector((void*)(%1))/' | |
# Print DescriptorArray. | |
command regex jda 's/(.+)/call _v8_internal_Print_DescriptorArray((void*)(%1))/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment