Commit Graph

534 Commits

Author SHA1 Message Date
Nibble
f986ce8a31 * Rename test-rcc.py to test-r2rc.py and fix system call
--HG--
rename : swig/python/test-rcc.py => swig/python/test-r2rc.py
2010-02-26 13:16:27 +01:00
Nibble
54e804eec9 * Fix r2 build
- Add CFLAGS+=-DCORELIB in libr/cmd/Makefile
  - Add target all in r2rc/Makefile
* r_core
  - Add dummy command ac (stands for analyze code)
* r_anal
  - Reorganize code
  - Add function r_anal_bbs (not working yet)
2010-02-26 13:08:42 +01:00
pancake
de65dc6205 * Integrate r2rc into the build system 2010-02-26 00:51:22 +01:00
pancake
2e54f45389 * Initial import of r2rc
- Previously named 'rcc'
  - Qt bastards has forced us to rename it
  - Not yet integrated with build system
2010-02-26 00:50:23 +01:00
pancake
f8fcba5d81 * Implement plugin support to r_cmd
- Added dummy command **dummy** for testing purposes
  - Initialize CMD dynamic plugins from r_core
* Fix bug in configure-plugins
  - Generates bad config.mk and config.h when no static
    plugins defined for a category.
2010-02-26 00:37:49 +01:00
Nibble
9b39b01bee * Add get_libs function to r_bin_elf 2010-02-25 12:53:00 +01:00
Nibble
63c42b92fc * r_bin_mach0
- Parse indirectsyms table
  - Resolve import address
2010-02-24 20:13:12 +01:00
pancake
1db9134674 * Import not-yet-used backtrace code for x86-32/64 2010-02-24 11:21:47 +01:00
Nibble
69f29d82bd * r_bin
- Add r_bin_get_section_at
* rabin2
  - Include section name in strings list
2010-02-23 18:26:02 +01:00
Nibble
179bd0e8eb * Add get_libs to r_bin_mach0
* Minor fixups in r_bin_pe
* Add flag -l to rabin2 for listing linked libraries
2010-02-23 18:04:39 +01:00
Nibble
40e339d8e8 * Remove r_bin_meta_get_file_line (use r_file_slurp_line instead)
* Implement r_bin_mach0_get_info, supports:
  - Class
  - Wordsize
  - Endianness
  - Cputype
  - CpuSubtype
2010-02-23 13:41:03 +01:00
pancake
020686b86f * Implement r_str_argv()
- Use it from p/debug
  - Now is possible to debug programs with arguments
  - Added test program in util/t/argv
* Fix pd/pD
* Clean and fix the native debugger plugin
* More random code syntax cleanup
* Rename io plugin names without the deprecated 'io_' prefix
* Fix mk/stat-make.pl (missing ;)
2010-02-23 00:26:13 +01:00
Nibble
a536777d35 * Add support for ARM to r_bin_mach0
* Update r_core using r_bin_meta_*
2010-02-22 20:10:52 +01:00
Nibble
581ba0e201 * r_bin_mach0
- Implement get_entry
  - Add function r_bin_mach0_addr_to_offset
  - Fix returned offsets
2010-02-22 19:43:35 +01:00
Nibble
904aeff062 * Fix r_bin build 2010-02-22 17:13:40 +01:00
Nibble
02121858a7 * Fix r_bin_mach0_get_sections for mach0-64 2010-02-22 14:28:27 +01:00
Nibble
1b5966bf82 * Add support for mach0-64 to r_bin 2010-02-22 14:10:44 +01:00
pancake
fc9a622aa4 * Cleanup of r_types.h
- Fixes in R_SYS_OS and ENDIAN (oops)
  - Cleanup in debug
