Commit Graph

45 Commits

Author SHA1 Message Date
pancake
1ca2b661df * Some more fixes for python bindings 2010-03-13 22:36:04 +01:00
Nibble
ed94bdcb14 * r_bin
- Add helpers for info->dbg_info
* vapis
  - Add r_hex_* stuff to r_util.vapi under RHex
  - Update r_bin.vapi
* bindings
  - Add target "install-lua" to Makefile
2010-03-13 20:25:03 +01:00
Nibble
379128a1a5 * Swig
- Fix ruby installation path
  - Include global.mk and user-config.mk in Makefile
2010-03-13 13:09:44 +01:00
pancake
9a58112397 * Fix swig bindings
- Fix python installation
2010-03-12 19:33:56 +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
6c12fb4287 * r_list
- Add *_unref macros (vala bindings)
  - Add function r_list_free and remove macro
* vapi
  - Update r_bin.vapi
  - Rewrite r_list stuff in r_util.vapi
* swig
  - Fix installation paths in Makefile
2010-03-10 13:23:43 +01:00
pancake
9410d21892 * Use DESTDIR in swig make install 2010-03-09 22:32:49 +01:00
Nibble
cacfd691c3 * Fix xref issues in functions with size=0
* Fix "Invalid command" in foreach (@@)
* Fix set arch+bits
* Update r_bin test in python bindings
2010-03-05 13:18:44 +01:00
Nibble
ac957c4f32 * r_core_anal
- Print unconditional jumps arrows in blue
* Reorganize bindings tests

--HG--
rename : swig/test/perl/bin.pl => swig/perl/test-r_bin.pl
rename : swig/test/python/bp.py => swig/python/test-r_bp2.py
rename : swig/test/python/num.py => swig/python/test-r_num.py
rename : swig/test/ruby/bin.rb => swig/ruby/test-r_bin.rb
2010-03-05 11:06:07 +01:00
Nibble
974e9707c6 * Build
- Fix configure-plugins ([a-Z] -> [A-Z])
* Bindings
  - Make perl r_bin test work
  - In lua r_bin test open "/bin/ls" by default if
    arg[1] is not given
2010-03-05 02:03:54 +01:00
Nibble
f84a95fc92 * Add r_bin test to lua bindings 2010-03-04 17:49:47 +01:00
pancake
87772770e2 * Build and check 'lua' bindings 2010-03-04 01:55:15 +01:00
pancake
c50ea5b5a9 * Added support for LUA bindings
- Simple test program for r_bp
* Fix debugger build on arm/mips/powerpc
2010-03-03 00:13:22 +01:00
pancake
05df350346 * Fix build and issue related to swig checklangs 2010-03-02 12:34:23 +01:00
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
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
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
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
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
Nibble
bf35f03ac8 * Fix bindings Makefile to support ruby1.9.0 2010-02-12 02:13:07 +01:00
pancake
54ada0d893 * Fix perl bindings installation
- Fix test examples
2010-02-12 01:17:31 +01:00
pancake
648f8ebe23 * Fix 'const char*' issue in valaswig bindings
- 'unowned string' is the correct vala type
  - Depends on valaswig tip
  - type checking is now more strict
* Build libr.so again for swig bindings
* Added test-r_bin.py
2010-02-12 00:43:11 +01:00
Nibble
d1aceaaa80 * Use valaswig-cc -x for generating bindings (iterator support and so)
* Remove deprecated r_bin.i.experimental
* Define r_array functions in r_array.h as inline static (list.h like)
* Minor fixups in some vapis and headers
* Update python examples
* Exclude problematic libs from swig/rules.mk (temporary)
2010-02-11 15:03:10 +01:00
pancake
4bbe54c148 * Added dummy flag -r in radiff
- Needs merge code from ired/bdiff
* Fix build of various vapi/t files
2010-02-10 00:09:48 +01:00
Nibble
a85474856c * Initial implementation of generic iterators
- Take a look at r_bin.i.experimental
* Rename "class" to "bclass" in r_bin to avoid troubles with c++
* Fix cast in list.h
2010-02-08 11:28:17 +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
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/fluendo
cfae42cb27 * Fix 'clean' and 'ruby' targets in swig/ 2010-01-19 19:53:03 +01:00
pancake
8e4364eb9a * Check for supported langs before using valaswig
- Uses valaswig-cc --test
2010-01-18 20:38:30 +01:00
pancake
eb99dd1203 * Many more fixes for the mingw32 port 2010-01-15 13:02:54 +01:00
pancake
ba848ec5dd * Enhace the output of 'make sloc'
* Added test program for r_hash from python
2010-01-14 23:31:39 +01:00
pancake
f2c3cea367 * Drop bashisms from configure-plugins
* Fix signature for fastcall() in r_asm vapi
* Fix compilation of swig modules without having to install libr
* Fix compilation of swig language modules
  - New target dependency check for make
* Thanks graz for reporting!
2010-01-14 19:15:36 +01:00
pancake
607dd7ea99 * Add missing swig/rules.mk (thanks graz again ;) 2010-01-14 12:37:41 +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
c326db2e77 * Integration with valaswig for many libraries
- typedef function pointers in r_search (rSearchCallback)
  - hide R_API stuff as it should in many .h files
  - typedef classes in rCore, rSearch
* Add perl, ruby, python examples for r_asm and r_bp
  - Many other libraries are compiled by default
* Adapt r_asm vapi to the current C api (massemble returns rAsmCode)
  - dynamically allocatable string buffer
* Rename seek->offset to avoid collisions
2010-01-12 02:12:18 +01:00
pancake
e60fbaf7ee * Fix signature for r_bp.list ()
* Add swig/TODO describing some steps for it
2010-01-11 12:22:00 +01:00
pancake
ba0fcc1d03 * Some more work on valaswig integratio
* Add perl backend bindings for swig/
* Add minimal (one test) test suite for py/pl

--HG--
rename : swig/t.py => swig/test/python/num.py
2010-01-04 13:11:48 +01:00
pancake
eb0793c2b1 * Huge code cleanup and refactor for valaswig
- Some APIs has changed (r_hash)
  - Vapis have been reviewed
  - And more
2010-01-04 01:25:52 +01:00
pancake
692f5bbb54 * Fix segfault in quit command (thanks whats)
* Minor fix in r_bp vapi
2009-12-30 10:56:41 +01:00
pancake
82eb30ad04 * Huge code refactoring to adapt interfaces for valaswig
- hg clone http://hg.youterm.com/valaswig
* typedef all structs as r_asm_item_t -> rAsmItem
  - Sync typedefs with classnames for vala and valaswig interfaces
  - Needs more work and testing
  - C code keeps fully compatible
* New script to build valaswig bindings (swig/libr-swig.sh)
  - Needs integration with 'make test'
  - This will help to create a decent unit testing framework
    to find bugs in bindings and enhace the design of APIs
    from a centralized way keeping compatibility for all the
    languages supported by swig (c#, python, java, ruby, perl, ..)
* Fix vala test programs build
2009-12-24 03:17:53 +01:00
pancake
78dbab76d6 * Added basic working example in swig-python for r_util
* Add _write and _puts methods for r_socket api
  - fgets -> gets
  - fix r_socket_printf
* More random fixes
* typedef all structures in r_util
2009-12-22 13:27:43 +01:00
pancake/fluendo
a387e654e1 * Initial import of the swig test case
* Fix r_util for r_str stuff
2009-12-16 20:14:06 +01:00