Commit Graph

196 Commits

Author SHA1 Message Date
pancake
a5cb0c7810 * Add ragg2-cc
- shellcode compiler using gcc or llvm-gcc as backend
  - inspired in shellforge, written in shellscript
  - works on x86-32 with linux and osx
* Fix rax2 -S for binary data
2011-11-26 05:14:03 +01:00
pancake
158962d606 * make purge is now less harmful
* add initial support for creating p9 binaries
* Make r_anal_get_fcns() an accessor macro
2011-11-12 05:20:54 +01:00
pancake
0f271a8bac * Added api to get opcode descriptions
- r_asm now depends on r_db (uses r_pair aka sdb)
  - r_asm_describe()
  - install opcode descriptions
  - Use ?d to get description of opcode (uses asm.arch)
* Add 'fl' command to get length of flag
* Fix some warnings in anal.sparc plugin
* Add new assembler directives
  - .int8 (alias of .byte)
  - .int16 (alias of .short)
  - .int32 and .int64
* Fix memory leak in r_core_disasm()
* Add accessors for RAnalFcn.{refs,xrefs,vars,bbs}
  - Updated bindings
2011-11-12 01:52:31 +01:00
pancake
e2835a7738 * Bump for 0.9hg 2011-11-02 02:01:24 +01:00
pancake
f5e374e235 * Make w32dist ship sdb and fortunes
* Add support for relative R2_PREFIX for w32
2011-10-24 12:07:12 +02:00
pancake
c8e42425ab * Added sys/dist-all script
* Add make mrproper and version to r2-bindings
2011-10-24 11:38:33 +02:00
pancake
6c0318fa86 * Honor LIBDIR in syscall/d and magic/d
* Show similarity distance in radiff2 -C output
* Add -O flag to radiff2 to use diffops
* Diffing threshold for basic blocks and functions is now configurable
* Explicitly delete the asm object from the nodejs example
2011-10-14 10:09:53 +02:00
pancake
e9d1dcb4ec * Fix make w32dist
* Update manpages
* Added r2 -H for env and files help
* Add rarun2 -h
* Show assembler/disassembler features in rasm2 -L
* Add opcode 'mov dword [ebp-12],4' to x86.nz
  - Make t/test.nz work with x86.olly (32bit only atm)
* Fix unknown os issue with tiny-pe files in r_bin
* Fix some plugin names build fails in mingw32
* MAGICPATH renamed to R_MAGIC_PATH
* Add another experimental way to generate gir files
  - Added dummy test.js for nodejs
* Build python-dist in farm

--HG--
rename : man/rarc2-tool.1 => binr/old.rarc2/rarc2-tool.1
rename : man/rarc2.1 => binr/old.rarc2/rarc2.1
2011-10-12 03:24:19 +02:00
pancake
8de9123520 * Add make chlog target to genereate shlogs
* Fully implement the asm.bf assembler and disassembler
  - Syntax fixed. disassembled code can be reassembled
  - Added support for misd instructions (multiple instruction single data)
    rasm2 -a bf 'add [ptr], 8;trap,64;nop;poke;'
2011-10-09 05:24:15 +02:00
pancake
0eb0eabd19 * Do not dist w32 test bins
* rahash2 now depends on r_io
  - support for huge files is wip
* Handle offset in afl command
* Fix libs.mk syntax issue
2011-09-23 12:25:06 +02:00
pancake
279d4e6f5f * Fix make deinstall
* rarun2 and rasc2 now depend on r_util
* Add r_mem_protect() as a wrapper for mprotect/VirtualProtect
* Fix segfault in java class parser

--HG--
rename : binr/rarun2/main.c => binr/rarun2/rarun2.c
2011-09-19 13:54:57 +02:00
pancake
6afd85a447 * More work on the OpenBSD file(1)
- Fix a segfault bug (not exploitable)
  - Import some magic files and install
  - PREFIX"/lib/radare2/"R2_VERSION"/magic"
  - Output of 'pm' is easier to read now
  - Add pm? help message
* Remove all flags from previous search
* Handle ^C in /m search
* Autocomple ~ with tab (home)
  - Fix autocomplete filenames without '^[\.|/]'
2011-09-11 03:59:24 +02:00
pancake
833abfa19b * Major refactoring in r_syscall
- Requires rebuild, still not fully tested
  - Use r_pair (nosql db) to store all this info
  - Added lot of new platform descriptions for RSyscall
