Commit graph

382 commits

Author SHA1 Message Date
Maijin
80171b0dc5 Cleaning r_util.h 2016-07-27 16:55:20 +02:00
pancake
4831b504bc Use proper relative includes in r_util.h 2016-07-27 12:55:05 +02:00
Jeffrey Crowell
9fd13fba06 move some string related macros to r_str.h 2016-07-11 23:00:55 -04:00
Maijin
306a790187 Separate more r_* from r_util 2016-07-10 15:02:01 +02:00
Maijin
a38aec4568 Separate more r_* from r_util 2016-07-10 14:22:15 +02:00
Jeffrey Crowell
fa75406fa2 move r_graph header out of r_util.h 2016-07-09 19:59:37 -04:00
Jeffrey Crowell
13f52c16f7 separate debruijn to it's own header file (#5318) 2016-07-09 11:58:30 -04:00
Rakholiya Jenish
339a5b7b18 fix iZ and negative o for large files (#5242)
correct the add section check

keep commented part to it's original code

int to ut64

minor fix and limit buffer size in case file size cannot be allocted

remove section check

show size in readable format

minor changes
2016-07-05 12:46:28 +02:00
Jeffrey Crowell
769bcf98f6 add RBitmap to the rapi (#5176) 2016-06-19 11:10:59 +02:00
Jeffrey Crowell
32037244ce kill r_str_trim 2016-06-09 23:43:46 +00:00
Jeffrey Crowell
a25ef5b3bb remove duplicate char counting functions in r_util 2016-06-08 16:40:44 +00:00
Jeffrey Crowell
0e688df308 style fixup for str.c r_util.h 2016-06-08 01:39:07 -04:00
Jeffrey Crowell
f92b37956a fix eval command truncating binary to 8 bits
closes #4975

add new function r_str_bits64 to convert any number to a 64bit binary
value.
2016-06-08 01:31:55 -04:00
Sushant Dinesh
cf456f4414 Fixes to ESIL (#4951)
- Reverted ADD and ADC to set flags based on internal variables
- Fixed calculation of carry and zero flags from internal vars
- Revert "ESIL: add floating point instructions (#4794)"
  This reverts commit 964d12b392. Since we
  decided that floating point operations will be implemented using separate
  ops, these unions are no longer needed. This commit introduced a regression
  in setting esil->old and esil->cur
- Style fixes
2016-05-23 16:39:54 +02:00
Sven Steinbauer
901b145f33 Inline r_swap_* functions [fix #4895] (#4902) 2016-05-18 10:13:26 +02:00
Joshua J. Drake
83a76b7158 Propagate location information in perror
The "r_sys_perror" function previously would use "perror" on UNIX resulting in
location information of the "perror" callsite being shown. Renaming
"r_sys_perror" to "r_sys_perror_str" and replacing the original identifier with
a macro ensures that the displayed information is useful.

Further, this addreses a TODO that makes this functionality work on both
Windows and UNIX by moving these macros outside of the UNIX #if. The (now)
"r_sys_perror_str" is already implemented for both platforms. Let's use it!
2016-05-14 08:42:56 +03:00
pancake
35ec317f2f Support shift << and >> in RNumCalc 2016-05-11 00:28:42 +02:00
Damien Zammit
964d12b392 ESIL: add floating point instructions (#4794) 2016-05-07 12:32:06 +02:00
Rakholiya Jenish
3019bb477c Add support for punycode via woE and woD and rahash2
Also add aes-cbc support by getting IV from user
2016-05-07 12:31:13 +02:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
Rakholiya Jenish
27fba6fa10 Add crypto plugin for base64 and base91
update error occurence.
2016-04-13 10:34:55 +02:00
Álvaro Felipe Melchor
b0c6ae4409 Fix #4295 and #4155
This commit is the first attempt to improve relocation
recognition when dealing with relocatables elf-files
2016-04-04 23:09:58 +02:00
pancake
32162ef393 Add r_buf_new_file API 2016-04-04 22:30:11 +02:00
Lukas Dresel
cb60759219 Removed unnecessary r_lib.h dependency in r_util.h 2016-04-04 21:26:20 +02:00
pancake
d092be54e2 API fixes for bochs and honor sandbox 2016-03-27 13:43:51 +02:00
Mizari
59d614edf1 Added drw/arw command + r_reg_arena_set_bytes 2016-03-22 11:48:42 +01:00
Evan Shaw
288763f69a Count hex digits as numbers in parse filter
Without this we chop off number operands as soon as a hex digit is seen.

Also fix and use a previously unused macro.
2016-03-17 11:13:30 +01:00
Adr1
ab5792d132 RBin: improving versioninfo
Store ELF versioninfo in Sdb.
Display VS_FIXEDFILEINFO for PE.
2016-03-16 18:10:49 +01:00
Adr1
611c3d1752 RBin: Display File Version info 2016-03-04 01:15:56 +01:00
pancake
100df3bb32 Better MIPS32BE ELF relocs, add Rx regs in mips.cs and add scr.wheelnkey, nN defaults to flag now 2016-02-21 01:56:50 +01:00
pancake
fd359e9121 Implement radiff2 -D and optimize r_strbuf 2016-02-15 23:51:20 +01:00
pancake
805e3f26e8 Fixes for lldb/debugserver on x86-64 2016-02-03 12:09:58 +01:00
pancake
bea71d7074 Add ap command to find prelude for current offset 2016-01-24 03:05:27 +01:00
Goncalo Carvalho
c4ea7fd354 convert negative fp numbers to hex and add static assert macro 2016-01-23 23:20:52 +01:00
pancake
de22aa46f2 Fix COV with boolified r_io_creat 2016-01-19 13:16:24 +01:00
pancake
6f346b6d6d Fix #3901 - Cannot debug directories and follow symlinks 2016-01-03 01:28:02 +01:00
zlowram
91611e8cbb Implemented slc subcommand and slc? help. prl now uses lines cache if
available.
2015-12-24 13:18:09 +01:00
Riccardo Schirone
0407aab9c5 core/core: add afvn autocompletion
cons/dietline: add support for autocompletion in the middle of the
input, without destroying the other part of the string
2015-11-27 12:57:39 +01:00
pancake
cab871f3e6 Fix #650 - asm.bbline - blankline on every basic block 2015-11-23 01:40:35 +01:00
pancake
ba74db8e3a Initial implementation of CC, 2015-11-18 17:03:46 +01:00
pancake
40ab1e2be6 Fix #3701 - Implement r_num_tail for dcu 2015-11-17 22:38:01 +01:00
pancake
a916a735e9 Fix #3682 - Handle 'x' char values by RNum 2015-11-12 00:20:37 +01:00
Anton Kochkov
60e1151ed9 Fix Cygwin mkdir 2015-11-10 18:41:32 +03:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
0648cea3e5 Refactoring of the minidump code for portability and -1500LOC 2015-10-31 17:27:46 +01:00
condret
6b9de1a741 implement r_str_replace_in (see #3544) 2015-10-23 19:32:54 +00:00
pancake
016fff515a Fix and optimize f-* issue 2015-10-23 00:25:13 +02:00
pancake
3de77ad6e6 Initial support of dbg.libs/unlibs for Linux/OSX 2015-10-22 04:48:56 +02:00
condret
7d7024b2c6 initial commit for gameboy-assembler 2015-10-21 18:22:14 +00:00
pancake
6ed80ae39b Update sdb and rename rmkdir->mkdirp 2015-10-19 00:25:39 +02:00