Skip to content
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

Fixed register names and capstone mode flags for sparc #573

Merged
merged 2 commits into from
Nov 22, 2018

Conversation

gymgit
Copy link
Contributor

@gymgit gymgit commented Nov 22, 2018

On sparc architecture the original register aliases caused the context regs command to fail. Similarly, the default CS_MODE_32 causes a capstone.CsError: Invalid mode (CS_ERR_MODE) exception, thus the context disasm failed. I have tested this with the following sw versions:

qemu-sparc32plus --version
qemu-sparc32plus version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

gdb-multiarch --version
GNU gdb (GDB) 8.2

Cheers,
Gym

@disconnect3d
Copy link
Member

disconnect3d commented Nov 22, 2018

Haha, seems you also played the Dragon Sector CTF :). Thanks a lot! <3

@disconnect3d disconnect3d merged commit 2978cd8 into pwndbg:dev Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants