Commit Graph

92 Commits

Author SHA1 Message Date
pancake
6072a14eef * Simplify and fix rarc2-tool script
* Add support for /**/ style comments in rarc2
* Fix libr2.a warning message
* Fix .string "" directive in rasm2
  - Now works like in GAS. escape chars are handled
  - and quotes are stripped
2010-09-15 13:10:10 +02:00
pancake
b6cc9ca1ba * Merge r_meta inside r_anal
* Display filename in title line of Visual mode

--HG--
rename : libr/meta/README => libr/anal/README.meta
rename : libr/meta/meta.c => libr/anal/meta.c
rename : libr/meta/t/test.c => libr/anal/t/test_meta.c
rename : libr/meta/type.c => libr/anal/type.c
2010-08-20 00:36:22 +02:00
Nibble
bb8cfd866d * r_bin
- Add function r_bin_extract()
  - Add lib r_bin_fatmach0 into format/mach0/
  - Complete mach0_specs with fat mach-o stuff
  - Add plugin bin_fatmach0
  - Initial import of mach-ex into r_bin
  - Remove mach-ex
* rabin2
  - Add flag -x for extracting bins from file
* Build
  - Update plugins.def.cfg
  - Remove mach-ex stuff from libr/Makefile
2010-07-29 16:04:18 +02:00
Nibble
495fc15d89 * Fix bug installing mach-ex 2010-07-25 13:29:16 +02:00
Nibble
cdcc089285 * Add initial support for java bindings
* Fix build
2010-07-22 18:54:07 +02:00
Nibble
bccc048aec * Install mach-ex
* Update fat mach-o warning message
2010-07-22 13:10:22 +02:00
Nibble
3131a9a7cf * Speed up make mrproper 2010-07-13 11:59:55 +02:00
pancake
a580ff4fa8 * Initial implementation of the subclassed RLFList class
- Implements a serialized RFList inside a RList container
  - Allows faster scans on contents
* Initial import of the RAnalCond/Value code
  - Not yet usable..just refactoring..
  - Handle null pointers in reg classes
* Added not-yet-working emit_arm.c for r2rc tool
2010-06-16 09:42:46 +02:00
Nibble
5751019088 * Build
- symstall pkgconfig
  - Fix symstallation of plugins
2010-06-15 15:31:17 +02:00
Nibble
414f5a38bc * More fixes on build system
- 'make mrproper' now works like 'hg purge --all'
  - More fixes on 'make clean'
  - Remove some missing -Wl,-R
2010-06-15 14:10:42 +02:00
Nibble
19dfb38b23 * r_core
- Fix segfault (pancake)
* Build
  - Remove rpath stuff
  - Simplify Makefiles
  - Add rafind2 to binr/Makefile
  - Add symstall to binr and r2rc
  - Fix minor deinstall issues
2010-06-15 13:10:46 +02:00
Nibble
2d81aabbd5 * Fix the build of radare2 and radiff2
* Remove r_line dep from cons/t/Makefile
* Build r_cons before r_line in libr/Makefile
2010-06-15 01:23:34 +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
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
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
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
pancake
76e52fdeb0 * Added install-symlink (0.3s vs 3s) faster install for devel
* Added 'S' key in visual mode (step over)
* Safer 'dcc' and 'dcr' commands using step over if necessary
  - Skip current instruction (do not lock on calls, rets..)
* Implement step over functionality
2010-05-24 17:51:51 +02:00
pancake
c552863cef * Initial refactoring work for 'pd' and 'pD' commands
- Colorize bytes and offset when scr.color=true
  - Still needs to be moved to r_print
  - Needs cleanup, optimization and simplification
