Add the missing bp.null plugin ##debug

* Required for consistency for thin builds
This commit is contained in:
pancake 2023-11-15 18:41:23 +01:00 committed by pancake
parent e9cf9ea106
commit 4d71c4521f
20 changed files with 59 additions and 11 deletions

View File

@ -43,6 +43,7 @@ bin_xtr.xtr_fatmach0
bin_xtr.xtr_dyldcache
bin_xtr.xtr_sep64
bp.arm
bp.null
bp.bf
bp.x86
bp.mips

View File

@ -1,6 +1,7 @@
STATIC="
arch.null
arch.i4004
bp.null
io.default
bin.any
bin.elf

View File

@ -148,6 +148,7 @@ bin_xtr.xtr_pemixed
bin_xtr.xtr_sep64
bin_xtr.xtr_xalz
bp.arm
bp.null
bp.bf
bp.mips
bp.ppc

View File

@ -154,6 +154,7 @@ bin_xtr.xtr_fatmach0
bin_xtr.xtr_pemixed
bin_xtr.xtr_sep64
bin_xtr.xtr_xalz
bp.null
bp.arm
bp.bf
bp.mips

View File

@ -41,6 +41,7 @@ bin_xtr.dyldcache
bin_xtr.xtr_fatmach0
bin_xtr.xtr_sep64
bp.arm
bp.null
bp.bf
bp.mips
bp.ppc

View File

@ -37,6 +37,7 @@ bin_xtr.xtr_fatmach0
bin_xtr.xtr_dyldcache
bin_xtr.xtr_sep64
bp.arm
bp.null
bp.bf
bp.x86
bp.mips

View File

@ -38,6 +38,7 @@ bin_xtr.xtr_fatmach0
bin_xtr.xtr_dyldcache
bin_xtr.xtr_sep64
bp.arm
bp.null
bp.bf
bp.x86
bp.mips

View File

@ -134,6 +134,7 @@ bin.pyc
bin.wad
bp.arm
bp.riscv
bp.null
bp.bf
bp.mips
bp.ppc

View File

@ -120,6 +120,7 @@ bin.psxexe
bin.pyc
bin.wad
bp.arm
bp.null
bp.bf
bp.riscv
bp.mips

View File

@ -59,6 +59,7 @@ bin_xtr.xtr_dyldcache
bin_xtr.xtr_fatmach0
bin_xtr.xtr_sep64
bp.arm
bp.null
bp.bf
bp.mips
bp.ppc

View File

@ -101,6 +101,7 @@ bin_ldr.ldr_linux
bin.zimg
bin.psxexe
bp.arm
bp.null
bp.bf
bp.mips
bp.ppc

View File

@ -87,6 +87,7 @@ bin.zimg
bin.psxexe
bp.arm
bp.riscv
bp.null
bp.bf
bp.mips
bp.x86

View File

@ -112,6 +112,7 @@ bin.pyc
bin.wad
bp.arm
bp.riscv
bp.null
bp.bf
bp.mips
bp.ppc

View File

@ -36,6 +36,7 @@ bin_xtr.xtr_fatmach0
bin_xtr.xtr_dyldcache
bin_xtr.xtr_sep64
bp.arm
bp.null
bp.bf
bp.x86
bp.mips

View File

@ -8,6 +8,7 @@ esil.dummy
bin.bios
bin.elf
bin.elf64
bp.null
bp.x86
core.agD
core.a2f

View File

@ -43,6 +43,7 @@ bin_xtr.xtr_sep64
core.agD
core.a2f
core.sixref
bp.null
bp.arm
bp.riscv
cmd.dummy

View File

@ -8,7 +8,7 @@ CFLAGS+=-DR2__UNIX__
all: ${ALL_TARGETS}
ALL_TARGETS=
ARCHS=x86.mk arm.mk
ARCHS=bp.mk x86.mk arm.mk
include $(ARCHS)
clean:

View File

@ -1,25 +1,23 @@
/* radare - LGPL - Copyright 2011-2023 - pancake */
/* radare - LGPL - Copyright 2023 - pancake */
#include <r_bp.h>
#include <r_lib.h>
static RBreakpointArch r_bp_plugin_bf_bps[] = {
{ 0, 1, 0, (const ut8*)"\xff" },
{ 0, 1, 0, (const ut8*)"\x00" },
static RBreakpointArch r_bp_plugin_null_bps[] = {
{ 0, 0, 0, NULL },
};
RBreakpointPlugin r_bp_plugin_bf = {
.name = "bf",
.arch = "bf",
.nbps = 2,
.bps = r_bp_plugin_bf_bps,
RBreakpointPlugin r_bp_plugin_null = {
.name = "null",
.arch = "null",
.nbps = 0,
.bps = r_bp_plugin_null_bps,
};
#ifndef R2_PLUGIN_INCORE
R_API RLibStruct radare_plugin = {
.type = R_LIB_TYPE_BP,
.data = &r_bp_plugin_bf,
.data = &r_bp_plugin_null,
.version = R2_VERSION
};
#endif

25
libr/bp/p/bp_null.c Normal file
View File

@ -0,0 +1,25 @@
/* radare - LGPL - Copyright 2011-2023 - pancake */
#include <r_bp.h>
#include <r_lib.h>
static RBreakpointArch r_bp_plugin_bf_bps[] = {
{ 0, 1, 0, (const ut8*)"\xff" },
{ 0, 1, 0, (const ut8*)"\x00" },
{ 0, 0, 0, NULL },
};
RBreakpointPlugin r_bp_plugin_bf = {
.name = "bf",
.arch = "bf",
.nbps = 2,
.bps = r_bp_plugin_bf_bps,
};
#ifndef R2_PLUGIN_INCORE
R_API RLibStruct radare_plugin = {
.type = R_LIB_TYPE_BP,
.data = &r_bp_plugin_bf,
.version = R2_VERSION
};
#endif

9
libr/bp/p/null.mk Normal file
View File

@ -0,0 +1,9 @@
OBJ_NULL=bp_null.o
STATIC_OBJ+=${OBJ_NULL}
TARGET_NULL=bp_null.${EXT_SO}
ALL_TARGETS+=${TARGET_NULL}
${TARGET_NULL}: ${OBJ_NULL}
${CC_LIB} $(call libname,bp_null) ${CFLAGS} -o ${TARGET_NULL} ${OBJ_NULL}