Closed kamiyaa closed 5 years ago
Can you provide the input (in hexcode), and paste the output with "cstool" here?
Make sure you are building the latest code from the "next" branch, with: "make clean; ./make.sh; sudo ./make.sh install".
Sounds like your program has a bug? Can you minimize your code, and post it here?
sorry, it seems I had an older version of capstone headers when statically linking with the library. Thanks.
After building capstone on a powerpc machine and running a demo program, I was able to decode instructions properly. But when implementing it into a larger program, I ran into this weird behaviour where
cs_ins->mnemonic
andcs_ins->op_str
are empty:and this is the case for all instructions. I have these declared as global variables:
This occurs on
next
branch f9ebfae858fa8a3b14efe838249a94cd99a4797d