2010-04-14 22:28:45 +02:00
pancake
c2bc7e0377 * Initial split of r_search_keyword
* Fix -soname of osx linker (-install_name)
* Added OSX build instructions in doc/osx
2010-04-05 22:49:22 +02:00
pancake
0eaded05ca * Remove m68k disassembler because BSD4 is GPL incompatible
- Moved into radare2-extras
2010-03-26 17:19:24 +01:00
pancake
9fcdcce2a7 * Some sorting of TODOs
* Disable asm.x86.nasm assembly on non-intel syntax
* rpathstrip after install (should fix debian issue)
2010-03-25 21:14:28 +01:00
pancake
728bd1f817 * Fix w32 build 2010-03-25 10:18:59 +01:00
Nibble
633387c2a4 * Remove rpathdel call from build
* Set va = 0 in debug mode
2010-03-21 07:40:31 +01:00
pancake
d9d4249eb2 * Fix strip rpath install 2010-03-19 13:57:21 +01:00
Nibble
21868d3b6c * r_parse & r_core
- Rename asm.symsreplace to asm.filter
* r_core
  - Add command 'aga' to output address-graphs
* build
  - Strip binary rpath before install
2010-03-19 04:32:42 +01:00
pancake
d6125712b5 * Add some missing methods in some vapis for valaswig
* Merge r_macro inside r_cmd
  - Rename RCommand to RCmd
* Propagate LIL_ENDIAN in userconf.h.acr
* Simplify configure script in swig/
  - valaswig is now mandatory
* Add 'st.fastcall' examples.

--HG--
rename : libr/macro/macro.c => libr/cmd/macro.c
2010-03-18 22:22:21 +01:00
pancake
99533607a0 * Apply some fixes of packaging bugs notified by debian
- Fix warnings in manpages
  - Fix install path of perl5 and python2.5 and 2.6 bindings
  - Fix make uninstall in r2-swig
  - Add -soname to libr2.so
  - Do not build/install swig from r2
2010-03-15 17:15:48 +01:00
pancake
0b0887d48f * Move vapi directory into swig/
- Two splitted distribution files:
    - radare2 and radare2-swig
    - Making it more debian friendly for packaging

