src: add recursive option to findrefs command#244
src: add recursive option to findrefs command#244Drieger wants to merge 4 commits intonodejs:masterfrom
findrefs command#244Conversation
mmarchini
left a comment
There was a problem hiding this comment.
Nice! :D
Left a few comments. Also, need to run make format here.
src/llscan.cc
Outdated
| ss << rang::fg::cyan << "0x%" PRIx64 << rang::fg::reset << ": " | ||
| << rang::fg::magenta << "Context" << rang::style::bold << rang::fg::yellow | ||
| << ".%s" << rang::fg::reset << rang::style::reset << "=" << rang::fg::cyan | ||
| << "0x%" PRIx64 << rang::fg::reset << "\n"; |
There was a problem hiding this comment.
Can't we call Context::Inspect instead of reformatting it here?
|
@mmarchini I already addressed your comments. |
| " * -n, --name name - all properties with the specified name\n" | ||
| " * -s, --string string - all properties that refer to the specified " | ||
| "JavaScript string value\n" | ||
| " * -r, --recursive - walk through references tree recursively\n" |
There was a problem hiding this comment.
-r is incompatible with -s and -n, right? If so this should be documented, otherwise, we should have tests for -r -s <string> and -r -n <property>.
|
@mmarchini I moved duplicated code to a method and added tests for all |
dbda298 to
240cbbb
Compare
|
The error seems to be related to #267 and was not introduced by this PR, it is being captured by the test in some situations. |
240cbbb to
65d202a
Compare
Codecov Report
@@ Coverage Diff @@
## master #244 +/- ##
==========================================
+ Coverage 79.96% 80.77% +0.81%
==========================================
Files 34 34
Lines 4292 4369 +77
==========================================
+ Hits 3432 3529 +97
+ Misses 860 840 -20
Continue to review full report at Codecov.
|
Introduce a new command flag to `findrefs`, command --recursive allow user to transverse the whole references tree for the given object. Refs: nodejs#115
51cfe57 to
6b4e80a
Compare
|
I'll keep this open for a few days in case someone else wants to review it, otherwise I plan to land this by the weekend. |
|
Landed in 85f067a...c29d5af, thank you! |
| lldb::SBCommandReturnObject& result) override; | ||
|
|
||
| private: | ||
| v8::LLV8* llv8_; |

Introduce a new command flag to
findrefs, command --recursiveallow user to transverse the whole references tree for the given
object.
Refs: #115