-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Capstone@next TriCore #3463
Capstone@next TriCore #3463
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
5184edb
to
79f9726
Compare
This comment was marked as resolved.
This comment was marked as resolved.
@imbillow you could temporarily disable it in your PR, and address them later |
This comment was marked as resolved.
This comment was marked as resolved.
076dda9
to
6a44426
Compare
649f785
to
d0926df
Compare
This comment was marked as resolved.
This comment was marked as resolved.
8b4c418
to
f719ba5
Compare
This comment was marked as resolved.
This comment was marked as resolved.
I found that there are some variables with different names and types in the DWARF information but with the same location. What I do in the code is to let it do not overwrite the arguments of function at least. |
Interesting. This is better be addressed during the DWARF 5 implementation though. Since the only issue in this PR is the System Z, could you please extract variable changes (after addressing my feedback first) into a separate PR again, so that we could merge them again and rebase tricore branches? |
One more nitpick @imbillow, on the same file
Note the Please also rebase on top of the latest |
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.
Why do you try to fix it as the endianness of the Tricore? It's the endianness of the host. I think the bug is somewhere in the Capstone, and you could try just running capstone tests for Tricore on the System Z VM, I bet it will show the problem
Just trying it out. I've actually tried debug in a s390x qemu Ubuntu22.04 VM, but found that gdb/lldb doesn't seem to debug properly. I'll do more experimentation when I can operate my pc later. |
This comment was marked as off-topic.
This comment was marked as off-topic.
c28fe4b
to
ae6561d
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.
Looks green now; well done. Please rearrange commits, and extract non-tricore part into a separate PR. Once its merged, we can rebase and merge this one too.
librz/core/canalysis.c
Outdated
@@ -6466,3 +6466,43 @@ RZ_API void rz_core_perform_auto_analysis(RZ_NONNULL RzCore *core, RzCoreAnalysi | |||
rz_cons_break_pop(); | |||
RZ_FREE(debugger); | |||
} | |||
|
|||
RZ_API char *rz_core_analysis_var_to_string(RZ_NONNULL RzCore *core, RZ_NONNULL RzAnalysisVar *var) { |
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.
@imbillow you forgot this
librz/include/rz_core.h
Outdated
@@ -1281,6 +1281,8 @@ RZ_API RZ_OWN RzList /*<RzRegItem *>*/ *rz_core_reg_filter_items_sync(RZ_NONNULL | |||
RZ_API void rz_core_cmd_show_analysis_help(RZ_NONNULL RzCore *core); | |||
RZ_API void rz_core_rtr_enable(RZ_NONNULL RzCore *core, const char *cmdremote); | |||
|
|||
RZ_API char *rz_core_analysis_var_to_string(RZ_NONNULL RzCore *core, RZ_NONNULL RzAnalysisVar *var); |
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.
And this
I will fix these places in a new PR |
ae6561d
to
81c8b16
Compare
REBASE ONLY
Your checklist for this pull request
Detailed description
Test plan
CI is green
Closing issues
Partially addresses #2704
Closes #3540