pancake 8fbe0be140 * Add --without-pic configure flag to build radare2
without PIC code (only static libraries, and link binaries)
  - Fix linking order dependencies
* Fix some missing EXT_EXE
* Add some definitions to make debug_ptrace register work
  on Solaris and *BSD (no windows yet)
  - Some fixes for mips, x86, x86-64, arm and powerpc
* Initial import of rsc2
  - Added intel2att rsc2 sample script
2010-01-21 21:22:30 +01:00
..
2009-07-08 13:49:55 +02:00
2009-07-08 13:49:55 +02:00

r_meta
======

** Should we store traces here??..or do we have to use r_trace
** xrefs stuff should be delegated to the flags?
  - we can generate xrefs metadata from flags analysis
  - we can use r_meta as 'static storage' and flags as playground.
** data_* api should be refactored to use less functions with more
   flexible arguments.
** We can store multiple linked lists depending on type of data, to
   reduce the search space.

struct r_meta_t * meta = r_meta_new();

/* get list of xrefs to this addr */
r_meta_xrefs_get(meta, 0x8040400);
r_meta_xrefs_add(meta, 0x8040400, 0x8049030);

r_meta_list(meta, RMetaCallback)

r_meta_add(meta, R_META_CODE_XREF, 100, 200);
r_meta_add_s(meta, R_META_COMMENT, 100, "Hello world");
r_meta_add_s(meta, R_META_STRUCT, 100, "xxi");

r_meta_get(meta, R_META_COMMENT, 0x804800);
r_meta_get_range(meta, R_META_COMMENT, 0x804800, 0x8049000);

// TODO: rethink argument order
r_meta_get_closer(meta, 0x0394, R_META_STRING, R_META_GET_FORWARD);