2011-09-04 05:33:59 +02:00
pancake
6d5bef5976 * Use hg manifest in make dist
* Honor r_bin_use_arch arch and bits information for r_bin_create
* Implemented sC command to seek by comment matching
* Fix one byte Color_RESET in r_print
* Minor refactor in rasm newlisp example
2011-08-27 03:31:55 +02:00
pancake
1503b4955c * Enforce the use of BSD tar 2011-07-21 00:50:16 +02:00
pancake
ad30b95b45 * Honor --libdir --includedir and --bindir
* Put rsc2 scripts in ${LIBDIR}/radare2/bin
* Force RELEASE=1 in r2-bindings. Oops
2011-07-19 11:25:11 +02:00
pancake
eefaa842c6 * Bump into 0.8.1
* Capture stderr in gnu-tar check
2011-07-19 00:26:11 +02:00
pancake
0d4faf652e * Set library version number for plugins
- Registers for which version of core was compiled
* Use tar --format=posix when GNU tar
  - Fixes the dependency on BSD systems
* Fix in doc/fortunes
* Fix this class pointer in asm_java
* Re-Fix uglily the bin_elf strtab issue (needs more work)
* Fix Vala regression in r_asm.vapi
2011-07-19 00:12:36 +02:00
pancake
3452c5845a * Added gitpush utility for github mirroring 2011-07-15 12:48:46 +02:00
pancake
d190c204f8 * Remove manpages in purge
* Fix make symstall
2011-07-13 11:30:25 +02:00
pancake
cf0e1d6b6c * Honor MANDIR 2011-07-03 13:06:16 +02:00
pancake
a4b57487bf * Fix pkg-config-symstall
- Update all .pc files
* Fix 'pf d*' segfault
  - Show flag references in all 'pf' values
* Many bugfixes in vapis
  - Use nested namespaces instead of static classes
    - Static classes was deprecated in Vala some years ago
  - All bindings are working again
  - C++ support has been added
  - Guile is now compiled by default
* Added ./configure-langs to select which langs to use
  - Use --enable=python,perl or --disable=guile
2011-05-20 19:49:50 +02:00
pancake
47357a1b89 * Rename swig/ to r2-bindings
- Avoid confusions with the name :)

--HG--
rename : swig/Makefile => r2-bindings/Makefile
rename : swig/README => r2-bindings/README
rename : swig/autogen.sh => r2-bindings/autogen.sh
rename : swig/check-langs.sh => r2-bindings/check-langs.sh
rename : swig/config.mk.acr => r2-bindings/config.mk.acr
rename : swig/configure => r2-bindings/configure
rename : swig/configure.acr => r2-bindings/configure.acr
rename : swig/cxx/Makefile => r2-bindings/cxx/Makefile
rename : swig/do-swig.sh => r2-bindings/do-swig.sh
rename : swig/do-test.sh => r2-bindings/do-test.sh
rename : swig/go/Makefile => r2-bindings/go/Makefile
rename : swig/go/fixgoswig.sh => r2-bindings/go/fixgoswig.sh
rename : swig/go/test-r_bin.go => r2-bindings/go/test-r_bin.go
rename : swig/guile/Makefile => r2-bindings/guile/Makefile
rename : swig/guile/test-asm.scm => r2-bindings/guile/test-asm.scm
rename : swig/guile/test-util.scm => r2-bindings/guile/test-util.scm
rename : swig/guile/vapi.patch => r2-bindings/guile/vapi.patch
rename : swig/java/Makefile => r2-bindings/java/Makefile
rename : swig/java/TestRBin.java => r2-bindings/java/TestRBin.java
rename : swig/lua/Makefile => r2-bindings/lua/Makefile
rename : swig/lua/test-r_asm.lua => r2-bindings/lua/test-r_asm.lua
rename : swig/lua/test-r_bin.lua => r2-bindings/lua/test-r_bin.lua
rename : swig/lua/test-r_bp.lua => r2-bindings/lua/test-r_bp.lua
rename : swig/lua/test-r_core.lua => r2-bindings/lua/test-r_core.lua
rename : swig/perl/Makefile => r2-bindings/perl/Makefile
rename : swig/perl/test-r_asm.pl => r2-bindings/perl/test-r_asm.pl
rename : swig/perl/test-r_bin.pl => r2-bindings/perl/test-r_bin.pl
rename : swig/perl/test-r_bp.pl => r2-bindings/perl/test-r_bp.pl
rename : swig/python-config-wrapper => r2-bindings/python-config-wrapper
rename : swig/python/Makefile => r2-bindings/python/Makefile
rename : swig/python/r_cons.i.experimental => r2-bindings/python/r_cons.i.experimental
rename : swig/python/remote.py => r2-bindings/python/remote.py
rename : swig/python/test-r2rc.py => r2-bindings/python/test-r2rc.py
rename : swig/python/test-r_asm.py => r2-bindings/python/test-r_asm.py
rename : swig/python/test-r_bin.py => r2-bindings/python/test-r_bin.py
rename : swig/python/test-r_bp.py => r2-bindings/python/test-r_bp.py
rename : swig/python/test-r_bp2.py => r2-bindings/python/test-r_bp2.py
rename : swig/python/test-r_cons.py => r2-bindings/python/test-r_cons.py
rename : swig/python/test-r_core.py => r2-bindings/python/test-r_core.py
rename : swig/python/test-r_flags.py => r2-bindings/python/test-r_flags.py
rename : swig/python/test-r_hash.py => r2-bindings/python/test-r_hash.py
rename : swig/python/test-r_num.py => r2-bindings/python/test-r_num.py
rename : swig/python/test-r_util.py => r2-bindings/python/test-r_util.py
rename : swig/python/test-ragdiff2.py => r2-bindings/python/test-ragdiff2.py
rename : swig/ruby/Makefile => r2-bindings/ruby/Makefile
rename : swig/ruby/test-r_bin.rb => r2-bindings/ruby/test-r_bin.rb
rename : swig/ruby/test-r_bp.rb => r2-bindings/ruby/test-r_bp.rb
rename : swig/ruby/test-r_core.rb => r2-bindings/ruby/test-r_core.rb
rename : swig/rules.mk => r2-bindings/rules.mk
rename : swig/vapi/libr.deps => r2-bindings/vapi/libr.deps
rename : swig/vapi/libr.vapi => r2-bindings/vapi/libr.vapi
rename : swig/vapi/r_anal.deps => r2-bindings/vapi/r_anal.deps
rename : swig/vapi/r_anal.vapi => r2-bindings/vapi/r_anal.vapi
rename : swig/vapi/r_asm.deps => r2-bindings/vapi/r_asm.deps
rename : swig/vapi/r_asm.vapi => r2-bindings/vapi/r_asm.vapi
rename : swig/vapi/r_bin.deps => r2-bindings/vapi/r_bin.deps
rename : swig/vapi/r_bin.vapi => r2-bindings/vapi/r_bin.vapi
rename : swig/vapi/r_bp.deps => r2-bindings/vapi/r_bp.deps
rename : swig/vapi/r_bp.vapi => r2-bindings/vapi/r_bp.vapi
rename : swig/vapi/r_cmd.deps => r2-bindings/vapi/r_cmd.deps
rename : swig/vapi/r_cmd.vapi => r2-bindings/vapi/r_cmd.vapi
rename : swig/vapi/r_config.vapi => r2-bindings/vapi/r_config.vapi
rename : swig/vapi/r_cons.vapi => r2-bindings/vapi/r_cons.vapi
rename : swig/vapi/r_core.deps => r2-bindings/vapi/r_core.deps
rename : swig/vapi/r_core.vapi => r2-bindings/vapi/r_core.vapi
rename : swig/vapi/r_crypto.vapi => r2-bindings/vapi/r_crypto.vapi
rename : swig/vapi/r_db.vapi => r2-bindings/vapi/r_db.vapi
rename : swig/vapi/r_debug.deps => r2-bindings/vapi/r_debug.deps
rename : swig/vapi/r_debug.vapi => r2-bindings/vapi/r_debug.vapi
rename : swig/vapi/r_diff.vapi => r2-bindings/vapi/r_diff.vapi
rename : swig/vapi/r_flags.deps => r2-bindings/vapi/r_flags.deps
rename : swig/vapi/r_flags.vapi => r2-bindings/vapi/r_flags.vapi
rename : swig/vapi/r_fs.deps => r2-bindings/vapi/r_fs.deps
rename : swig/vapi/r_fs.vapi => r2-bindings/vapi/r_fs.vapi
rename : swig/vapi/r_hash.vapi => r2-bindings/vapi/r_hash.vapi
rename : swig/vapi/r_io.deps => r2-bindings/vapi/r_io.deps
rename : swig/vapi/r_io.vapi => r2-bindings/vapi/r_io.vapi
rename : swig/vapi/r_lang.vapi => r2-bindings/vapi/r_lang.vapi
rename : swig/vapi/r_lib.vapi => r2-bindings/vapi/r_lib.vapi
rename : swig/vapi/r_line.vapi => r2-bindings/vapi/r_line.vapi
rename : swig/vapi/r_parse.deps => r2-bindings/vapi/r_parse.deps
rename : swig/vapi/r_parse.vapi => r2-bindings/vapi/r_parse.vapi
rename : swig/vapi/r_print.vapi => r2-bindings/vapi/r_print.vapi
rename : swig/vapi/r_reg.deps => r2-bindings/vapi/r_reg.deps
rename : swig/vapi/r_reg.vapi => r2-bindings/vapi/r_reg.vapi
rename : swig/vapi/r_search.deps => r2-bindings/vapi/r_search.deps
rename : swig/vapi/r_search.vapi => r2-bindings/vapi/r_search.vapi
rename : swig/vapi/r_sign.vapi => r2-bindings/vapi/r_sign.vapi
rename : swig/vapi/r_socket.vapi => r2-bindings/vapi/r_socket.vapi
rename : swig/vapi/r_syscall.vapi => r2-bindings/vapi/r_syscall.vapi
rename : swig/vapi/r_util.vapi => r2-bindings/vapi/r_util.vapi
rename : swig/vapi/t/Makefile => r2-bindings/vapi/t/Makefile
rename : swig/vapi/t/array.vala => r2-bindings/vapi/t/array.vala
rename : swig/vapi/t/asm.gs => r2-bindings/vapi/t/asm.gs
rename : swig/vapi/t/asm.vala => r2-bindings/vapi/t/asm.vala
rename : swig/vapi/t/asmsearch.vala => r2-bindings/vapi/t/asmsearch.vala
rename : swig/vapi/t/bin.vala => r2-bindings/vapi/t/bin.vala
rename : swig/vapi/t/bintest.vala => r2-bindings/vapi/t/bintest.vala
rename : swig/vapi/t/bwdisassemble.vala => r2-bindings/vapi/t/bwdisassemble.vala
rename : swig/vapi/t/core.vala => r2-bindings/vapi/t/core.vala
rename : swig/vapi/t/db.vala => r2-bindings/vapi/t/db.vala
rename : swig/vapi/t/findops.vala => r2-bindings/vapi/t/findops.vala
rename : swig/vapi/t/hash.vala => r2-bindings/vapi/t/hash.vala
rename : swig/vapi/t/io.vala => r2-bindings/vapi/t/io.vala
rename : swig/vapi/t/lang.vala => r2-bindings/vapi/t/lang.vala
rename : swig/vapi/t/list.vala => r2-bindings/vapi/t/list.vala
rename : swig/vapi/t/list.vapi => r2-bindings/vapi/t/list.vapi
rename : swig/vapi/t/plugin.vala => r2-bindings/vapi/t/plugin.vala
rename : swig/vapi/t/pluginwrap.c => r2-bindings/vapi/t/pluginwrap.c
rename : swig/vapi/t/regs.vala => r2-bindings/vapi/t/regs.vala
rename : swig/vapi/t/reloc.vala => r2-bindings/vapi/t/reloc.vala
rename : swig/vapi/t/rgot.vala => r2-bindings/vapi/t/rgot.vala
rename : swig/vapi/t/sc.vala => r2-bindings/vapi/t/sc.vala
rename : swig/vapi/t/search.gs => r2-bindings/vapi/t/search.gs
rename : swig/vapi/t/search.vala => r2-bindings/vapi/t/search.vala
rename : swig/vapi/t/socket.vala => r2-bindings/vapi/t/socket.vala
2011-05-18 01:35:52 +02:00
pancake
ced931c235 * Check if configure was executed before make
* Added r_cons_set_cup() method to RCons api
  - Enable/Disable terminal scrolling by using the cursor
     addressing mode of the terminal.
  - Those escape codes are terminal specific and not portable
  - Added test program to display cup information
  - Thanks eddyb for noticing!
