mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-26 22:50:48 +00:00
Fix segfault in dL and use SPDX namings on all debug plugins ##doc
This commit is contained in:
parent
9647c380d5
commit
0a868ff59f
@ -1,6 +1,5 @@
|
||||
/* radare - LGPL - Copyright 2011-2022 - pancake */
|
||||
/* radare - LGPL - Copyright 2011-2024 - pancake */
|
||||
|
||||
#include <r_asm.h>
|
||||
#include <r_debug.h>
|
||||
#undef R_API
|
||||
#define R_API static inline
|
||||
@ -232,7 +231,7 @@ RDebugPlugin r_debug_plugin_bf = {
|
||||
.name = "bf",
|
||||
.author = "pancake",
|
||||
.desc = "BF debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
.arch = "bf",
|
||||
.bits = R_SYS_BITS_32 | R_SYS_BITS_64,
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* debugbochs - LGPL - Copyright 2016-2023 - SkUaTeR */
|
||||
/* debugbochs - LGPL - Copyright 2016-2024 - SkUaTeR */
|
||||
|
||||
#include <r_asm.h>
|
||||
#include <r_debug.h>
|
||||
#include <libbochs.h>
|
||||
|
||||
@ -609,7 +608,7 @@ RDebugPlugin r_debug_plugin_bochs = {
|
||||
.name = "bochs",
|
||||
.author = "SkUaTeR",
|
||||
.desc = "bochs debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
.arch = "x86",
|
||||
.bits = R_SYS_BITS_16 | R_SYS_BITS_32 | R_SYS_BITS_64,
|
||||
|
@ -1,18 +1,7 @@
|
||||
/* radare - LGPL - Copyright 2013-2023 pancake */
|
||||
/* radare - LGPL - Copyright 2013-2024 pancake */
|
||||
|
||||
#include <r_asm.h>
|
||||
#include <r_debug.h>
|
||||
|
||||
#if 0
|
||||
static bool is_io_esil(RDebug *dbg) {
|
||||
RIODesc *d = dbg->iob.io->desc;
|
||||
if (d && d->plugin && d->plugin->name)
|
||||
if (!strcmp ("esil", d->plugin->name))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
static bool __esil_step_over(RDebug *dbg) {
|
||||
R_LOG_TODO ("ESIL STEP OVER");
|
||||
return true;
|
||||
@ -140,7 +129,7 @@ RDebugPlugin r_debug_plugin_esil = {
|
||||
.name = "esil",
|
||||
.author = "pancake",
|
||||
.desc = "esil debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
.arch = "any", // TODO: exception!
|
||||
.bits = R_SYS_BITS_32 | R_SYS_BITS_64,
|
||||
|
@ -235,7 +235,7 @@ static RList* r_debug_evm_frames(RDebug *dbg, ut64 at) {
|
||||
RDebugPlugin r_debug_plugin_evm = {
|
||||
.meta = {
|
||||
.name = "evm",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
.author = "montekki",
|
||||
.desc = "evm debugger backend",
|
||||
},
|
||||
|
@ -676,7 +676,7 @@ RDebugPlugin r_debug_plugin_gdb = {
|
||||
.name = "gdb",
|
||||
.author = "pancake, defragger",
|
||||
.desc = "gdb debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
/* TODO: Add support for more architectures here */
|
||||
.arch = "x86,arm,sh,mips,avr,lm32,v850,ba2",
|
||||
|
@ -1654,7 +1654,7 @@ RDebugPlugin r_debug_plugin_native = {
|
||||
.meta = {
|
||||
.name = "native",
|
||||
.author = "pancake",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
.desc = "native debug plugin",
|
||||
},
|
||||
#if __i386__
|
||||
|
@ -1,6 +1,5 @@
|
||||
/* radare - LGPL - Copyright 2009-2022 - pancake, defragger, madprogrammer */
|
||||
/* radare - LGPL - Copyright 2009-2024 - pancake, defragger, madprogrammer */
|
||||
|
||||
#include <r_asm.h>
|
||||
#include <r_debug.h>
|
||||
#include <libqnxr.h>
|
||||
|
||||
@ -398,7 +397,7 @@ RDebugPlugin r_debug_plugin_qnx = {
|
||||
.name = "qnx",
|
||||
.author = "pancake, defragger, madprogrammer",
|
||||
.desc = "qnx debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
.arch = "x86,arm",
|
||||
.bits = R_SYS_BITS_32,
|
||||
|
@ -1,7 +1,5 @@
|
||||
/* radare - LGPL - Copyright 2011-2022 - pancake */
|
||||
/* radare - LGPL - Copyright 2011-2024 - pancake */
|
||||
|
||||
#include <r_asm.h>
|
||||
#include <r_cons.h>
|
||||
#include <r_debug.h>
|
||||
|
||||
static bool __rap_step(RDebug *dbg) {
|
||||
@ -70,7 +68,7 @@ RDebugPlugin r_debug_plugin_rap = {
|
||||
.name = "rap",
|
||||
.author = "pancake",
|
||||
.desc = "rap debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
.arch = "any",
|
||||
.bits = R_SYS_BITS_32,
|
||||
|
@ -609,7 +609,7 @@ RList *windbg_pids(RDebug *dbg, int pid) {
|
||||
RDebugPlugin r_debug_plugin_windbg = {
|
||||
.meta = {
|
||||
.name = "windbg",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
.author = "pancake",
|
||||
.desc = "comunicate with a windbg",
|
||||
},
|
||||
|
@ -330,7 +330,7 @@ RDebugPlugin r_debug_plugin_winkd = {
|
||||
.name = "winkd",
|
||||
.author = "The Lemon Man",
|
||||
.desc = "winkd debug plugin",
|
||||
.license = "LGPL3",
|
||||
.license = "LGPL-3.0-only",
|
||||
},
|
||||
.arch = "x86",
|
||||
.bits = R_SYS_BITS_32 | R_SYS_BITS_64,
|
||||
|
@ -72,7 +72,7 @@ R_API bool r_debug_use(RDebug *dbg, const char *str) {
|
||||
}
|
||||
free (p);
|
||||
} else {
|
||||
R_LOG_ERROR ("Cannot retrieve reg profile from debug plugin (%s)", plugin->meta.name); //dbg->current->plugin.meta.name);
|
||||
R_LOG_ERROR ("Cannot retrieve reg profile from debug plugin (%s)", plugin->meta.name);
|
||||
}
|
||||
}
|
||||
return dbg->current;
|
||||
@ -80,10 +80,7 @@ R_API bool r_debug_use(RDebug *dbg, const char *str) {
|
||||
|
||||
R_API bool r_debug_plugin_list(RDebug *dbg, int mode) {
|
||||
R_RETURN_VAL_IF_FAIL (dbg, false);
|
||||
char spaces2[16];
|
||||
char spaces[16];
|
||||
memset (spaces, ' ', 15);
|
||||
spaces[15] = 0;
|
||||
PJ *pj = NULL;
|
||||
if (mode == 'j') {
|
||||
pj = dbg->pj;
|
||||
@ -99,9 +96,6 @@ R_API bool r_debug_plugin_list(RDebug *dbg, int mode) {
|
||||
int sp = 8 - strlen (meta.name);
|
||||
memset (spaces, ' ', sp);
|
||||
spaces[sp] = 0;
|
||||
int sp2 = 6 - strlen (meta.license);
|
||||
memset (spaces2, ' ', sp2);
|
||||
spaces2[sp2] = 0;
|
||||
if (mode == 'q') {
|
||||
dbg->cb_printf ("%s\n", meta.name);
|
||||
} else if (mode == 'j') {
|
||||
@ -115,11 +109,9 @@ R_API bool r_debug_plugin_list(RDebug *dbg, int mode) {
|
||||
}
|
||||
pj_end (pj);
|
||||
} else {
|
||||
dbg->cb_printf ("%s %s %s%s %s%s\n",
|
||||
dbg->cb_printf ("%s %s %s%s\n",
|
||||
(ds == dbg->current)? "o": "-",
|
||||
meta.name,
|
||||
spaces, meta.license,
|
||||
spaces2, meta.desc);
|
||||
meta.name, spaces, meta.desc);
|
||||
}
|
||||
spaces[sp] = ' ';
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ typedef enum r_plugin_status_t {
|
||||
R_PLUGIN_STATUS_INCOMPLETE = 1,
|
||||
R_PLUGIN_STATUS_BASIC = 2,
|
||||
R_PLUGIN_STATUS_OK = 3,
|
||||
R_PLUGIN_STATUS_GOOD= 4,
|
||||
R_PLUGIN_STATUS_GOOD = 4,
|
||||
R_PLUGIN_STATUS_COMPLETE = 5,
|
||||
} RPluginStatus;
|
||||
|
||||
|
@ -2,17 +2,17 @@ NAME=dbg.dL
|
||||
FILE=bins/elf/ls-focal
|
||||
CMDS=dL
|
||||
EXPECT=<<EOF
|
||||
- bf LGPL3 BF debug plugin
|
||||
- bochs LGPL3 bochs debug plugin
|
||||
- esil LGPL3 esil debug plugin
|
||||
- evm LGPL3 evm debugger backend
|
||||
- gdb LGPL3 gdb debug plugin
|
||||
- io MIT io debug plugin
|
||||
o native LGPL3 native debug plugin
|
||||
- null MIT null debug plugin (does nothing)
|
||||
- qnx LGPL3 qnx debug plugin
|
||||
- rap LGPL3 rap debug plugin
|
||||
- rv32ima MIT experimental riscv32ima emulator
|
||||
- winkd LGPL3 winkd debug plugin
|
||||
- bf BF debug plugin
|
||||
- bochs bochs debug plugin
|
||||
- esil esil debug plugin
|
||||
- evm evm debugger backend
|
||||
- gdb gdb debug plugin
|
||||
- io io debug plugin
|
||||
o native native debug plugin
|
||||
- null null debug plugin (does nothing)
|
||||
- qnx qnx debug plugin
|
||||
- rap rap debug plugin
|
||||
- rv32ima experimental riscv32ima emulator
|
||||
- winkd winkd debug plugin
|
||||
EOF
|
||||
RUN
|
||||
|
Loading…
Reference in New Issue
Block a user