forked from capstone-engine/capstone
-
Notifications
You must be signed in to change notification settings - Fork 5
V4 #25
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
Open
junghee
wants to merge
27
commits into
GrammaTech:v4
Choose a base branch
from
junghee:v4
base: v4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
V4 #25
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apple Clang 11.0.0 error: ``` capstone/include/capstone/m68k.h:160:3: error: anonymous types declared in an anonymous union are an extension [-Werror,-Wnested-anon-types] struct { ///< register pair in one operand ^ ```
Co-authored-by: Romain Lesteven <[email protected]>
* Add __repr__ for capstone.CsInsn Currently, a `print(instruction)` displays a not very useful string like `<capstone.CsInsn object at 0x7f3759d88128>`. This PR enhances adds a `__repr__` magic method to the `capstone.CsInsn` class so it displays as follows: ``` <cs.CsInsn: address=0x5555555545fa, size=1, mnemonic=push, op_str=rbp> ``` * Update __init__.py
$(PYTHON2) and/or $(PYTHON3) might differ from python and/or python3, accordingly. Allow to override these variables by user choice.
…1659) On x86_64-linux gentoo system capstone was installing it's files to 'lib64' libdir, but was referring 'lib' libdir: ``` $ cat /usr/lib64/pkgconfig/capstone.pc ... libdir=${prefix}/lib ... ``` On radare2 built it means injecting -L/usr/lib into a 64-build and pulling in 32-bit libraries. 'ld.lld' is not able to resolve the ambiguity. It happens because @LIBSUFFIX@ is not present in cmake-3.17.3. Let's fix the paths by using @CMAKE_INSTALL_LIBDIR@. This variable is already used in capstone's build system, thus should be safe to rely on. Reported-by: Agostino Sarubbo Bug: https://bugs.gentoo.org/730722 Signed-off-by: Sergei Trofimovich <[email protected]>
instructions could be 2, 4 or 6 bytes so pad accordingly as it was done on the other CISC architecture.
if integer is 32-bit, and numeric literals default to int type, the following applies (from The C Standard, 6.5.7, paragraph 4 [ISO/IEC 9899:2011]): If E1 has a signed type and nonnegative value, and E1 × 2^E2 is representable in the result type, then that is the resulting value; otherwise, the behavior is undefined. which means that the only way to safely shift is unsigned, so use 1U to indicate the shifted bit is unsigned.
Co-authored-by: meme <[email protected]>
Otherwise python setup.py install from bindings/python will fail with SyntaxError: Non-ASCII character '\xe2' in file setup.py on line 223, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
Co-authored-by: Michal Schulz <[email protected]>
…decl-fix M680X - remove unused s_cpu_type (capstone-engine#1695)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Synced with the upstream