Commit Graph

103 Commits

Author SHA1 Message Date
pancake
3105b3f137 * Fix doc installation path
* Up config.mk version to 0.2b
* Cleanup TODO
* Initial implementation of r_cache (optimization for disassembler)
* Add readme for r_sign (some randome notes and ideas)
2009-03-27 11:28:25 +00:00
pancake
0caaaaf82b * Add 'tcc' lang plugin
* Implement lua lang plugin
* Rename 'CD' command to 'CL' (code lines takes more sense)
2009-03-27 09:47:19 +00:00
pancake
12af51655b * Fix installation of documentation
* Fix popen() fread-related bug in addr2line plugin for bininfo
* Add 'fo' command.
  - Installs the 'fortunes' file
* Add 'CD' command (show debug information of file using bininfo)
* Add scr.seek and cfg.fortunes config keys
  - scr.seek works in visual mode (cleanup debug visual mode)
  - cfg.fortunes runs 'fo' command at startup
2009-03-27 00:16:27 +00:00
pancake/fluendo
a8f2ae2d07 * Import fortunes from radare1
- Add dummy ACR configure script
2009-03-25 20:53:26 +01:00
Nibble
0819be62de * r_bin & r_bininfo
- Added "check" function to plugins
    (used by _open for auto setting)
  - Removed hardcoded format autodetection
2009-03-25 20:51:26 +01:00
Nibble
8e72d7f7d9 * r_bin & r_bininfo
- Removed _set and _autoset functions
  - _open (auto)sets the plugin now
  - Refactoring
2009-03-25 15:52:17 +01:00
Nibble
b89e2d47c8 * r_bin & r_bininfo
- Minor refactoring
2009-03-23 23:07:31 +01:00
pancake
0a84b63927 * Fix build (use gcc)
- Fix issues in r_bininfo (now the test program works)
  - Properly add the static r_bininfo plugin
2009-03-23 13:22:23 +00:00
pancake
99f284f358 * Some work for r_bininfo library
- Extend API to get file and line numbers from a virtual address
  - Added addr2line-like test program 'rabini'
  - Added 'addr2line' plugin
* Add r_file_slurp_line helper in r_util
* Added initial work to support multiple compilers (gcc only atm)
  - tcc support under development
  - Make HAVE_REGEXP be optional
2009-03-22 04:37:46 +00:00
pancake
a14d5f1656 * Tricky implementation of 'dm' command
* Fix 'dp' command
* Use execvp to run the program
  - Some changes in the parser for argv and so
2009-03-22 02:36:00 +00:00
pancake
448d76a5e7 * Fix lot of bugs with cons+grep for @@=`` or stuff like that
* The grepping algorithm in r_cons has been rewritten from scratch
  - Grepped at memcat() which is the root entrypoint for console IO
  - Faster than before (200 less LOC)
  - Not yet working at all, but it is quite better than before