2011-05-16 01:47:01 +02:00
pancake
7e917da3db * Use $(shell) instead of ``
- Compile time should be a little faster now
* Fix warning in lang_perl
2011-05-15 04:31:08 +02:00
pancake
075b495a5c * Implement basic register profile for OpenBSD
native debugger backend.
* Fix make symstall in BSD systems
  - PWD var looks like a linuxism
2011-04-02 20:03:00 +02:00
pancake
6c822b9090 * Added 'make purge'
* Added pipelined RAnalOp
  - Added r_anal_(op|value)_copy
  - Some minor review of RFS api
2011-03-28 10:24:01 +02:00
earada
f28d12fe25 * Define PFX globally
* Limit block size in print command by cfg.maxbsize bytes (Thanks phr0nak)
2011-03-13 20:27:28 +01:00
pancake
27ecc4bc93 * Fix stuff reported by Debian (thanks sre)
- Do not distribute hidden files
  - Do not install libraries (when they are not libraries)
  - Note MSIL disassembler license to avoid confussion
2011-03-10 09:19:30 +01:00
pancake
b19921c70d * Do not dist 'swig/' in root tarball dist
* Workaround to fix the python-config hell
* Drop the deprecated libr swig package
* Fix build on non-gnu include files
2011-03-09 17:13:27 +01:00
pancake
782452add2 * Fix build and some glitches in visual disasm 2011-03-02 12:33:28 +01:00
pancake
6d5b22c29c * Fix entropy range 0-8 (Thanks Glyn)
- Use 0-255 in pZ
* Fix symstall for pkgconfig
2011-02-28 13:29:04 +01:00
pancake
9ee9ad84e6 * Add install-pkgconfig-symlink target
* Add dummy r_asm_op_free
2011-02-27 21:56:13 +01:00
pancake
c348fe7a8a * Add install-doc-symlink (install fortunes!)
- thanks ash for reporting
* Some indentation fixes in printzoomcallback
* Fix r_flags.vapi
2011-02-17 01:22:15 +01:00
pancake
4db5cded34 * Fix w32dist find command
* Display TODO message in r2 -L
* Implement rax2 -s - and rax2 -
* Honor dbg->tid in many places
* Implement basic stuff for dbg->reason
  - Only w32 and *nix atm
  - Not yet displayed or used
  - Added many new reason types in enum
