Skip to content

Remove undefined constants in riscv_const.py (#2660)#2661

Merged
kabeor merged 1 commit intocapstone-engine:nextfrom
bpfsnoop:fix/python-binding
Apr 2, 2025
Merged

Remove undefined constants in riscv_const.py (#2660)#2661
kabeor merged 1 commit intocapstone-engine:nextfrom
bpfsnoop:fix/python-binding

Conversation

@Asphaltt
Copy link
Copy Markdown
Contributor

The following constants are undefined in capstone/include/capstone/riscv.h.

So, comment them as those are commented in riscv.h.

Your checklist for this pull request

  • I've documented or updated the documentation of every API function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

Please check the issue #2660

Test plan

I'm going to maintain gapstone, which generates Go code from bindings/python/capstone.

After fixing the gapstone's unit test issues with capstone 5.0.6 in the future, I'll add a GitHub Actions workflow to run go test -v . to ensure the generated Go code is fine with the corresponding capstone version.

Closing issues

closes #2660

@github-actions github-actions Bot added the Python Bindings label Mar 25, 2025
Copy link
Copy Markdown
Collaborator

@Rot127 Rot127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the commented lines in riscv.h instead. And run const_generator.py python again. This will remove the constants.

The following constants are undefined in `capstone/include/capstone/riscv.h`.

So, remove them as those were commented in `riscv.h`.

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
@Asphaltt Asphaltt force-pushed the fix/python-binding branch from 14aa834 to 40869af Compare March 26, 2025 13:53
@Asphaltt Asphaltt changed the title Comment undefined constants in riscv_const.py (#2660) Remove undefined constants in riscv_const.py (#2660) Mar 26, 2025
@github-actions github-actions Bot added the RISCV Arch label Mar 26, 2025
@Asphaltt Asphaltt requested a review from Rot127 March 26, 2025 13:54
@Rot127
Copy link
Copy Markdown
Collaborator

Rot127 commented Mar 29, 2025

@kabeor

Copy link
Copy Markdown
Member

@kabeor kabeor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, merged.

@kabeor kabeor merged commit 2607d0f into capstone-engine:next Apr 2, 2025
20 checks passed
kabeor pushed a commit that referenced this pull request Apr 9, 2025
The following constants are undefined in `capstone/include/capstone/riscv.h`.

So, remove them as those were commented in `riscv.h`.

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Rot127 pushed a commit that referenced this pull request Apr 11, 2025
The following constants are undefined in `capstone/include/capstone/riscv.h`.

So, remove them as those were commented in `riscv.h`.

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
@Asphaltt Asphaltt deleted the fix/python-binding branch April 20, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Python Bindings RISCV Arch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python, RISCV] Incorrect constants of RISCV_GRP_*

3 participants