* Fix history bug when using @@
* Use return value of filtercmd function to not invoke children core_cmd
* Fix some random segfaults
2009-03-21 22:59:35 +00:00
pancake
692cefa68b * Minor fixups 2009-03-21 02:17:43 +00:00
pancake
c673ede6b7 * Bug identified in cons with r_core_cmd_str identified
- We have to grep stuff when inserting it, not when flushing
* Fix 'pd' command (initialize base address
* Initial import of the foreach @@ syntax sugar
  - Basic flag support, allows @@= for lists and @@.() for macros
* Add 'g' and 'G' keys in visual
* Fix issues in the macro engine and usage
  - Proper identification of dupped commands
  - Split macro name and arguments in internal structures
  - Chop last ')' to make () and (,) macros work happily
* Fix build of r_sign and a segfault in _free() method
2009-03-20 21:05:12 +00:00
Nibble
ee3f973f93 * Added bininfo code base 2009-03-19 23:58:57 +01:00
Nibble
a18996b41f * r_bin_pe
- Fixed exports bug
  - Little refactoring
2009-03-19 23:22:14 +01:00
Nibble
7e5f8de7eb * r_bin_elf
- Huge refactoring
* r_bin_pe
  - Initial work on pe32+ plugin
* r_bin_java
  - Use macro instead of ntohs
  - Minor fixups
  - Added dummy show_info function
* r_types
  - Types fixup
2009-03-19 22:04:50 +01:00
pancake
996f5ba9c4 * Run callback when defining keys in config
- Add asm_arch and asm_parser callbacks
* Run config_init at the end of core init
* Do not force disassembler to be x86-only
  - Add the disassembler initialization in config
  - Detect invalid disassembling
  - Only parse when asm.pseudo is enabled
2009-03-17 22:06:50 +00:00
Nibble
f3983d9316 * r_bin
- Added generic string search support
  - Added class format autodetection
  - Minor fixup
2009-03-17 00:34:45 +01:00
Nibble
758b492739 * r_bin
- Removed unnecessary files
  - Added initial java support (baddr, entry, syms, strings)
  - Minor fixups in r_bin_{elf, pe}
  - Added rabin2 -z for strings (not working yet)
2009-03-16 21:07:31 +01:00
Nibble
a27a4b393c * More work on r_bin_java 2009-03-16 08:51:20 +01:00
pancake
dc0459875e * Add support for multiple grep keywords
pd~call!jmp!jne ; (split with '!')
2009-03-15 13:14:09 +00:00
pancake
1d90ad7143 * Add constructor/destructor for r_anal and r_sign
- Add rasign test program for r_sign
* Minor code cleanup in cons
* Cleanup and sort commands in help message
* Make oobi input work as command interpreter
  - Add r_core_cmd_buffer
* Some basic design workup for xrefs search engine
2009-03-14 11:39:37 +00:00
pancake/fluendo
9526a34445 * Add ?z and ?t commands in r2
- ?z stands for strlen (zero length is true)
  - ?t stands for 'time profiling' for commands
    > ?t.(run-profiled-macro)
    > ?tpd 20
    > ?t33x 128
    ...
* Add r_prof stuff inside r_util
* Fix hexdump when color is disabled
2009-03-13 12:28:36 +01:00
pancake
a89fabf552 * Major refactoring work done for r_trace
- Now build by default with the rest of libr
  - drop read_at dependency for r_trace
* Some stuff has been moved from r_util to r_types
  - max/min int values and so on
  - eprintf lives there now
2009-03-13 10:39:54 +00:00
pancake
d1c0b4620d * Initial implementation of 'sa' command
- Accepts a 2nd blocksize argument
  - Fix algorithm used in r_core_seek_align to work with 'sa'
* Fix issue with 's+' and 's +' expressions
* Clean up some warnings + minor bugs
2009-03-12 22:19:58 +00:00
pancake
7d019caae3 * Remove '<' and '>' commands.
Just will use 'sa' in the future..must think, but atm keep it clean
2009-03-12 12:34:57 +00:00
pancake
9ca8e5b665 * Added '>' and '<' keys in visual
- implemented core_seek_align function
* Added '<' and '>' commands, but they are not yet working
  - Should be renamed to 'sa' (seek aligned)
* Fix hexdump ascii column color issue
* Fix print/t/hex hexample
* Add some dummy floating stuff for r_util
* Use IFDBG instead of custom 'D' in util/num.c
2009-03-12 12:30:32 +00:00
pancake
cfc2882d14 * Fix scrolling in visual (drop s eip in cmd.vprompt)
* Add cmd.visual that runs when entering in visual mode
2009-03-12 02:03:18 +00:00
pancake
d292b4fb6d * Fix api for config_set_cb
- Now every callback gets a *user pointer
  - Define full api in r_config.h with R_API
  - Added scr.color in radare2
  - Added po, pu, pU and pS print modes in r2
* Add r_print_unset_flags helper
* Fix urlencoding print mode
* Add test program for r_print_format
* Fix build O:)
2009-03-12 01:42:35 +00:00
pancake
1e6806aa84 * Add R_INLINE in config.h
* Add R_API directive in r_types
* Huge refactoring for r_print
  - C code format
  - formatted memory structures also working (not finished)
  - unix, dos and w32 timestamps
  - Added p->interrupt to break loong loops (should we think in a limit?)
  - print formats that need processing returns the number of bytes processed
    - if they return 0 is because they failed
  - Much more simplified code than the one in r1
  - Use p->printf instead of r_cons_printf (aim to independize from r_cons)
  - Some basic support for color output
2009-03-12 00:42:32 +00:00
pancake
dab6dacf50 * Refactoring of the r_print module
- State-aware now
  - Sync examples and r_core
2009-03-11 11:42:11 +00:00
Nibble
50fbf06b64 * r_bin
- rabin2 -p replaced by -f
  - Changed folder structure
  - Initial work in java plugin
  - Minor fixups

--HG--
rename : libr/bin/p/elf/elf.c => libr/bin/format/elf/elf.c
rename : libr/bin/p/elf/elf.h => libr/bin/format/elf/elf.h
rename : libr/bin/p/elf/elf64.c => libr/bin/format/elf/elf64.c
rename : libr/bin/p/elf/elf64.h => libr/bin/format/elf/elf64.h
rename : libr/bin/p/elf/elf_specs.h => libr/bin/format/elf/elf_specs.h
rename : libr/bin/p/mach0/mach0.c => libr/bin/format/mach0/mach0.c
rename : libr/bin/p/mach0/mach0.h => libr/bin/format/mach0/mach0.h
rename : libr/bin/p/pe/pe.c => libr/bin/format/pe/pe.c
rename : libr/bin/p/pe/pe.h => libr/bin/format/pe/pe.h
rename : libr/bin/p/pe/pe_specs.h => libr/bin/format/pe/pe_specs.h
2009-03-11 01:11:50 +01:00
pancake
fc22e99c95 * Initial fixup for default LIBR_PLUGINS on installed r_lib
* Initial work to simplify build porting for OSX and W32
2009-03-10 21:58:00 +00:00
Nibble
acc455109f * Several fixups 2009-03-10 12:21:46 +01:00
pancake
19fa55ba33 * Add random documentation for dynamic language plugins
* Properly installation of vapi files
  - Lot of fixtures to build a external hello world in gtk+vala+r_asm
  - default staticplugins for r_asm are:
    mips, java and x86_olly by default
  - Add r_util.vapi and make .pc file point to -lr_util
  - Use .deps to generate dependencies between vapi files
  - Fix r_asm.vapi (Added Asm.Aop struct)
    - add set(string) method
    - asm/disasm -> assemble/disassemble
