From 587642619bae56682ad0dc9c6f10aa245e31a87b Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 10 Nov 2014 03:55:44 +0100 Subject: [PATCH] Re-enable ranal2 build --- binr/Makefile | 2 +- binr/ranal2/ranal2.c | 3 +++ libr/util/strbuf.c | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/binr/Makefile b/binr/Makefile index 5ac66c7075..2d0ca13eac 100644 --- a/binr/Makefile +++ b/binr/Makefile @@ -10,7 +10,7 @@ PFX=$(call rmdblslash,${DESTDIR}/${PREFIX}) BFX=$(call rmdblslash,${DESTDIR}/${BINDIR}) LFX=$(call rmdblslash,${DESTDIR}/${LIBDIR}) -BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarun2 ragg2 r2agent +BINS=rax2 rasm2 rabin2 rahash2 radiff2 radare2 rafind2 rarun2 ragg2 r2agent ranal2 all: preload @for a in ${BINS} ; do (cd $$a && ${MAKE} all) || exit 1; done diff --git a/binr/ranal2/ranal2.c b/binr/ranal2/ranal2.c index 72be892aaa..70afda9132 100644 --- a/binr/ranal2/ranal2.c +++ b/binr/ranal2/ranal2.c @@ -1,3 +1,5 @@ +/* radare - LGPL - Copyright 2009-2014 - pancake */ + #include #include #include @@ -82,6 +84,7 @@ static int analyze(RAnal *anal, RAnalOp *op, ut64 offset, ut8* buf, int len) { if (op->val != -1LL) printf ("value: 0x%08"PFMT64x"\n", op->val); printf ("stackop: %s\n", stackop); + printf ("esil: %s\n", r_strbuf_get (&op->esil)); printf ("stackptr: %"PFMT64d"\n", op->stackptr); printf ("decode str: %s\n", r_anal_op_to_string (anal, op)); printf ("--\n"); diff --git a/libr/util/strbuf.c b/libr/util/strbuf.c index cdea72076a..6a4387268a 100644 --- a/libr/util/strbuf.c +++ b/libr/util/strbuf.c @@ -94,6 +94,7 @@ R_API int r_strbuf_appendf(RStrBuf *sb, const char *fmt, ...) { return ret; } +// TODO: rename to tostring() R_API char *r_strbuf_get(RStrBuf *sb) { if (sb) { if (sb->ptr)