From fcf67d5cd28931483286dbeb49149b54bcc0ce19 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 20 Sep 2011 09:44:17 +0200 Subject: [PATCH] * Fix dup anal issue * Added sys/farm/README --- TODO | 8 ++++---- libr/anal/fcn.c | 2 ++ libr/core/anal.c | 2 +- libr/egg/emit_trace.c | 2 +- sys/farm/README | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 sys/farm/README diff --git a/TODO b/TODO index c20fe6ee9c..05275532f0 100644 --- a/TODO +++ b/TODO @@ -5,6 +5,10 @@ ====[[ 0.9 ]]==== +* r_anal_find_fcn() is O(N). should be O(1) + - var r = RHashTable() + var l = r.add ("0x8048000-0x8049000", new RList ()) + l.append (ReferenceTo (fcn) * Optimize /m - search only using given file, not loading default library - do not read each block byte per byte @@ -36,10 +40,6 @@ BOTTLENECKS: ============ -* r_anal_find_fcn() is O(N). should be O(1) - - var r = RHashTable() - var l = r.add ("0x8048000-0x8049000", new RList ()) - l.append (ReferenceTo (fcn) * rabin2 -z /dev/sda1 TAKES TOO LONG. opening r2 /tmp/fs is SLOW as shit. * Add -f/-t in rahash2 to define ranges - Add support for large files in rahash2 diff --git a/libr/anal/fcn.c b/libr/anal/fcn.c index e1bd16b7eb..54ab8c7441 100644 --- a/libr/anal/fcn.c +++ b/libr/anal/fcn.c @@ -120,6 +120,8 @@ R_API int r_anal_fcn(RAnal *anal, RAnalFcn *fcn, ut64 addr, ut8 *buf, ut64 len, R_API int r_anal_fcn_insert(RAnal *anal, RAnalFcn *fcn) { #if USE_NEW_FCN_STORE r_listrange_add (anal->fcnstore, fcn); + // HUH? store it here .. for backweird compatibility + r_list_append (anal->fcns, fcn); #else r_list_append (anal->fcns, fcn); #endif diff --git a/libr/core/anal.c b/libr/core/anal.c index edd50db335..ddca92e317 100644 --- a/libr/core/anal.c +++ b/libr/core/anal.c @@ -233,7 +233,7 @@ R_API int r_core_anal_fcn(RCore *core, ut64 at, ut64 from, int reftype, int dept } // XXX: this looks weird r_anal_fcn_insert (core->anal, fcn); - r_list_append (core->anal->fcns, fcn); + //r_list_append (core->anal->fcns, fcn); r_list_foreach (fcn->refs, iter, refi) if (refi->addr != -1) r_core_anal_fcn (core, refi->addr, refi->at, refi->type, depth-1); diff --git a/libr/egg/emit_trace.c b/libr/egg/emit_trace.c index 1c58800d17..1dc336f4df 100644 --- a/libr/egg/emit_trace.c +++ b/libr/egg/emit_trace.c @@ -1,4 +1,4 @@ -/* pancake // nopcode.org 2010-2011 -- arm emiter */ +/* pancake // nopcode.org 2011 -- trace emiter */ #include #define attsyntax 0 diff --git a/sys/farm/README b/sys/farm/README new file mode 100644 index 0000000000..6d1504e280 --- /dev/null +++ b/sys/farm/README @@ -0,0 +1,35 @@ +The sys farm +============ + +[ config ] + - project name + - script list + +[ daemon ] + farm/r2/linux + farm/r2/osx + farm/r2/maemo + farm/r2/mingw32 + farm/r2/mingw64 + - find updates in src + +[ build ] + - execute all build targets to generate output results + project/date-revision-buildtype + - out/r2/20110923-3948-linux.log + - dist/r2/20110923-3948-linux/radare2-r3948.tar.gz + +[ dist ] + - generate distribution tarball, debian package or zip + +[ push ] + - push -f to remove remote data? + - use rsync to upload build results + +[ web ] - php? + - parse pushed results + - allow download of dist + - useful for snapshots + - grep for warnings + - count errors + - view build logs