find | mv s/-/_/g (#19302)

This commit is contained in:
pancake 2021-10-24 23:46:02 +02:00 committed by GitHub
parent d3cd324a08
commit 9046aa2ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 20 additions and 18 deletions

View File

@ -1,21 +1,23 @@
/* radare - LGPL - Copyright 2009-2018 - pancake */
/* radare - LGPL - Copyright 2009-2021 - pancake */
#include <r_anal.h>
#include "bt/generic-x86.c"
#include "bt/generic-x64.c"
#include "bt/fuzzy-all.c"
#include "bt/generic_x86.c"
#include "bt/generic_x64.c"
#include "bt/fuzzy_all.c"
typedef RList* (*RDebugFrameCallback)(RDebug *dbg, ut64 at);
static void prepend_current_pc (RDebug *dbg, RList *list) {
RDebugFrame *frame;
const char *pcname;
if (list) {
pcname = r_reg_get_name (dbg->reg, R_REG_NAME_PC);
if (pcname) {
ut64 addr = r_reg_getv (dbg->reg, pcname);
frame = R_NEW0 (RDebugFrame);
static void prepend_current_pc(RDebug *dbg, RList *list) {
r_return_if_fail (dbg);
if (!list) {
return;
}
const char *pcname = r_reg_get_name (dbg->reg, R_REG_NAME_PC);
if (pcname) {
ut64 addr = r_reg_getv (dbg->reg, pcname);
RDebugFrame *frame = R_NEW0 (RDebugFrame);
if (frame) {
frame->addr = addr;
frame->size = 0;
r_list_prepend (list, frame);

View File

@ -1,7 +1,7 @@
include ../config.mk
NAME=r_search
OBJS=search.o bytepat.o strings.o aes-find.o privkey-find.o
OBJS=search.o bytepat.o strings.o aes_find.o privkey_find.o
OBJS+=regexp.o keyword.o uds.o
# OBJ+=rsakey.o
R2DEPS=r_util

View File

@ -1,10 +1,10 @@
r_search_sources = [
'aes-find.c',
'aes_find.c',
'bytepat.c',
'keyword.c',
'regexp.c',
'uds.c',
'privkey-find.c',
'privkey_find.c',
'search.c',
'strings.c'
]

View File

@ -24,10 +24,10 @@ OBJS+=d/ebcdic37.o
endif
ifeq (${HAVE_LIB_GMP},1)
OBJS+=big-gmp.o
OBJS+=big_gmp.o
else
ifeq (${HAVE_LIB_SSL},1)
OBJS+=big-ssl.o
OBJS+=big_ssl.o
else
OBJS+=big.o
endif

View File

@ -103,7 +103,7 @@ endif
if use_sys_openssl
r_util_deps += [sys_openssl]
r_util_sources += ['big-ssl.c']
r_util_sources += ['big_ssl.c']
else
r_util_sources += ['big.c']
endif