--HG--
rename : libr/vapi/libr.deps => swig/vapi/libr.deps
rename : libr/vapi/libr.vapi => swig/vapi/libr.vapi
rename : libr/vapi/r_anal.vapi => swig/vapi/r_anal.vapi
rename : libr/vapi/r_asm.vapi => swig/vapi/r_asm.vapi
rename : libr/vapi/r_bin.deps => swig/vapi/r_bin.deps
rename : libr/vapi/r_bin.vapi => swig/vapi/r_bin.vapi
rename : libr/vapi/r_bp.vapi => swig/vapi/r_bp.vapi
rename : libr/vapi/r_config.vapi => swig/vapi/r_config.vapi
rename : libr/vapi/r_cons.vapi => swig/vapi/r_cons.vapi
rename : libr/vapi/r_core.vapi => swig/vapi/r_core.vapi
rename : libr/vapi/r_crypto.vapi => swig/vapi/r_crypto.vapi
rename : libr/vapi/r_db.vapi => swig/vapi/r_db.vapi
rename : libr/vapi/r_debug.deps => swig/vapi/r_debug.deps
rename : libr/vapi/r_debug.vapi => swig/vapi/r_debug.vapi
rename : libr/vapi/r_diff.vapi => swig/vapi/r_diff.vapi
rename : libr/vapi/r_hash.vapi => swig/vapi/r_hash.vapi
rename : libr/vapi/r_io.deps => swig/vapi/r_io.deps
rename : libr/vapi/r_io.vapi => swig/vapi/r_io.vapi
rename : libr/vapi/r_lang.vapi => swig/vapi/r_lang.vapi
rename : libr/vapi/r_lib.vapi => swig/vapi/r_lib.vapi
rename : libr/vapi/r_line.vapi => swig/vapi/r_line.vapi
rename : libr/vapi/r_parse.vapi => swig/vapi/r_parse.vapi
rename : libr/vapi/r_reg.vapi => swig/vapi/r_reg.vapi
rename : libr/vapi/r_search.vapi => swig/vapi/r_search.vapi
rename : libr/vapi/r_socket.vapi => swig/vapi/r_socket.vapi
rename : libr/vapi/r_syscall.vapi => swig/vapi/r_syscall.vapi
rename : libr/vapi/r_util.vapi => swig/vapi/r_util.vapi
rename : libr/vapi/t/Makefile => swig/vapi/t/Makefile
rename : libr/vapi/t/array.vala => swig/vapi/t/array.vala
rename : libr/vapi/t/asm.gs => swig/vapi/t/asm.gs
rename : libr/vapi/t/asm.vala => swig/vapi/t/asm.vala
rename : libr/vapi/t/bin.vala => swig/vapi/t/bin.vala
rename : libr/vapi/t/bintest.vala => swig/vapi/t/bintest.vala
rename : libr/vapi/t/core.vala => swig/vapi/t/core.vala
rename : libr/vapi/t/db.vala => swig/vapi/t/db.vala
rename : libr/vapi/t/hash.vala => swig/vapi/t/hash.vala
rename : libr/vapi/t/io.vala => swig/vapi/t/io.vala
rename : libr/vapi/t/lang.vala => swig/vapi/t/lang.vala
rename : libr/vapi/t/list.vala => swig/vapi/t/list.vala
rename : libr/vapi/t/list.vapi => swig/vapi/t/list.vapi
rename : libr/vapi/t/regs.vala => swig/vapi/t/regs.vala
rename : libr/vapi/t/sc.vala => swig/vapi/t/sc.vala
rename : libr/vapi/t/search.gs => swig/vapi/t/search.gs
rename : libr/vapi/t/search.vala => swig/vapi/t/search.vala
rename : libr/vapi/t/socket.vala => swig/vapi/t/socket.vala
2010-03-14 19:36:44 +01:00
pancake
3159638cf0 * Install test programs in $pfx/lib/radare2/test 2010-03-14 18:44:47 +01:00
pancake
b3a224fbbb * Some changes and fixes for the build of swig
- Thanks sre
  - 'make swig-install' is the way to go :)
2010-03-14 00:36:55 +01:00
pancake
3da650d4b1 * Write and install manpages
* Merge r_trace into r_debug (RDebugTrace)
  - Implement 'dt' command to manage debugging traces
  - TODO: Track register values and memory changes
  - Added dbg.trace and dbg.trace.tag
* Added r_sys_now() to retrieve ut64 value of current time
  - Must check endianness issues
* Initial work trying to implement RPATH support to ELF
* Less flat command tree
  - 'dt' is now 'dbt'
  - 'dk' is now 'dpk'
* Some more random syntax cleanup fixes
* Say 'yes/no' instead of 'ok/fail' in check-langs script
2010-03-12 18:46:11 +01:00
Nibble
d05b0fedf4 * r_anal
- Initial work in var analysis
  - Move r_var into r_anal
* r_var
  - Removed

--HG--
rename : libr/var/var.c => libr/anal/var.c
2010-03-11 17:19:33 +01:00
pancake
4726b8f3d8 * Do not install lib/t/plugin.so as a library 2010-03-10 17:21:20 +01:00
pancake
b4e5318705 * Exterminate r_range references and fix build 2010-03-03 02:45:55 +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
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
pancake
a1ada7a036 * Import 'S' command from r1 into r_core
- Allows to manipulate r_io_section
  - r_io not yet tested to work with this
* Added cfg.ffio eval key in r_core to interpret unreadable
  blocks as filled with 'ff' (fakes real IO), useful for
  searchs, bypass IO errors and make visual seeking sweet
  - False by default
  - Does not supports partial reads, so it can fake if seeking
    on non-aligned memory addresses
* Added install-bins and install-test-bins target
  - Splitted from install
  - Install 'r2' as an alias for 'radare2'
