-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: add recursive option to findrefs
command
#244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we call Context::Inspect
instead of reformatting it here?
@mmarchini I already addressed your comments. |
@@ -491,6 +522,7 @@ bool PluginInitialize(SBDebugger d) { | |||
" * -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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. There's still some cleanup to be done in the future, but nothing blocker. Thanks @Drieger!
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_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
llv8_
unused, PR with fix #297
Introduce a new command flag to
findrefs
, command --recursiveallow user to transverse the whole references tree for the given
object.
Refs: #115