* Fix w32 register map
* Handle attach:// in io_w32dbg plugin
* Implement w32 process and thread list
  - You can now select the thread
  > dp      # list pids
  > dp=1424 # attach to pid
  > dpt     # list threads
  > dpt=580 # select thread
* Added dummy code to list windows
2010-11-17 00:56:48 +01:00
pancake
1371965ae5 * Added 'w32beta' make target
- Distributes the build of r2 and r2-swig
* Fix some warnings on w32
2010-10-29 03:38:43 +02:00
pancake
9dc6a049b1 * Fix make -j for paralel builds
- use hacky 'waitfordeps.sh' helper script
  - speed up the build process
* Do not build libr2.so by default
  - Do not generate library archives (.a)
  - Fix build dependencies in vm/p/plugins.h
* Added --with-nonpic
  - Enable the .a generation
2010-10-29 03:10:10 +02:00
pancake
85232f4936 * Fix build on w32 2010-10-28 14:11:19 +02:00
pancake
41489e229e * Add 'beta' and 'pub' make targets 2010-10-28 03:30:15 +02:00
pancake
605a522cf4 * Add support for python 2.7 API bindings on Windows
- Fixes some pkgconfig issues
  - Depends on newer valaswig
* Added new target 'w32' and 'w32dist' in swig/
  - Already documented in doc/windows
  - Only works on archlinux. debian support is next
2010-10-18 01:51:00 +02:00
Nibble
3131a9a7cf * Speed up make mrproper 2010-07-13 11:59:55 +02:00
pancake
87841fbe15 * Fix build
* mrproper runs clean too
2010-07-13 11:48:26 +02:00
pancake
affbba8aa2 * Rename r2rc to rarc2
- Moved into binr/rarc2
  - Integrated with symstall
  - rarc2-tool now support -xc and -cx combo
  - Add rarc2.1 manpage
* Add some bugs to review in TODO

