- Add LICENSES directory - Download additional licenses used - Add .reuse directory - Add doc about SPDX/reuse Co-authored-by: Florian Märkl <info@florianmaerkl.de>
34 lines
965 B
C
34 lines
965 B
C
// SPDX-FileCopyrightText: 2014 jn <j.neuschaefer@gmx.net>
|
|
// SPDX-FileCopyrightText: 2014 maijin <maijin21@gmail.com>
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
#include <rz_analysis.h>
|
|
#include <rz_types.h>
|
|
#include <rz_lib.h>
|
|
|
|
static int null_analysis(RzAnalysis *analysis, RzAnalysisOp *op, ut64 addr, const ut8 *data, int len, RzAnalysisOpMask mask) {
|
|
/* This should better follow the disassembler */
|
|
return op->size = 1;
|
|
}
|
|
|
|
static bool null_set_reg_profile(RzAnalysis *analysis) {
|
|
return rz_reg_set_profile_string(analysis->reg, "");
|
|
}
|
|
|
|
RzAnalysisPlugin rz_analysis_plugin_null = {
|
|
.name = "null",
|
|
.desc = "Fallback/Null analysis plugin",
|
|
.arch = "none",
|
|
.license = "LGPL3",
|
|
.bits = 8 | 16 | 32 | 64, /* is this used? */
|
|
.op = &null_analysis,
|
|
.set_reg_profile = &null_set_reg_profile,
|
|
};
|
|
|
|
#ifndef RZ_PLUGIN_INCORE
|
|
RZ_API RzLibStruct rizin_plugin = {
|
|
.type = RZ_LIB_TYPE_ANALYSIS,
|
|
.data = &rz_analysis_plugin_null,
|
|
.version = RZ_VERSION
|
|
};
|
|
#endif
|