Commit Graph

271 Commits

Author SHA1 Message Date
radare 3099a82256
Hide 128reg warnings and use rgb: instead of # in pal test (#16220) 2020-03-16 13:21:54 +01:00
Khairulmizam Samsudin bb389101da
Make r_reg_get_list() search harder (#16202) ##reg 2020-03-13 12:01:54 +01:00
Khairulmizam Samsudin d6fa5a9442
Enhance r_reg_get_pack() and r_reg_set_pack() (#16172)
* Add warning if packbits larger than 64bit
* Fix out of bound checking to consider max packed_size
2020-03-10 10:35:09 +01:00
radare 72093ac706
Fix #16138 - Do not preincrement when it's not necessary (#16151) 2020-03-05 19:06:59 +01:00
radare 1be8f02906
Add test for r_reg_get_value() and r_reg_set_value() (#16136) ##test 2020-03-05 14:42:47 +01:00
Khairulmizam Samsudin ae1ef3ffbe
Create RReg test unit (#16081)
* Add test for r_reg_set_name() and r_reg_get_name()
* Add test for r_reg_set_profile_string()
* Add test for r_reg_setv() and r_reg_getv()
2020-03-02 13:39:47 +08:00
Xiao Di Guan 3a0dd576c0 Fix bounds check for flag registers in last byte of arena (#12949) (#15893) 2020-01-26 16:19:19 +01:00
yossizap 71669c2cb3 Added register specific comment parsing to register profiles ##debug 2020-01-14 11:35:13 +01:00
yossizap 3c0267fc0a Fix gdbr's reg_write and reg_next_diff for reverse stepping ##debug
Writing registers with gdbr worked with single registers because
reg_next_diff started at delta 0 and only had to run the diff once for
the single register that was changed. When running reverse
stepping/continue, multiple registers are changed at once so
r_reg_next_diff would fail every time due to incorrect offset calculation.
The new r_reg_next_diff also support different register sizes to restore
all registers correctly.
The endianity swapping part from reg_write isn't needed since the arena
is the return value of 'g' which is already in the correct target byte
order (see: https://sourceware.org/gdb/onlinedocs/gdb/Packets.html#read-registers-packet)
2019-11-18 22:56:56 -06:00
Armin Weihbold 82047cc580 Add experimental ymm regs support for linux-x64 and extend drm command ##debug 2019-11-07 17:23:18 +01:00
Armin Weihbold 1015d9dfe4 Refactor `drm` to be ready for the YMM registers (#15394) 2019-11-01 02:56:14 +01:00
pancake 4b2bf8dccd Fix assert 2019-10-30 23:33:33 +01:00
pancake 23540846db Add some asserts in rreg 2019-10-30 20:17:00 +01:00
Armin Weihbold b9874fb102 Add support for setting xmm registers on linux (#15365) ##debug 2019-10-27 17:38:36 +01:00
Florian Märkl aad2a2c79e Link sdb fully into r_util in meson (#15338) ##build 2019-10-23 15:52:19 +02:00
Riccardo Schirone 3afba69a5b r_reg_get_pack/r_reg_set_pack are not able to deal with 128 packbits ##debug 2019-10-22 23:09:35 +02:00
pancake 7bcac956b1 Fix zero register set issue ##r2wars
aer x0=0;aer zr=0xffffffff;aer?x0
2019-09-06 18:17:30 +02:00
pancake 3113d2acaf Massage two more assertions 2019-08-30 15:24:35 +02:00
pancake ff7b52874a Blindfix more null derefs in reg.value 2019-08-30 04:44:55 +02:00
pancake 42623c65d9 Fix another null arena deref 2019-08-30 04:35:17 +02:00
pancake b13adc5488 Boolify the reg api a bit more 2019-08-30 04:07:46 +02:00
pancake 7217f6210c Fix null deref in reg arena 2019-08-30 04:07:03 +02:00
pancake c0e14962e2 Blindfix for empty reg arenas 2019-08-30 03:30:13 +02:00
Anton Kochkov 3ebb7f7895
Fix AppVeyor build (#14062) 2019-05-14 12:29:28 +08:00
radare de8a39dd54
Make r_reg_get O(1). aae is 2x faster! ##optimization (#14061) 2019-05-14 03:31:04 +02:00
pancake 87e812e86c Implement drc k=v to set conditional flags by type ##debug 2019-04-24 11:47:00 +02:00
radare ad3689b34d
Add the ability to set some registers readonly ##anal 2019-04-14 21:04:56 +02:00
Anton Kochkov bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
radare 0a6ff520cb
Fix #13326 - Implement of asm.regsub to replace register names with their role alias ##disasm (#13330) 2019-03-09 10:21:04 +01:00
radare cdbe9dff2d
Implement aeC (ESIL appcall), also drr shows reg aliases and add dr?? ##debug (#12997) 2019-02-04 19:27:30 -06:00
pancake 6c2d945272 Fix aht cjmp and optimize assert in asm.emu when no regprofile is set ##anal 2019-01-20 12:16:47 +01:00
lzutao 1365948cee Do not use reversed keyword of meson ##build
`files` is a reversed keyword in meson. Try to avoid using it.
2019-01-10 14:15:50 +01:00
lzutao 9cc6d2d291 meson: Do not use glob with meson ##build
* meson: Explicit is better than implicit
* meson: Fix deprecated warnings in Meson 0.49.0
* meson: Do not need separate array for installed files

libr/socket/meson.build:30: DEPRECATION: Library r_socket was passed to
the "libraries" keyword argument of a previous call to generate() method
instead of first positional argument. Adding r_socket to "Requires" field,
but this is a deprecated behaviour that will change in a future version
of Meson. Please report the issue if this warning cannot be avoided in
your case.
2018-12-27 14:17:54 +01:00
David CARLIER 033e073c4e Little warning build fixes (#12232) 2018-11-20 01:13:54 +01:00
radare 5f270658c5
New RBin plugin for "symbols" files ##bin 2018-11-19 22:54:58 +01:00
dav1901 8b83d03c99 Minor code cleanups free/R_FREE (#12145) 2018-11-13 23:41:28 +01:00
dav1901 9b0fbf1ee4 Minor code cleanups - free/R_FREE/etc 2018-11-13 00:23:49 +01:00
lzutao b790439e28 Cast arguments to ut8 when feeding ctype.h functions ##refactor
The behavior of the `<ctype.h>` functions is undefined for negative
arguments (other than `EOF`). In such a situation, the argument should
be cast to `unsiged char` for safety.

References:
 - C Programming: A Modern Approach, 2nd Edition: page 612, chapter 23.5
2018-11-06 13:40:00 +01:00
pancake 865ec593b1 Dont make those reg profile dupes fatal 2018-11-05 16:55:34 +01:00
pancake 3738a97623 Fix several asserts and crashes when loading invalid reg profiles 2018-11-05 16:55:34 +01:00
radare 88e49ac207
Fix #11972 - fix null entry assert on mach0 libs ##bin (#11990) 2018-10-30 01:07:24 +01:00
pancake 4618c4620c Fix some more license headers 2018-10-29 23:30:02 +01:00
pancake dc96db9e51 Try clang-format when no uncrustify is found and reindent r_reg with sys/indent.sh 2018-10-16 00:17:44 +02:00
pancake ec875e8e15 Delete dead code 2018-10-16 00:17:44 +02:00
pancake 4205cdabee Fix memory leaks in RReg 2018-10-16 00:17:44 +02:00
Neven Sajko 4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Riccardo Schirone eee1385466
Meson private (#11331)
* meson: refactor library cflags
* meson: use visibility=hidden by default
* remove unused var
* magic/meson: replace tabs with spaces
2018-09-03 10:07:28 +02:00
radare 63669bee85
Add support for wired-to-ground registers for MIPS and V850 (#11320) 2018-08-31 03:05:41 +02:00
sivaramaaa 8a2397e4b1 Improve syscall search (#11058) 2018-08-13 03:13:25 +02:00
Riccardo Schirone 7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00