-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
Refactor to use API in Visual Mode #4339
base: dev
Are you sure you want to change the base?
Conversation
I've somewhat implemented switching to a basic block after I list the basic blocks in the function. I feel it's far from complete. I would really like more insights on this. @XVilka |
I think extracting and implementing |
sure I will look into it, thanks |
I'm not somehow able to get the output for |
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.
../librz/core/canalysis.c:455: error: identifier expected
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.
Much better. Maybe you could also convert vbT
to use (almost) the same logic. It should help you to make those functions more general.
Should I do that in this PR only ? |
I think it would be nice to do that in the same PR, yes. |
@@ -446,33 +451,40 @@ static void bb_info_print(RzCore *core, RzAnalysisFunction *fcn, RzAnalysisBlock | |||
pj_ki(pj, "ninstr", bb->ninstr); | |||
pj_kb(pj, "traced", bb->traced); | |||
pj_end(pj); | |||
char *json_str = rz_str_dup(pj_string(pj)); | |||
pj_free(pj); | |||
rz_strbuf_append(buf, json_str); | |||
break; | |||
} | |||
case RZ_OUTPUT_MODE_TABLE: |
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.
It broke tables output:
[XX] db/cmd/tables tables sum
RZ_NOPLUGINS=1 /Users/runner/bin/rizin -escr.utf8=0 -escr.color=0 -escr.interactive=0 -eflirt.sigdb.load.system=false -eflirt.sigdb.load.home=false -N -Qc 's main
af
afbt
afbt:fancy
afbt:size/sort/inc:simple
' bins/elf/hello_world
-- stdout
--- expected
+++ actual
@@ -1,17 +1,29 @@
-addr size jump fail
------------------------
-0x7aa 92 0x844 0x806
-0x806 62 0x844 -1
-0x844 3 -1 -1
-.------------------------------.
-| addr | size | jump | fail |
-)------------------------------(
-| 0x7aa | 92 | 0x844 | 0x806 |
-| 0x806 | 62 | 0x844 | -1 |
-| 0x844 | 3 | -1 | -1 |
-`------------------------------'
-addr size jump fail
------------------------
-0x844 3 -1 -1
-0x806 62 0x844 -1
-0x7aa 92 0x844 0x806
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+
+.---------------------------.
+| addr | size | jump | fail |
+)---------------------------(
+`---------------------------'
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+addr size jump fail
+--------------------
+
+addr size jump fail
+--------------------
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.
Sure I will take a look on weekend and fix it, I had tried to fix it multiple times but it didn't help. On Weekend, I will try again.
Could you please finish this one? |
Sure thing, Will do it once my exams are done. |
Your checklist for this pull request
Detailed description
...
Test plan
...
Closing issues
Partially Addresses #382
...