Closed yakamoz423 closed 2 months ago
This gets fixed with https://github.com/capstone-engine/capstone/pull/2469
Unfortunately, implicitly enabling details for only CS_OPT_DETAIL_REAL
doesn't work. Because we could not disable them afterwards.
because CS_OPT_OFF = 0
, CS_OPT_DETAIL_REAL | CS_OPT_OFF == CS_OPT_DETAIL_REAL
.
Refactoring options is one of the many things on the list though.
Work environment
Expected behavior
According to cs_v6_release_guide, I just set
cs_option(handle, CS_OPT_DETAIL, CS_OPT_DETAIL_REAL);
, and I found the details is part invalid.Changing code to
cs_option(handle, CS_OPT_DETAIL, (CS_OPT_ON | CS_OPT_DETAIL_REAL));
, it works.I think it's better to make CS_OPT_DETAIL_REAL implicitly turn on the detials? or maybe the doc need to update, and don't generate groups and condition info and condition when detail turned off.
Actual behavior
console print
ERROR: Too many groups defined in instruction mapping.
and groups info pile up while no other details.Steps to reproduce the behavior
Command: