* Do not export drx_get and drg_set

* Do not build/use r_th
This commit is contained in:
pancake 2011-04-04 14:39:42 +02:00
parent 075b495a5c
commit 3b490556f5
4 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,7 @@
/* radare - LGPL - Copyright 2009-2011 pancake<nopcode.org> */
#include <r_core.h>
#include <r_th.h>
//#include <r_th.h>
#include <r_io.h>
#include <stdio.h>
#include <getopt.h>
@ -70,8 +70,10 @@ static int rabin_delegate(RThread *th) {
#endif
int main(int argc, char **argv) {
/*
RThreadLock *lock = NULL;
RThread *rabin_th = NULL;
*/
RCoreFile *fh = NULL;
//int threaded = R_FALSE;
int has_project = R_FALSE;
@ -278,10 +280,10 @@ int main(int argc, char **argv) {
do {
if (r_core_prompt (&r, R_FALSE)<1)
break;
if (lock) r_th_lock_enter (lock);
// if (lock) r_th_lock_enter (lock);
if ((ret = r_core_prompt_exec (&r))==-1)
eprintf ("Invalid command\n");
if (lock) r_th_lock_leave (lock);
/* if (lock) r_th_lock_leave (lock);
if (rabin_th && !r_th_wait_async (rabin_th)) {
eprintf ("rabin thread end \n");
r_th_free (rabin_th);
@ -289,6 +291,7 @@ int main(int argc, char **argv) {
lock = NULL;
rabin_th = NULL;
}
*/
} while (ret != R_CORE_CMD_EXIT);
if (debug) {

2
configure vendored
View File

@ -393,7 +393,7 @@ for A in ${ENVWORDS} ; do
SEDFLAGS="${SEDFLAGS}s,@${A}@,${VAR},g;"
done
SEDFLAGS="${SEDFLAGS}'"
for A in ./config-user.mk libr/include/r_userconf.h pkgcfg/r_io.pc pkgcfg/r_asm.pc pkgcfg/r_bin.pc pkgcfg/r_anal.pc pkgcfg/r_hash.pc pkgcfg/r_cons.pc pkgcfg/r_diff.pc pkgcfg/r_core.pc pkgcfg/r_lang.pc pkgcfg/r_socket.pc pkgcfg/r_debug.pc pkgcfg/r_reg.pc pkgcfg/r_cmd.pc pkgcfg/r_config.pc pkgcfg/r_flags.pc pkgcfg/r_line.pc pkgcfg/r_syscall.pc pkgcfg/r_sign.pc pkgcfg/r_util.pc pkgcfg/r_search.pc pkgcfg/r_th.pc pkgcfg/r_bp.pc pkgcfg/r_db.pc pkgcfg/r_lib.pc pkgcfg/r_parse.pc pkgcfg/r_print.pc pkgcfg/r_fs.pc ; do # SUBDIRS
for A in ./config-user.mk libr/include/r_userconf.h pkgcfg/r_io.pc pkgcfg/r_asm.pc pkgcfg/r_bin.pc pkgcfg/r_anal.pc pkgcfg/r_hash.pc pkgcfg/r_cons.pc pkgcfg/r_diff.pc pkgcfg/r_core.pc pkgcfg/r_lang.pc pkgcfg/r_socket.pc pkgcfg/r_debug.pc pkgcfg/r_reg.pc pkgcfg/r_cmd.pc pkgcfg/r_config.pc pkgcfg/r_flags.pc pkgcfg/r_line.pc pkgcfg/r_syscall.pc pkgcfg/r_sign.pc pkgcfg/r_util.pc pkgcfg/r_search.pc pkgcfg/r_bp.pc pkgcfg/r_db.pc pkgcfg/r_lib.pc pkgcfg/r_parse.pc pkgcfg/r_print.pc pkgcfg/r_fs.pc ; do # SUBDIRS
if [ -f "${VPATH}/${A}.acr" ]; then
SD_TARGET=${A}
else

View File

@ -8,7 +8,7 @@ PWD=`pwd`
# Libraries
LIBLIST=util socket cons line lib io lang flags bin hash config syscall cmd
LIBLIST+=reg asm diff anal print parse search bp sign th db crypto debug fs core
LIBLIST+=reg asm diff anal print parse search bp sign db crypto debug fs core
# sysproxy ... common wat du?
all: libs

View File

@ -1481,12 +1481,12 @@ static int r_debug_native_init(RDebug *dbg) {
}
#if __i386__ || __x86_64__
int drx_add(RDebug *dbg, ut64 addr, int rwx) {
static int drx_add(RDebug *dbg, ut64 addr, int rwx) {
// TODO
return R_FALSE;
}
int drx_del(RDebug *dbg, ut64 addr, int rwx) {
static int drx_del(RDebug *dbg, ut64 addr, int rwx) {
// TODO
return R_FALSE;
}