--HG--
rename : r2rc/Makefile => binr/rarc2/Makefile
rename : r2rc/README => binr/rarc2/README
rename : r2rc/TODO => binr/rarc2/TODO
rename : r2rc/emit_arm.c => binr/rarc2/emit_arm.c
rename : r2rc/emit_x64.c => binr/rarc2/emit_x64.c
rename : r2rc/emit_x86.c => binr/rarc2/emit_x86.c
rename : r2rc/i/libc.r => binr/rarc2/i/libc.r
rename : r2rc/i/socket.r => binr/rarc2/i/socket.r
rename : r2rc/out.c => binr/rarc2/out.c
rename : r2rc/r2rc-tool => binr/rarc2/rarc2-tool
rename : r2rc/r2rc.c => binr/rarc2/rarc2.c
rename : r2rc/rcc.h => binr/rarc2/rarc2.h
rename : r2rc/t/Makefile => binr/rarc2/t/Makefile
rename : r2rc/t/argv.r => binr/rarc2/t/argv.r
rename : r2rc/t/bytedump.r => binr/rarc2/t/bytedump.r
rename : r2rc/t/data.r => binr/rarc2/t/data.r
rename : r2rc/t/dump.r => binr/rarc2/t/dump.r
rename : r2rc/t/hello.r => binr/rarc2/t/hello.r
rename : r2rc/t/if.r => binr/rarc2/t/if.r
rename : r2rc/t/inline.r => binr/rarc2/t/inline.r
rename : r2rc/t/input.r => binr/rarc2/t/input.r
rename : r2rc/t/loop.r => binr/rarc2/t/loop.r
rename : r2rc/t/ptr.r => binr/rarc2/t/ptr.r
rename : r2rc/t/rawsys.r => binr/rarc2/t/rawsys.r
rename : r2rc/t/rawsys64.r => binr/rarc2/t/rawsys64.r
rename : r2rc/t/regs.r => binr/rarc2/t/regs.r
rename : r2rc/t/ret.r => binr/rarc2/t/ret.r
rename : r2rc/t/room.r => binr/rarc2/t/room.r
rename : r2rc/t/segfault.r => binr/rarc2/t/segfault.r
rename : r2rc/t/shell.r => binr/rarc2/t/shell.r
rename : r2rc/t/sub.r => binr/rarc2/t/sub.r
rename : r2rc/t/syscall.r => binr/rarc2/t/syscall.r
rename : r2rc/test.r => binr/rarc2/test.r
2010-06-28 20:30:20 +02:00
pancake
80fc77a8b4 * Fix w32dist segfault in plugin.dll
* Fix read registers in w32 debugger
  - seek do not seems to work
2010-06-28 02:12:35 +02:00
pancake
c73e43bf40 * Fix print_address function for mips disassembler
* Implement 'gp' register index inside .got section for get_main on mips
* Use more switch() in core/cmd.c
* Simplify some random code
2010-06-27 21:33:11 +02:00
pancake
276f186e7e * Add rafind2.1 manpage
* Many cleanups in the TODO files
2010-06-18 17:52:30 +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
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
eb05e6a6b2 * Move all the r2 programs into binr/
- Little cleanup of the build system
2010-05-29 03:30:36 +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
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
4137587cb3 * Fix compilation under mingw32
- Linking fixed for r_sign and
* Fix some reads out-of-bounds in r_bin_elf
  - Use __strnlen instead of ELF_STRING_LENGTH
  - Some simplifications using macros
* Open plugins in radare2 found in '.' by default
  - Make w32 happy
  - Fix RLib for w32 and local plugin files
* Implement r_sys_cmd_str() for w32
  - Also r_sys_setenv()
* Fix printfs in lib/t example
* win7 syscall list is now default windows one
* Added 'r_sys_perror' to make it portable on *nix and w32
* Rename RLibrary into RLib
2010-04-12 02:22:52 +02: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
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
pancake
de65dc6205 * Integrate r2rc into the build system 2010-02-26 00:51:22 +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
70f2a8f255 * Fix build for on x86-64
* Use ${MAKE} instead of 'make'
* Added 'install' target for swig python
2010-01-22 14:19:10 +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
eb99dd1203 * Many more fixes for the mingw32 port 2010-01-15 13:02:54 +01:00
pancake
8ba7b6b043 * Many build fixes for mingw32
- See doc/windows
* Rename config.mk to global.mk
  - Avoid name collision (cascade includes in rules.mk)
* Added ${EXT_EXE} in some test program directories
* Split rules.mk into config.mk
  - Some scripts just need to get the environ (config.mk)
  - They dont need the rules

--HG--
rename : config.mk => global.mk
2010-01-15 01:32:28 +01:00
pancake
ee25485148 * rm plugins.cfg in mrproper
* Add mk/sloc.mk in config-user.acr
* Fix infinite loop read error issue in:
  - echo x | radare2 /bin/ls
2010-01-13 23:53:34 +01:00
pancake
3bc0212ee6 * Initial import of the 'configure-plugins' script
- accepts --static and --shared to setup which plugins
    you want to build statically in the library or dynamically
  - normalize .mk and plugin file names to adopt a single standard
  - WARNING: huge commit