2010-02-22 12:42:43 +01:00
Nibble
54b0a48a57 * Regenerate configure
* Remove remaining r_bininfo stuff
2010-02-22 04:47:19 +01:00
Nibble
f3af308727 * Include r_bininfo features in r_bin
* Remove r_bininfo
* Add test bin/t/test_meta.c
2010-02-22 04:30:34 +01:00
pancake/imac
0efc6402ec * Fix disassembler (was depending on unitialized variable)
* Lock r_config instance
  - Add cmd.* eval vars
2010-02-22 04:25:35 +01:00
pancake/imac
edb48945b7 * Added DEFAULT_ARCH for mips and powerpc
* Refactoring in r_anal API for _aop() with addr and length
  - Added ppc code analysis plugin
  - sync in r_core
* cfg.ffio->io.ffio
* Add CMD type in r_lib
* Added SR register type
* More stuff is now working in osx-ppc debugger
* Random code cleanup
2010-02-22 04:02:13 +01:00
pancake/imac
dfd884db74 * Initial steps to make osx-ppc debugger work
- Use 'asm.arch=ppc' in POWERPC by default
  - Added r_io_mach for MACH microkernel debugging
    - Compiled as static plugin by default
  - Added darwin mach/ptrace stuff in debug_native
  - Very ugly code.. needs some refactoring
  - Add powerpc-OSX registers description map
  - Added temporally .h files in debug/p/native
* Display verboser version message with 'r2 -V'
* More linking issues fixed for OSX
* Build gdbwrap debugger plugin
  - Not yet usable
* Added R_SYS_OS R_SYS_ARCH and R_SYS_ENDIAN strings
* Deprecate DEBUGGER variable
2010-02-22 02:42:29 +01:00
pancake/imac
c6c829add1 * Do not link libr2.dylib in OSX
- Adapt -Wl,-R -> -L in OSX
* Comment some useless mk includes
2010-02-21 21:34:10 +01:00
pancake/imac
931fa4055f * Fix ostype autodetect in darwin (aka osx) 2010-02-21 20:49:39 +01:00
pancake
14f9fe8b65 * Autodetection of --with-ostype in configure.acr
- Rebuild configure script in ACR 0.8.1
* Random minor changes
2010-02-21 20:24:28 +01:00
pancake/imac
9890c6e8b0 * Fix build in OSX
- env.sh now also uses DYLD_LIBRARY_PATH
  - Fixes in ollyasm/dis to link with no global variables
    - Remove double definition of global _state
    - Same for asm_java
  - Split -shared and -Wl,-R into LDFLAGS_{LIB|LINKPATH}
    - Fixes linkage in osx
  - anal_x86_bea plugin now links correctly against BeaEgine.o
  - dietline is now #include'd from line.c
  - no debugger support yet
  - Do not externalize any variable. Some linkage does not support it
* Remove bininfo dependency .. aims to be merged into bin soon
* Added r_str_case() method to change to lower/upper case a string
2010-02-21 20:21:36 +01:00
Nibble
8d4172972d * r_bin
- Add field bits to RBinInfo
  - Make r_bin_*_get_arch compatible with r_asm
* rabin2
  - List sections before anything else
  - Add "e asm.bits x" to "rabin2 -ir" output
* r_flags
  - Remove r_flag_set_base
* r_io, r_core
  - Now r_io handles all the va related stuff
  - Execute rabin2 with the flag -v if io.va = true
2010-02-21 11:35:49 +01:00
Nibble
d1d3dd0e4c * Fix some tests in vapi testsuite
* Update vapi syntax
  - static delegate -> delegate + [CCode (has_target="false")]
