Skip to content

Commit 0e58dab

Browse files
authored
Add missing asm plugins for the wasm builds ##wasm
1 parent 3b646d7 commit 0e58dab

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

dist/plugins-cfg/plugins.def.cfg

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,16 @@ lang.v
285285
lang.vala
286286
lang.zig
287287
asm.6502
288-
asm.cosmac
289288
asm.arm
290-
asm.java
291289
asm.att2intel
292290
asm.avr
293291
asm.bpf
294292
asm.chip8
293+
asm.cosmac
295294
asm.dalvik
296295
asm.evm
297296
asm.gb
297+
asm.java
298298
asm.m68k
299299
asm.mips
300300
asm.null

dist/plugins-cfg/plugins.wasi.cfg

+7-2
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,17 @@ io.http
6767
io.tcpslurp
6868
io.null
6969
io.default
70-
asm.null
70+
asm.6502
7171
asm.arm
7272
asm.att2intel
73+
asm.dalvik
74+
asm.mips
75+
asm.null
76+
asm.ppc
77+
asm.riscv
7378
asm.wasm
79+
asm.x86
7480
asm.z80
7581
"
7682
SHARED="
77-
asm.6502
7883
"

libr/io/p/io_gprobe.c

+18
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <r_lib.h>
55
#include <r_util/r_print.h>
66

7+
#if !(__wasi__ || __EMSCRIPTEN__)
8+
79
#define USE_OWNTIMER 1
810
#if USE_OWNTIMER
911
#include "io_gprobe.h"
@@ -1569,6 +1571,22 @@ RIOPlugin r_io_plugin_gprobe = {
15691571
.system = __system,
15701572
};
15711573

1574+
#else
1575+
1576+
#warning io.gprobe not available for this platform
1577+
1578+
RIOPlugin r_io_plugin_gprobe = {
1579+
.meta = {
1580+
.name = "gprobe",
1581+
.author = "Dirk Eibach, Guntermann, Drunck GmbH",
1582+
.desc = "Open gprobe connection (DISABLED)",
1583+
.license = "LGPL-3.0-only",
1584+
},
1585+
.uris = "gprobe://",
1586+
};
1587+
1588+
#endif
1589+
15721590
#ifndef R2_PLUGIN_INCORE
15731591
R_API RLibStruct radare_plugin = {
15741592
.type = R_LIB_TYPE_IO,

0 commit comments

Comments
 (0)