* Fix warning + build in sign.c
  - Included in default build
* Fix segfault in r_lib with NULL in opendir()
* More fixtures for r_asm_plugin_*
  - use #ifndef CORELIB
  - drop 'static'
* Update README
2009-03-10 01:49:24 +00:00
pancake/fluendo
655d437e70 * Add non-block socket support for Windows(R) platform 2009-03-09 16:54:57 +01:00
pancake
13e9da6c79 * Merge heads 2009-03-09 13:13:44 +00:00
pancake
597312f494 * Fix generation and installation of the libr.pc pkg-config file
* Fix parsing of 'f' command as help specifies (already done in r1)
  - get size and offset as 2nd and 3rd args
* Do not hardcode flag size to '1' (use argument given)

--HG--
rename : libr/libr.pc => libr/libr.pc.acr
2009-03-09 13:08:53 +00:00
Nibble
d51005f027 * Added 'static-plugin' feature to r_bin module
* Minor fixups in r_asm build
* Added missing IFDBG in lib.c
2009-03-09 13:03:42 +01:00
pancake
4ba2e545ae * Fix warn in javasm.c
* Fix asm_x86 makefile rule dup
* Fix build of x86_bea plugin
* Add asm.offset and asm.bytes in r_core
2009-03-09 02:03:32 +00:00
pancake
a53a50721f * Add rafind2 utility
- Commandline utility to perform searchs on multiple files
* Fix build or r_bin
* Add doc/rgraph
* Show prefix in 'install'
* Fix 'install' inside libr/
2009-03-09 01:14:50 +00:00
pancake
75c7d6912e * Oops merge! 2009-03-08 23:49:49 +00:00
pancake
b2e785fc61 * Add 'static-plugin' feature to r_asm module
* Make rabin2 support 'arm' instead of 'asm_arm' for -a (autoprefix 'asm_')
* Some build fixtures
* Static plugins are configurable in libr/config.mk and libr/config.h
2009-03-08 23:49:15 +00:00
Nibble
98a19ea06f * Fixed IFDBG Macro
* r_lib debug messages enabled through -DR_DEBUG
2009-03-08 21:41:02 +01:00
Nibble
9ecc5775a7 * r_bin
- r_bin_init splitted in r_bin_init and r_bin_set_file
* r_core
  - Fixed radare2
* r_parse
  - Fixed parse_mreplace build
* r_lib
  - Lazy dlopen by default
2009-03-08 18:29:21 +01:00
Nibble
04c9a3f5d1 * r_bin
- Major refactoring (using r_lib infrastructure)
  - Removed outdated test programs
  - Updated rabin2

--HG--
rename : libr/bin/elf.c => libr/bin/p/elf/elf.c
rename : libr/include/r_bin_elf.h => libr/bin/p/elf/elf.h
rename : libr/bin/elf64.c => libr/bin/p/elf/elf64.c
rename : libr/include/r_bin_elf64.h => libr/bin/p/elf/elf64.h
rename : libr/include/r_bin_elf_specs.h => libr/bin/p/elf/elf_specs.h
rename : libr/bin/mach0.c => libr/bin/p/mach0/mach0.c
rename : libr/include/r_bin_mach0.h => libr/bin/p/mach0/mach0.h
rename : libr/bin/pe.c => libr/bin/p/pe/pe.c
rename : libr/include/r_bin_pe.h => libr/bin/p/pe/pe.h
rename : libr/include/r_bin_pe_specs.h => libr/bin/p/pe/pe_specs.h
2009-03-08 16:49:15 +01:00
Nibble
73343076a8 Added tag 0.1 for changeset ae3b6b66b9de 2009-03-08 10:37:28 +01:00
pancake
098b7f7fc8 * Sync changelog and drop RELEASE mark 2009-03-07 17:58:17 +00:00
pancake
04ca0c78d6 * Cut release for r2-0.1
* Merge dist+shot make targets
  .PHONY them all
* (Un)Install include files in $pfx/include/libr/
2009-03-07 17:47:59 +00:00
Nibble
8ff0d7e13c * Removed several warnings 2009-03-06 12:53:19 +01:00