* Added 'mk/sloc.mk' with 'sloc' target to count
  lines with sloccount everywhere (yeah!)

--HG--
rename : libr/asm/p/x86bea.mk => libr/asm/p/x86_bea.mk
rename : libr/asm/p/x86nasm.mk => libr/asm/p/x86_nasm.mk
rename : libr/asm/p/x86olly.mk => libr/asm/p/x86_olly.mk
rename : libr/config.h => libr/config.h.head
rename : libr/config.mk => libr/config.mk.head
rename : libr/debug/p/dbg_gdb.c => libr/debug/p/debug_gdb.c
rename : libr/debug/p/dbg_ptrace.c => libr/debug/p/debug_ptrace.c
rename : libr/debug/p/dbg_libgdbwrap/Makefile => libr/debug/p/libgdbwrap/Makefile
rename : libr/debug/p/dbg_libgdbwrap/README => libr/debug/p/libgdbwrap/README
rename : libr/debug/p/dbg_libgdbwrap/client.c => libr/debug/p/libgdbwrap/client.c
rename : libr/debug/p/dbg_libgdbwrap/gdbwrapper.c => libr/debug/p/libgdbwrap/gdbwrapper.c
rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-internals.h => libr/debug/p/libgdbwrap/include/gdbwrapper-internals.h
rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper-stddef.h => libr/debug/p/libgdbwrap/include/gdbwrapper-stddef.h
rename : libr/debug/p/dbg_libgdbwrap/include/gdbwrapper.h => libr/debug/p/libgdbwrap/include/gdbwrapper.h
rename : libr/debug/p/dbg_libgdbwrap/include/libaspect.h => libr/debug/p/libgdbwrap/include/libaspect.h
rename : libr/debug/p/dbg_libgdbwrap/include/libe2dbg.h => libr/debug/p/libgdbwrap/include/libe2dbg.h
rename : libr/debug/p/dbg_libgdbwrap/include/revm.h => libr/debug/p/libgdbwrap/include/revm.h
rename : libr/debug/p/dbg_libgdbwrap/interface.c => libr/debug/p/libgdbwrap/interface.c
rename : libr/io/p/dbg.mk => libr/io/p/debug.mk
rename : libr/io/p/io_dbg.c => libr/io/p/io_debug.c
2010-01-13 23:42:49 +01:00
pancake
28adb73802 * Hard simplification of the swig build system
* Add swig dependencies to the default build
* Check for valaswig and swig at configure time
* Some random vapi fixes
* Upgrade to acr 0.8
  - Add --without-valaswig flag to disable the build
    of the python/perl/ruby bindings
2010-01-12 19:57:33 +01:00
pancake
c67e0dec3d * Version bumped to 0.3b - development version
* Update ChangeLog
* Fix make dist
2009-09-25 04:13:40 +02:00
pancake
5d5fec5084 * Single valadoc by default
* Added SEGment register types (r_reg+vapi)
* depgraph.pl is now generating .gml output
2009-09-21 15:39:10 +02:00
pancake
b881d4b080 * Implementate r_reg.vapi (register vala api)
* Fix x86-linux using sys/user.h and getoffset() macro
* Some more work on r_mem_copybits
  - Bit level registers are now working (get/set)
  - reg/t test example is now getting/settings bit flags
* Added support for full serialization of all registers
2009-09-19 23:41:25 +02:00
pancake
16cf12c8d6 * Fixtures for the r_io API (breaking ABI and so :)
- Standalone test program is now able to debug a process and read mapped memory
  - Fixes in the r_io and ptrace plugin sides
* Added 'make vdoc' target
2009-09-07 20:01:34 +00:00
pancake
a1f45dbf8a * Add support for static plugins to r_debug
- r_debug_ptrace is now static by default
* Some code cleanup and warnings removal
* Added hg-utils.mk and MKPLUGINS directive in user-config
* Initial implementation of dbg_gdb r_debug plugin
  - Import ERESI's libgdbwrap from r1
