Commit Graph

720 Commits

Author SHA1 Message Date
Nibble
8718f7aad9 * Merge 2010-06-14 18:30:31 +02:00
Nibble
68aeb6f92a * Add targets clean & mrproper to binr/Makefile
* Use r_list_free instead of r_list_destroy in r_anal
* Some minor fixups in r_anal
2010-06-14 18:29:52 +02:00
pancake
d3c0819cc7 * Some fixes in make all/clean
* Initial work on RAnalCond
2010-06-14 16:20:54 +02:00
pancake
4bd719546c * Implement RAnalRef as a struct instead of a hacky ut64 pointer
- Support data and code reference specification
* Also handle 'jmp' as code references
2010-06-14 00:57:40 +02:00
pancake
0006bf0564 * Fix segfault and infinite loop in 'dct' command 2010-06-13 12:51:44 +02:00
pancake
79e78ea47d * Fix ffio and io_ptrace return value when read error 2010-06-13 12:40:01 +02:00
pancake
ca8a2a9280 * Fix segfault in malloc:// IO backend
* Catch error in core to avoid future issues
2010-06-13 12:24:07 +02:00
pancake
f0cca138db * Fix 'bx lr' and 'ldr pc,[pc,#]' code analysis for arm
* Added 'ata' command to specify a list of valid traceable adddresses
* some initial work on r_db.. iterators not yet supported
2010-06-13 11:59:17 +02:00
pancake
d27e461811 * Fix linking issues reported by matalaz (Thanks!) 2010-06-06 23:26:11 +02:00
pancake
c9a403cf71 * More work on 'at' command
* RRange ported to r_list (not yet tested)
* Fix r_cmd.vapi RCmdPlugin struct definition
2010-06-04 23:47:35 +02:00
pancake
b7c554b24a * Some linkage fixes for binr/
* Added 'at' command (not yet implemented at all)
  - Some refactoring in r_debug_trace code
  - Remove deprecated r_trace.h
2010-06-04 00:56:44 +02:00
pancake
8a40844199 * List cmd plugins when ':' command is executed
- Added ->desc field in RCmdPlugin
2010-06-03 11:53:42 +02:00
Nibble
629acd799d * r_anal
- Minor fixup in r_anal_bb_free
  - Init aop->mnemonic = NULL in r_anal_aop_new
2010-06-03 11:31:23 +02:00
pancake
fdb0cf4229 * Do not warn in r_lib until R_DEBUG env is defined 2010-06-03 10:57:34 +02:00
pancake
96c7eabd46 * Add -M (get main) in r_bin_pe 2010-06-03 02:23:50 +02:00
pancake
9ceeae1f54 * Added refptr in RAnalOp
- Used only from ARM code analysis
* Implement ELF get_main for ARM ELF's
2010-06-02 23:36:05 +02:00
Nibble
097edd11c6 * Add support for non-splitted graphs
* Add config var anal.split
* Fix segfault in r_anal & r_big
* Fix r_anal split algorithm
* Minor fixup in bb type assignment
* Fix partial graphs generation
2010-06-02 19:17:47 +02:00
Nibble
f1b88d61b5 * Apply Jan's patch for fixing r2rc-tool 2010-06-01 08:54:37 +02:00
Nibble
c63963c598 * Fix binr/Makefile (thanks jan! :) 2010-05-31 19:59:31 +02:00
Nibble
fcc6b8d013 * Add flag -M to rabin2 at radare2 startup and cg
* Add r_asm_mdisassemble_hexstr
* Update r_asm.vapi
2010-05-30 13:00:21 +02:00
Nibble
2f43431e80 * r_bin
- Add r_bin_get_main
  - Implement get_main for elf32 & elf64
  - Rename RBinEntry to RBinAddr
* rabin2
  - Add flag -M to output main offset and va
* bindings
  - Update r_bin.vapi
  - Minor fixup in r_util.vapi
2010-05-30 06:06:25 +02:00
Nibble
6fa84400a6 * r_bin_elf
- New method to resolve the base address
  - Fix bug in bins with bin->ehdr.e_phnum = 0
  - Fix resolution of symbol address in relocatable bins
2010-05-29 17:11:41 +02:00
Nibble
e9e8740a62 * Build
- update pkgconfigs
  - dont run rpathdel on tests
  - build r_crypto
* Bindings
  - Fix vapis (add missings headers r_list.h, r_types_base.h)
2010-05-29 14:04:50 +02:00
pancake
64c329d297 * More work for 'binr'. Hopefully everything is done now :) 2010-05-29 13:24:47 +02:00
pancake
eb05e6a6b2 * Move all the r2 programs into binr/
- Little cleanup of the build system
2010-05-29 03:30:36 +02:00
Nibble
c7b2579c8b * merge 2010-05-28 17:32:30 +02:00
Nibble
aee2477618 * bindings
- Add r_asm.deps
  - Add r_cmd.deps
  - Add r_config & r_asm to r_core.deps
  - fix r_asm.vapi
2010-05-28 17:31:43 +02:00
pancake
49f09cc421 * Initial refactor to build libr bins (binr) out of libr
- Cleaner build/install
2010-05-28 17:15:20 +02:00
Nibble
8d2d0e0806 * r_core
- Fix bug in r_core_anal_graph_nodes (s/printf/r_cons_printf/)
  - Use r_str_chop_ro to get 'cg' filename
