-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#32: fix ::findjsobjects for V8 4.5.x
This fixes ::findjsobjects for core dumps generated by Node.js 4.0.x (and possibly later). This change fixes how mdb_v8 retrieves the constructor of a JavaScript object given its Map. It also fixes the problem of accessing objects' properties that was caused by a typo in "v8db_propindex_mask" that should have been "v8db_prop_index_mask" (note the underscore in "prop_index") in my previous changes. It adds a "fallback" member for v8_offsets so that we can have a fallback for typed arrays' length's offset. Finally, this change allows ::findjsobjects to find Buffer instances and inspect them. However, due to how Buffer instances are implemented in node v4.x and later, they are currently seen by mdb_v8 as having a constructor named "Uint8Array" instead of "Buffer", so ::findjsobjects -c Buffer won't find any actual Buffer instances, instead one has to use ::findjsobjects -c Uint8Array.
- Loading branch information
1 parent
0408e3b
commit 60c8b6c
Showing
3 changed files
with
189 additions
and
22 deletions.
There are no files selected for viewing
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
Oops, something went wrong.