forked from capstone-engine/capstone
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new option CS_OPT_MEM for cs_option(): this enable user-defined d…
…ynamic memory management. idea proposed by Pancake
- Loading branch information
Showing
26 changed files
with
86 additions
and
45 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
/* By Dang Hoang Vu <[email protected]> 2013 */ | ||
|
||
#include "../../cs_priv.h" | ||
#include "../../utils.h" | ||
#include "../../MCRegisterInfo.h" | ||
#include "AArch64Disassembler.h" | ||
#include "AArch64InstPrinter.h" | ||
|
@@ -10,7 +11,7 @@ | |
|
||
static cs_err init(cs_struct *ud) | ||
{ | ||
MCRegisterInfo *mri = malloc(sizeof(*mri)); | ||
MCRegisterInfo *mri = my_malloc(sizeof(*mri)); | ||
|
||
AArch64_init(mri); | ||
ud->printer = AArch64_printInst; | ||
|
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
/* By Dang Hoang Vu <[email protected]> 2013 */ | ||
|
||
#include "../../cs_priv.h" | ||
#include "../../utils.h" | ||
#include "../../MCRegisterInfo.h" | ||
#include "MipsDisassembler.h" | ||
#include "MipsInstPrinter.h" | ||
|
@@ -10,7 +11,7 @@ | |
|
||
static cs_err init(cs_struct *ud) | ||
{ | ||
MCRegisterInfo *mri = malloc(sizeof(*mri)); | ||
MCRegisterInfo *mri = my_malloc(sizeof(*mri)); | ||
|
||
Mips_init(mri); | ||
ud->printer = Mips_printInst; | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
/* By Nguyen Anh Quynh <[email protected]>, 2013 */ | ||
|
||
#include "../../cs_priv.h" | ||
#include "../../utils.h" | ||
#include "../../MCRegisterInfo.h" | ||
#include "PPCDisassembler.h" | ||
#include "PPCInstPrinter.h" | ||
|
@@ -10,7 +11,7 @@ | |
|
||
static cs_err init(cs_struct *ud) | ||
{ | ||
MCRegisterInfo *mri = malloc(sizeof(*mri)); | ||
MCRegisterInfo *mri = my_malloc(sizeof(*mri)); | ||
|
||
PPC_init(mri); | ||
ud->printer = PPC_printInst; | ||
|
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
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
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
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
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
Oops, something went wrong.