Add parse.pickle plugin ##arch
Some checks are pending
build / linux-wasi (push) Waiting to run
build / linux-wasi-api (push) Waiting to run
build / linux-csnext (push) Waiting to run
build / linux-ssl-crypto (push) Waiting to run
build / tarball (push) Waiting to run
build / linux-static (push) Waiting to run
build / linux-acr-rpm-64 (push) Waiting to run
build / linux-acr-deb (amd64) (push) Waiting to run
build / linux-acr-deb (arm64, aarch64-linux-gnu) (push) Waiting to run
build / linux-acr-deb (i386, multilib) (push) Waiting to run
build / macos-acr (arm64, 13) (push) Waiting to run
build / macos-acr (x86_64, 12) (push) Waiting to run
build / ios (cydia32) (push) Waiting to run
build / ios (true, cydia) (push) Waiting to run
build / android-acr (16, arm) (push) Waiting to run
build / android-acr (aarch64) (push) Waiting to run
build / android-meson (x86_64) (push) Waiting to run
build / w32-meson (push) Waiting to run
build / w64-static-2022 (push) Waiting to run
build / w64-static (push) Waiting to run
build / w64-meson (push) Waiting to run
build / check_abi_compatibility (push) Blocked by required conditions
build / check_release (push) Blocked by required conditions
build / release (push) Blocked by required conditions
CI / linux-acr-oldlibsbug (push) Waiting to run
CI / linux-nocs (push) Waiting to run
CI / linux-acr-gperf (push) Waiting to run
CI / linux-sys-capstone (push) Waiting to run
CI / linux-acr-resymlink (push) Waiting to run
CI / linux-test (push) Waiting to run
CI / linux-static-meson (push) Waiting to run
CI / macos-test (push) Waiting to run
CI / linux-rpath (push) Waiting to run
CI / macos-rpath (push) Waiting to run
CI / linux-meson-spaces (push) Waiting to run
CI / linux-tinyasan-fuzz (push) Waiting to run
CI / linux-asan-fuzz (push) Waiting to run
CI / w64-make (push) Waiting to run
CI / w32-mingw (push) Waiting to run
CI / w64-mingw (push) Waiting to run
Code scanning - action / CodeQL-Build (push) Waiting to run
Coverity Scan / latest (push) Waiting to run
tcc / ubuntu-tcc-newabi (push) Waiting to run
tcc / ubuntu-tcc-test (push) Waiting to run
tcc / ubuntu-tcc-nodbg (push) Waiting to run
tcc / r2pm-tcc (push) Waiting to run
tcc / ubuntu-tcc-syslibs (push) Waiting to run

This commit is contained in:
pancake 2024-11-18 14:20:27 +01:00 committed by GitHub
parent e59c8b9386
commit ab6b7d30f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 44 additions and 0 deletions

View File

@ -303,6 +303,7 @@ parse.v850_pseudo
parse.wasm_pseudo
parse.x86_pseudo
parse.z80_pseudo
parse.pickle_pseudo
parse.null_pseudo
"
SHARED="io.shm"

View File

@ -0,0 +1,27 @@
/* radare - LGPL - Copyright 2024 - pancake */
#include <r_lib.h>
#include <r_flag.h>
#include <r_anal.h>
#include <r_parse.h>
static int parse(RParse *p, const char *data, char *str) {
// Intentationally left blank
// because it's not yet implemented
return false;
}
RParsePlugin r_parse_plugin_pickle_pseudo = {
.name = "pickle.pseudo",
.desc = "Pickle pseudo syntax",
.parse = parse, // parse actually converts the string into asm.pseudo
};
#ifndef R2_PLUGIN_INCORE
R_API RLibStruct radare_plugin = {
.type = R_LIB_TYPE_PARSE,
.data = &r_parse_plugin_pickle_pseudo,
.version = R2_VERSION
};
#endif

View File

@ -0,0 +1,14 @@
OBJ_PICKLE_PSEUDO+=$(LIBR)/arch/p/pickle/pseudo.o
TARGET_PICKLE_PSEUDO=parse_pickle_pseudo.${EXT_SO}
ALL_TARGETS+=${TARGET_PICKLE_PSEUDO}
STATIC_OBJ+=${OBJ_PICKLE_PSEUDO}
${TARGET_PICKLE_PSEUDO}: ${OBJ_PICKLE_PSEUDO}
ifeq ($(CC),cccl)
${CC} $(call libname,parse_pickle_pseudo) -L../../util -llibr_util \
$(LDFLAGS_SHARED) ${CFLAGS} -o ${TARGET_PICKLE_PSEUDO} ${OBJ_PICKLE_PSEUDO}
else
${CC} $(call libname,parse_pickle_pseudo) -L../../util -lr_util \
$(LDFLAGS_SHARED) ${CFLAGS} -o ${TARGET_PICKLE_PSEUDO} ${OBJ_PICKLE_PSEUDO}
endif

View File

@ -98,6 +98,7 @@ extern RParsePlugin r_parse_plugin_stm8_pseudo;
extern RParsePlugin r_parse_plugin_evm_pseudo;
extern RParsePlugin r_parse_plugin_null_pseudo;
extern RParsePlugin r_parse_plugin_gb_pseudo;
extern RParsePlugin r_parse_plugin_pickle_pseudo;
extern RParsePlugin r_parse_plugin_tricore_pseudo;
#endif

View File

@ -16,6 +16,7 @@ gb.pseudo
m68k.pseudo
mips.pseudo
null.pseudo
pickle.pseudo
ppc.pseudo
riscv.pseudo
sh.pseudo