* r_diff
  - Reimplement graphdiff using r_core functions
* r_config
  - Fix t/Makefile using -l instead of .o's
2010-05-28 10:17:24 +02:00
Nibble
4235dd2a8e * Fix bug with static plugins
* Treat r_cons and r_line as singleton in r_core_init
* Move gdiff to r_core
* Fix libgmp support

--HG--
rename : libr/diff/gdiff.c => libr/core/gdiff.c
rename : libr/diff/gdiff.h => libr/core/gdiff.h
2010-05-28 02:44:51 +02:00
Nibble
083ebe4832 * r_core
- Fix segfault in r_core
* r_bin
  - Minor fixup in r_bin_load
  - Move plugin pointers to r_bin.h
2010-05-27 19:58:54 +02:00
Nibble
cbdfc5ec77 * Fix io.va bug in r_io 2010-05-27 01:18:30 +02:00
Nibble
8ab4969851 * some more renaming 2010-05-27 00:57:25 +02:00
Nibble
4ead120e53 * Rename "handler" to "plugin"
* Rename */handler.c to */plugin.c
* Rename "handle" to "handler" in r_lib

--HG--
rename : libr/bp/handle.c => libr/bp/plugin.c
rename : libr/cmd/handle.c => libr/cmd/plugin.c
rename : libr/debug/handle.c => libr/debug/plugin.c
rename : libr/io/handle.c => libr/io/plugin.c
2010-05-26 18:25:35 +02:00
pancake
c077d0ca27 * RAsm.handlers => plugins 2010-05-26 02:55:50 +02:00
Nibble
67451362e4 * r_search
- Fix a segfault in rafind2
* vapi's
  - Fix build
2010-05-26 02:06:55 +02:00
Nibble
5c35f6e359 * Rename {r_*_handle_t, R*Handle} to {r_*_plugin_t, R*Plugin} 2010-05-26 01:42:22 +02:00
pancake
c8d637a26a * RAsmHandle -> RAsmHandler.. Same for RBin
- Define RAsmHandler in r_asm vapi
* Random code cleanup
* Define RHex.str2bin in rutil vapi
2010-05-26 00:59:10 +02:00
Nibble
a99aacf551 * r_diff
- Fix segfault in r_diff_buffers_distance
  - Fix segfault in t/test.c
2010-05-25 21:05:07 +02:00
Nibble
5cf81db968 * Build
- rename 'make ins' to 'make symstall'
  - more build fixes
  - all libs must be compiled before r_debug & r_core
  - Remove r_cons & r_print dependencies from asm/t/Makefile
  - Add r_anal dependency to debug/t/Makefile
2010-05-25 20:40:47 +02:00
Nibble
a972644aba * Fix build
- Comment out gdiff.c until the cross-dependecy problem with r_core
    is solved
2010-05-25 20:12:49 +02:00
pancake
a2ede77d20 * hash md5 and sha1 by default
* add RCore.io in vapi
* Add RIO.va in vapi
* Fix collision of VarType in RAnal
2010-05-25 01:42:57 +02:00
Nibble
79ce1c14ad * r_diff
- Add flag '-v' (va) to radiff2
* r_core
  - Launch 'radiff2 -g' with '-v' if 'io.va = 1'
2010-05-25 01:49:46 +02:00
Nibble
ee844c4625 * r_anal
- Allow to add overlapped functions
* r_core
  - Remove r_core_anal_fcn_add, it's the same that r_anal_fcn_add
* r_diff
  - Add 'af@entry0' to gdiff analysis
2010-05-25 01:31:52 +02:00
pancake
eaf11fb341 * Fix off-by-one segfault in PE RBin parser
* Fix creation of home directories
2010-05-24 20:02:33 +02:00
pancake
5152da2e93 * 'sr' also pushes into the seek history
* Debugger print mode with seeking support
  - Fix V? message
2010-05-24 19:38:13 +02:00
Nibble
d49e366109 * Update r_anal.vapi & fix bindings build 2010-05-24 19:42:35 +02:00
Nibble
c9b90d93e1 * r_diff
- Fix 'radiff2 -g'
* r_core
  - Remove debug messages
2010-05-24 19:08:38 +02:00
pancake
497cf959a7 * Added r_core_project_info
- Implemented 'Ps, Po and Pi' commands
  - Allow to open a project file without givin the path to file
  - Store and check changes in file.sha1 and file.path
* Do not load libraries twice in r_core
* Implement -r flag to rahash2 to export data in radare commands
  - Sync help message
2010-05-24 18:51:01 +02:00
Nibble
f65de2d925 * r_diff
- Add r_diff_gdiff (initial import of the graphdiffer)
	Next step is remove the mnemonics array and use a hash function
	The bb_diff function will change too :)
  - Add flag -g to radiff2
* r_core
  - Add cmd 'cg [file]' for graphdiffing
  - Add cmd 'agd [file]' for output graphdiff results
  - Modify r_core_anal_graph() for supporting graphdiffs
* r_util
  - Implement more r_big functions
  - Make other more gmp-like
2010-05-24 18:35:08 +02:00