-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
Feature/filtering la #4786
Feature/filtering la #4786
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.
Add a test under test/db/cmd/
librz/core/casm.c
Outdated
} | ||
feat2 = has_esil(core, ap->name); | ||
strcat(feat, feat2); | ||
|
||
for (int i = 0;flags && flags[i] != '\0'; i++) { |
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.
I like how you solved it, but this is not clang formatted. Run sys/clang-format.py (requires clang format) and submit the changes.
So I have been working on the testing of this command and found out that Also since I have applied filtering on Laq and Laj commands too, should I do extensive testing for each filtering and their combinations with La command output types? |
Just add a test for each j and q variant. |
Ps: check the options of sys/clang-format.py to pass the correct version of clang format |
No, i meant the binary location of clang-format16 |
I passed the path to binary location of clang-format in -c argument and there was no change in any file |
this is how i run it |
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.
Ok, just manually revert the changes of
librz/arch/isa/rx/rx_opcode_detail.c
librz/bin/format/elf/glibc_elf.h
librz/hash/algorithms/ssdeep/fnv_hash.h
librz/include/rz_magic.h
Then squash and we can merge.
chore:updated rz_core_asm_plugins_print to have flag arguments add optional flags support to rz_core_asm_plugins_print add feature argument add features argument rz-test: add `-y` option to accept all (rizinorg#4772) * Add rz-test '-y' option to accept all * Add '-y' into the help text add clang format correct Laj output to have features other than ad add tests for filtering La add tests for filtering Laq add tests for filtering Laj clang format rz-test: add `-y` option to accept all (rizinorg#4772) * Add rz-test '-y' option to accept all * Add '-y' into the help text dbtj: Add space between flags in `desc` property (rizinorg#4790) subprojects: update rz-libdemangle (rizinorg#4791) Remove trailing space in dbg_trace test (rizinorg#4792) merge the filtering tests add clang format Remove trailing space in dbg_trace test (rizinorg#4792) rzil: add VM event memory (read|write) index (rizinorg#4789) This is because the memory of the RzIL VM has an index, but the index is ignored when an event is generated. revert changes
a7a17a5
to
6312291
Compare
squashed the commits |
Not really, we normally always squash, but is just to have a clean history here (for readability) |
Seems like RzIL support for xtensa is added would update the tests |
Your checklist for this pull request
Detailed description
I updated the
rz_core_asm_plugins_print
function to handle the input of features argument and also removed the arch argument fromrz_core_asm_plugin_print
while also adding argument to handle the featuresrz_core_asm_plugin_print
were being made and then I concatenate them into feat, my filter is passed as flags argument in the function and if any character of flags is not present in feat the function returnsRZ_CMD_STATUS_OK
rather than printing the output for thatRzAsmPlugin
rz_plugins_asm_print_handler
to handle therz_core_plugins_asm_print
accordingly with the number of argumentsrz_core_asm_plugins_print
at other places by passing NULL as flagsplugins_asm_print_args
to have an optional argument name 'features'cmd_plugins.yaml
to handle an argument for La commandTest plan
Closing issues
closes #4756