* Comment out deprecated rarray stuff in r_types.h
2010-02-20 18:40:54 +01:00
Nibble
71ae9afdc4 * Remove r_types_os and add r_types_base instead
- Now bindings are fully working
* Update r_bin vapi
* Fix r_bin example for python bindings
2010-02-20 18:24:45 +01:00
Nibble
cdf7939df0 * Split r_types.h in r_types.h and r_types_os.h
* Add asm.x86 to the list of static plugins
* Add r_bin to libr.deps
2010-02-20 15:28:21 +01:00
Nibble
336d1ce982 * Add r_file_abspath to r_util 2010-02-20 06:40:02 +01:00
Nibble
72de327a5b * Use bin->file instead of bin->bin_obj->file 2010-02-19 20:07:00 +01:00
Nibble
47410d8bcd * Add r_sys_getcwd (get current working directory) in r_util
* Add field "file" into r_bin_getinfo
* Fix r_bin vapi
2010-02-19 19:59:22 +01:00
Nibble
7f50350576 * rabin2
- Output offset (physical address) by default in radare mode
  - Add flag -v for printing virtual address in radare mode
2010-02-18 20:09:44 +01:00
Nibble
2f8f9efcee * Set cfg.va = false by default
* Fix disassembly of unknown opcodes
2010-02-18 19:43:23 +01:00
Nibble
fd02a34bc4 * rva is working, but needs more work
* Add S cmds to the output of rabin2 -rS
* Fix cmd 'S' (sections)
* Fix r_io_ptrace
* Add some missing signatures into r_util.h
2010-02-18 18:58:28 +01:00
pancake
09ad7c5b0f * Do not use 'extern' variables outside modules
- Fixes build in OpenSolaris
* Fix build of some io plugins
2010-02-18 16:36:55 +01:00
pancake
d6f95d33c3 * Lot of fixes in the vala/swig wing
- r_util is now bindable from swig !!
  - Added test cases for r_util
  - r_flist has been mirrored in C, to keep API consistent
* Rename RIO->seek into RIO->off
  - There's a method with the same name
  - Also rename list.h ->next and ->prev into ->n ->n
* Apply patch from whats fixing 'r_cmd_str' EOF for stdin (Thanks!!)
  - Added test program to ensure stdin food works
* Allow '-f -' to rasm2 (assemble file from stdin)
* Added test case in python using RBin, RAsm and RCC to compile
  and assemble a code to be injected in the given target program
2010-02-15 22:59:26 +01:00
Nibble
c738134c67 * Fix olly disasm in 64b 2010-02-14 12:43:52 +01:00
Nibble
9923fb7199 * Fix r_asm disassemble offsets 2010-02-13 18:14:01 +01:00
pancake
e0ed77af58 * Some work to fix r_asm
- assemble is now working
  - disassemble fails
  - Hard refactoring in massemble loop
  - Labels are now just 'text:'
  - Comments are supportes with '#' char
  - Labels are used as EQU directives
  - Added test program 'make test' in libr/asm/t
2010-02-13 03:00:27 +01:00
Nibble
bd2561af7f * Several fixups in r_asm and rasm2
* Fix ruby test for swig
* Add dummy perl test for swig
* Remove perl warning from swig/Makefile
2010-02-12 18:40:05 +01:00
pancake
caf507091d * Added -f flag to rasm2
* Implement .equ keyword in rasm2
2010-02-12 13:45:03 +01:00
Nibble
3d3bf594af * Rename r_array to r_flist (RArray to RFList)
* Add ruby test for r_bin
* Remove old r_array stuff from r_types.h
* Fix swig/Makefile to install ruby libs into ruby1.8 libdir too

--HG--
rename : libr/include/r_array.h => libr/include/r_flist.h
2010-02-12 11:45:22 +01:00
pancake
18b1b24065 * Merge heads 2010-02-12 03:17:56 +01:00
pancake
e110ce46da * Oops. reapply revision 383 2010-02-12 03:17:32 +01:00
pancake
922a86623f * Added pD command 2010-02-12 03:12:20 +01:00
pancake
5e4ae255fc * Fix pd # (display number of opcodes, not bytes) 2010-02-12 03:11:14 +01:00
Nibble
bf35f03ac8 * Fix bindings Makefile to support ruby1.9.0 2010-02-12 02:13:07 +01:00