* Add some missing files (asm/p/fastcall_mips.h, core/t/ragrep2.c)
* Added r_str_bool helper to get "true"/"false" from int
2009-08-22 01:54:24 +00:00
pancake
1c3a319c53 * Added 'pkgcfg' directory with autogenerated .pc files
- 'make pkgcfg' does that automagically :)
* Implement r_mem_mem function in r_util
2009-07-16 00:30:20 +00:00
pancake
0509263cbd * Initial import of r_db 2009-06-15 02:44:05 +00:00
pancake
485e946b3c * Sync changelog for 0.2
* RELEASE=1
2009-04-25 19:43:47 +00:00
pancake
1541a3d11d * Release 0.2 2009-04-25 17:59:52 +00:00
pancake
9f78bed623 * Fix make dist
* Added make shot target
2009-04-25 11:29:39 +00:00
Nibble
a27d81e42b * Fixed build 2009-04-20 13:11:50 +02:00
pancake/fluendo
463e32a066 * Apply elektranox patch for the makefiles
- replace mkdir with INSTALL_.. thanks!
2009-04-20 13:02:04 +02:00
pancake
1129f1a2fc * Remove documentation in the uninstall target
* Add 'autogen.sh' to ease the use of 'acr'
  - Added USERCC and USEROSTYPE configuration flags
    --with-compiler : select a compiler from mk/
    --with-ostype   : select a target OS (not required for ming32 f.ex)
* Add language bindings APIs from radare1
  - Fix some issues from the ruby language binding
  - Checks if file exists before slurping and causing a ruby segfault
  - Added language destructor (.fini pointer)
* Rename str_clean into r_str_chop
* Initial work on the port for ming-w32
* Show flags instead of bytes in disassembly (smart disasm)
* New r_sys_{get|set}env (for portability issues
* Added flags -i and -l to radare2
* Fix warnings and random code cleanup
* Added r_flag_get_i
2009-04-03 11:11:17 +00:00
pancake
d41e40ba05 * Huge build system refactoring
- Make proper use of the config-user.mk
  - Accelerate build by manually checking timestamps of bin/lib to objs/srcs
  - Use '-MD' by default
  - Lot of minor fixups done in multiple places
  - Fix PREFIX/LIBDIR installation/loading problems for plugins
  - Some segfaults has been fixed
  - Use R_API in r_core and r_lib
* Add 'vm' to be build by libr by default
* Add 'libs.c' in core/ to manage plugins from core
  - Added 'dir.plugins'
  - Make '-e' and '-L' radare2 flags work
  - Plugins are not loaded multiple times now
* Added r_lib_types string array containing plugin types strings
* Minor fixups in r_debug
  - Properly check 'contsc' delegate
  - Separate r_debug_wait()
* Rename dbg-ptrace into dbg_ptrace

--HG--
rename : libr/debug/p/dbg-ptrace.c => libr/debug/p/dbg_ptrace.c
2009-04-01 00:28:13 +00:00
pancake
e76216e92a * Fix 'install' target (missing double '$')
* Add STATIC_DEBUG and RUNTIME_DEBUG config.mk variables
  - Mirrored in C as R_DEBUG and R_RTDEBUG
  - Defines IFDBG and IFRTDBG macros
  - used in r_lib, checks for RLIB_RTDEBUG environment variable
* Added -f and -L flags to radare2
* Added initial dummy work on r_crypto module
  - Added 'aes' algorithm
* Added EXTRA_TARGETS and EXTRA_CLEAN targets in makefiles
  to build extra programs or libraries in a single directory
* Initial working stuff with hg's bdiff.c
  - Working as a line based diffing tool. 'linediff'
  - Added 2 files for testing linediff
* Prefix io plugins with io_
  - Added ewf and shm io plugins
* Prefix lang plugins with lang_
2009-03-31 00:50:02 +00:00
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
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
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
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
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
pancake
19a062528e * Added DESTDIR and 'uninstall' make targets 2009-03-06 00:38:23 +00:00
pancake/fluendo
7da2562c91 * Add 'dist' and 'shot' make targets
* Bigger console buffer by default
2009-03-05 13:15:28 +01:00
pancake
05b40f0e75 * Fix build issues - fix build order
* Plugin directory renamed to 'p'
* Add env.sh to enter into a "radare2 development shell"

--HG--
rename : libr/io/plugins/Makefile => libr/io/p/Makefile
rename : libr/io/plugins/README => libr/io/p/README
rename : libr/io/plugins/dbg.c => libr/io/p/dbg.c
rename : libr/io/plugins/malloc.c => libr/io/p/malloc.c
rename : libr/io/plugins/ptrace.c => libr/io/p/ptrace.c
2009-02-05 22:28:33 +01:00
pancake
c5e588e6e5 * Initial import of libr
- Previous commits has been reported in the ChangeLog file
  - hg log has been lost (moved inside ChangeLog)
  - Old radare1 repository has removed all the libr
2009-02-05 22:08:46 +01:00