2010-01-31 14:22:27 +01:00
pancake
d5138a7c1d * Huge refactoring for r_cons and r_line
- Reduce the use of global variables by packing all them in a struct
  - Redesign the autocompletion method for r_line
    - Not yet finished, but so much refactoring out there :)
  - Using the singleton format (r_xxx_instance)
  - APIs has been cleaned up
  - Some bugs fixed
  - Syntax fixes

--HG--
rename : libr/cons/print.c => libr/cons/filter.c
2010-01-30 14:02:53 +01:00
pancake
8f3e91b9bb * Split install-includes from install: libr/ mk target
* Rename some enums in r_cons (C_ -> Color_)
  - Export colors in vapi and swig
* Initial dummy work with r_cons_instance singleton
  - Added _new() and _free() methods for r_cons
  - Redefine RCons structure
* Added r_cons python example
2010-01-27 01:50:26 +01:00
pancake
54bdfb22bd * Uppsercase classnames (rCore -> RCore)
- Fixes ruby warnings
  - Follow java syntax conventions
  - Helped to identify and fix bugs in many vapis
  - Sync swig examples
  - Add test-r_core.rb (ruby test for RCore)
* Some work in r_cons, some refactoring and cleanup
  - scr.html is now working again
  - w32 cons support should work now
  - Rename r_cons_get_columns -> r_cons_get_size()
  - But it needs more work
* Typedef all r_range, r_parse and r_anal structs
  - Add missing r_lib.pc in configure.acr
* 'make' clean now removes the libr* in swig/${LANG}/
2010-01-26 01:28:33 +01:00
pancake
7ce3232747 * Build all pkgconfig files (fixes valaswig stuff)
* Split some install targets
* Fix segfault in r_anal when not setting any handler
* Rename R_ASM_SYN -> R_ASM_SYNTAX cprefix
  - R_ASM_*_NULL -> R_ASM_*_NONE
* Added nonworking scr.html eval key in r_core/config
* Add install-ruby target for swig bindings
* Use @VERSION@ in libr.pc.acr
* Lot of fixes for valaswig integration
2010-01-25 11:54:25 +01:00
pancake
e5b6d1582b * Add 'install-vapi' target in libr/Makefile
* Fix linking of r_core (r_bin not found)
* Lot of fixes for valaswig. libr, r_io and r_debug
  are now usable from python/perl/ruby
  - Fix many .vapi files
  - Enhace the libr.pc
  - r_hash.deps must be removed
  - Depends on valaswig-head
2010-01-24 23:47:18 +01:00
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
pancake
5e3f145019 * Fix libr.a libr.so linkage
* Minor sort of TODO files
* Nicer output for make install
* Add socket/t/Makefile and fix test case
2010-01-18 22:14:19 +01:00
pancake
2a054f6bba * Added w32dist makefile target to generate a distributable zip
with .dll and .exe for w32
* Do not build libr.${LIB_AR} by default (problematic in some platforms)
* Lot of more fixes for building on w32 - Yeah i got the first build done!
  - Check radare.org/get/radare2-w32*
  - So many things are still broken for windows
  - Fixes some recursive and missing dependencies
  - LINK and LDFLAGS must be after $OBJ
2010-01-15 17:02:04 +01:00
pancake
65c744d67e * Fix build for linux-mips
* Add missing debug/t/Makefile
2010-01-15 16:24:06 -05:00
pancake
eb99dd1203 * Many more fixes for the mingw32 port 2010-01-15 13:02:54 +01:00
pancake
882e3e28c6 * Added libr target to generate libr.a and libr.so
* Build libr_${NAME}.a by default (with PIC objects..)
* iter.h -> r_iter.h
* Initial import of r_list
* Fix name of io.debug plugin

--HG--
rename : libr/include/iter.h => libr/include/r_iter.h
2010-01-14 12:13:48 +01:00
pancake
b3bf9db87a * Store default plugins.cfg configuration in plugins.def.cfg
- Instead of the configure-plugins script
  - exit with 0
2010-01-14 00:12:41 +01:00