Commit Graph

503 Commits

Author SHA1 Message Date
Nibble
57be33ff76 * Build
- Remove remaining r_var.pc.acr
  - Remove references to r_var from configure.acr
* r_anal
  - More work on r_anal_var_*
2010-03-11 19:52:05 +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
Nibble
ca66fe440d * r_util
- Fix r_buf_write_at
* r_bin
  - Some fixups in section resize (now is fully working)
  - Minor r_bin_wr_output refactoring
2010-03-11 13:18:49 +01:00
Nibble
423d6a75f4 * r_bin
- More work on r_bin write
  - Add elf & elf64 section resize
    Needs refactoring and split into basic operations
* rabin2
  - Rename flag -o to -O for operations
  - Add flag -o for output file
  - Add resize operation (-O r/.data/1024) for testing purposes
2010-03-11 02:14:34 +01:00
pancake
b65fbeb772 * Add some missing function signatures
- Fixes some warnings
* Select thread that returns the wait()
  - Useful for multi-threaded or multi-process debugging
2010-03-11 01:04:59 +01:00
pancake
7572171516 * Add dbg.stopthreads configuration variable
- Stop all threads by default when a breakpoint is handled
2010-03-11 00:51:32 +01:00
pancake
f00bf9495e * Implement basic thread list and attach support
- Implement 'dt' command
  - Allows to list threads of specified pid or current one
    - Only for linux atm
  - Tricky non-intrusive way to get threads for pid
* libr/th/t/test.c is now helpful for debugging threads
* Threads are not stopped when the debugger breaks
2010-03-11 00:29:36 +01:00
pancake
4726b8f3d8 * Do not install lib/t/plugin.so as a library 2010-03-10 17:21:20 +01:00
Nibble
6303a8d10b * Remove references to bea plugins from r_anal & r_asm 2010-03-10 15:15:50 +01:00
Nibble
35592a60e9 * r_asm
- Move ppc_disasm and x86_bea to radare2-extras
  - Add gnu ppc disassembler plugin
* r_anal
  - Move x86_bea plugin to radare2-extras
2010-03-10 14:56:45 +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
Nibble
bde38868c1 * Huge refactoring of r_bin using r_list instead of r_flist
- Reduce loc
  - Avoid double iterations
  - Allow to add/remove objects easily from r_bin_write
2010-03-10 11:01:38 +01:00
Nibble
7e80161b2c * Merge 2010-03-10 09:21:44 +01:00
pancake
9410d21892 * Use DESTDIR in swig make install 2010-03-09 22:32:49 +01:00
Nibble
77f9377d1d * r_bin
- More work on write support
  - Initial API design
  - Fix typo in bin_write_elf.c filename

--HG--
rename : libr/bin/p/bin_wite_elf.c => libr/bin/p/bin_write_elf.c
2010-03-09 15:12:04 +01:00
Nibble
30a31d3970 * r_util
- Fix memory leak in r_list_free
  - Update test in list.c
* r_bin
  - Add dummy function for elf section resize
2010-03-08 19:40:21 +01:00
pancake
c882e5e170 * Use DESTDIR in r2rc install 2010-03-08 16:33:42 +01:00
pancake
a19c5c6197 * Added linux-arm syscalls
* Lot of syntax cleanup (reduce locs, unify syntax)
2010-03-08 12:45:22 +01:00
Nibble
7e5e81e3cd * r_list
- Fix r_list_foreach
* r_anal
  - Move p/arm.h to arch/arm/arm.h
  - Add arm.mk to p/Makefile
* r_core_anal & r_anal
  - Refactoring using r_list_foreach

--HG--
rename : libr/anal/p/arm.h => libr/anal/arch/arm/arm.h
2010-03-08 12:31:14 +01:00
pancake
1914c38729 * Added missing arm.h 2010-03-08 11:05:58 +01:00
pancake
023bcce689 * Added copypasta 'arm' code analysis for r_anal 2010-03-08 10:53:15 +01:00
pancake
1341620c73 * Rename cons/filter.c to grep.c
- Some random changes.. with no success
  - Grepping console buffer is not working
* Cleanup the 'ds' and 'dp' commands
  - Implement 'dpa' to attach
  - Allow to list childrens of pid
  - Also list all attachable pids
* Fix segfault by leaking.. needs some cleanup
* Fix r_debug_reg_list (NULL) issue

--HG--
rename : libr/cons/filter.c => libr/cons/grep.c
2010-03-08 00:18:58 +01:00
Nibble
420acc3ff3 * Add dummy local-var analysis stuff to r_anal
* Check return value of r_anal_set_bits in asm.bits callback
2010-03-07 14:00:26 +01:00
Nibble
bf2a8120ea * r_core
- Set r_anal bits in asm.bits callback
* r_core_anal
  - Improve xref resolution
* r_anal
  - Fix infinite loops in r_anal_bb and r_anal_fcn
  - Some code cleanup in bea plugin
  - More improvements in code analysis
* r_bin
  - Mark symbols as functions in r_bin_pe
* rabin2
  - Print 'af+' commands and 'fcn.' flags for all functions
    in -rsi output
2010-03-05 18:55:39 +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
e4edce88e1 * Merge 2010-03-05 02:06:25 +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
pancake
1e1f3c790b * Upgrade revision state to 0.4b (beta!)
- Testers are welcome!
* Remove -O2 CFLAGS by default to speed up (oops :)
2010-03-05 01:50:45 +01:00
pancake
13774c2bd5 * More fixes for busybox tr
* Initial blind implementation of w32 debugger
  - r_cons now handles ^C in w32 console
  - not yet tested, just blind code typing
* Implement 'dp' command to list processes (pids)
  - Implemented RDebugPid stuff
  - dp=394 # is used to attach
  - dp 0 # to list all attachable pids
  - dp # list current used pid
* Added not-yet-implemented threads() callback in RDebugHandle
* Fix r_list_free callback handler
* Fix again the 'dr=' command :/
* Cleanup the help of 'd?' and 'dm', 'dp'
* Use -O2 by default ?
2010-03-05 01:49:12 +01:00
pancake
f9675b000c * Do not use non-posix extensions of 'tr' 2010-03-04 22:01:15 +01:00
Nibble
f84a95fc92 * Add r_bin test to lua bindings 2010-03-04 17:49:47 +01:00
pancake/fluendo
d431b3721b * Fix build of debugger on non-x86-32 (oops)
* Fix difference between EOL and EOF (-1, -2) in dietline
  - Fixes prompt issues in r2 shell
* Display 16 0s in 64bit registers
  - Fixes dr= in 64bit debugger
  - Fix double-newline issue in dr=
2010-03-04 12:43:16 +01:00
Nibble
46cffd7cdb * Fix bindings build
- Update r_syscall and r_search vapis
2010-03-04 11:30:45 +01:00
pancake
c307258ebb * Implement 'dr=' command to print regs in columns
- Use it in visual debug mode
2010-03-04 02:11:54 +01:00
pancake
87772770e2 * Build and check 'lua' bindings 2010-03-04 01:55:15 +01:00
pancake
fcbcc00d1e * Huge refactoring on r_syscall
- Integrated with core 'as' command. as? for help
  - Display formatted parametters of syscalls
  - Needs to fully implement this everywhere
  - Syscall argument parsing is not yet complete (<4args)
    - r_debug_arg_{set|get}
* Implement continue until syscall on Linux debugger backend
* Lot of syntax cleanup to use the new code convention
  - Clean r_sign, r_search, r_syscall
* Define global R_SYS_ARCH, _OS and _BITS
  - Handle asm.os and asm.arch to hook r_syscall plugins
  - Display 8 or 16 zeros depending on asm.bits
  - Added r_str_filter () to filter nonprintable chars

--HG--
rename : libr/search/stripstr.c => libr/search/strings.c
2010-03-04 01:46:25 +01:00
Nibble
be3c941d30 * r_core
- Add command "sb" seek aligned to bb start
  - Nice 'abl' and 'ab*' output
  - Fix 'af+' parsing
2010-03-03 18:05:24 +01:00
pancake/fluendo
4941781bd7 * Full implementation of the 64bit register profile for linux
* Simplify debugger plugin arch/bits info
* Display 64bit registers with 'dr'
  - Padding with 16 0's instead of 8
2010-03-03 14:48:17 +01:00
Nibble
f0e1c8ef78 * rabin2
- Flag imports and symbols as fcn. under the namespace 'functions'
* r_core_anal
  - Flag analyzed function
  - Implement agf
  - Minor fixup (check if r_io_read_at returns blocksize)
* r_util
  - Fix r_str_word_getfirst
2010-03-03 14:35:18 +01:00
pancake/fluendo
ef9224263a * Fix segfault in r_bp_get_bytes when used in loops
* Fix RRange vapi definition
* Remove dctl command. (dct with no argument)
* Add watch.o in bp/Makefile.. lacks implementation
2010-03-03 13:34:38 +01:00
Nibble
0a4c3b2427 * Add 'af+' commands to "rabin2 -rsi" output
* Set symbols type as FUNC in pe and mach0
2010-03-03 12:52:05 +01:00
Nibble
92eb296f9f * More work on command 'af'
- now refs and xrefs are working
2010-03-03 12:35:23 +01:00
Nibble
f163a08aea * r_anal
- Add r_anal_fcn
* r_core
  - Implement 'af' subcommands
  - 'af @ [addr]' needs more work
2010-03-03 12:08:27 +01:00
pancake
010695c5b9 * Added 'dct' and 'dctl' commands for touchtrace
* Added r_file_basename helper
* Random syntax cleanups
2010-03-03 11:35:03 +01:00
Nibble
6ac646e0ae * Fix typo in the help message of cmd 'a' 2010-03-03 03:12:24 +01:00
Nibble
2c858d2b93 * r_core
- Reorganize help of cmd 'a'
  - Add commands:
    ab+ [addr] [size] [jump] [fail] ; Add basic block
    abl ; List basic blocks
    ab* ; Output radare commands
  - Minor fixups in ag (add r_cons_flush)
2010-03-03 03:03:01 +01:00
pancake
b4e5318705 * Exterminate r_range references and fix build 2010-03-03 02:45:55 +01:00
pancake
08ffce4865 * Initial implementation of the r_bp_traptrace API
- Added endianness in r_bp
  - Add breakpoints for mips and ppc
  - Needs to be used from r_core (dbt?)
  - Added dummy bp_watch api (WIP: needs access to r_reg)
* Merge r_range inside r_util
* Added BIT_{SET|CHK} helpers in r_types_base
  - Define ST32_MAX

--HG--
rename : libr/range/range.c => libr/util/range.c
2010-03-03 02:41:41 +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