23057 Commits

Author SHA1 Message Date
pancake
04cc045955 Don't contribute with patches 2019-11-14 18:53:10 +01:00
GustavoLCR
a598e640df Fix #15456 - Fix reopening in write mode ##windows 2019-11-14 17:51:26 +01:00
Eli
17d2f9aa43 Emit sp-based var offset as a number
The output of `afvsj` shows offsets of sp-based variables as strings.
This fix changes the offset to be shown as a number, just like sp-based arguments and bp-based variables.
2019-11-14 16:06:05 +01:00
yossizap
279f53122f Add break to gdbr's read_packet and move isbreaked to libgdbr ##debug
Since read_packet has a large number of retries you would wait for it
for a couple of seconds after breaking in functions like connect and
vcont
2019-11-14 12:31:56 +01:00
yossizap
0b68cab009 Fix gdbr_write_registers and refactor gdbr_write_reg ##debug
Previously, write_registers sent a partial string instead of the
correct register format which specifies that each byte should be
represented by two hex digits.
2019-11-14 12:31:56 +01:00
yossizap
b86c251a35 Replaced lock_check with tryenter in gdbr_read_registers ##debug
This change allows reading registers when calling read_registers in
a thread that holds the recursive mutex.
2019-11-14 12:31:56 +01:00
yossizap
c2ad608ee9 Added r_th_lock_tryenter API (#15454) ##util
r_th_lock_check only returns the refcount which isn't enough to know if
the current thread is holding the mutex when a recursive mutex is enabled.
2019-11-13 17:21:13 +01:00
Khairul Azhar Kasmiran
a1f893e58c
Support UTF16-BE decoding (#15450)
* Support UTF16-BE decoding

* Add spaces
2019-11-14 00:08:37 +08:00
Francesco Tamagni
7b2375228f Fix #15445 - Add support for Mach-O external relocs ##bin (#15445) 2019-11-11 21:55:06 +01:00
Florian Märkl
432b559bb7 Add support for C64 PRG fileformat ##bin (#15448) 2019-11-11 21:54:46 +01:00
David CARLIER
cb7e8e7310 Fix few warnings for the gdb client 2019-11-11 21:54:06 +01:00
Khairul Azhar Kasmiran
8ab6a6ff93 pd: Don't abort string printing on initial null if bin.str.enc != guess (#15446) ##bin 2019-11-11 17:59:07 +01:00
pancake
93c7a54e9a Fix crash 2019-11-11 04:01:29 +01:00
pancake
806370290b Cleanup tab-completion initialization code 2019-11-11 00:36:49 +01:00
yossizap
739078d7a4 Add breaking to gdbr connect to avoid waiting on invalid connections (#15442) ##debug
R2 will hang while waiting for any resolvable port to respond, this takes
a long while since connect is attempted twice in r_core_file_open.
2019-11-11 00:09:24 +01:00
pancake
f0998c01b7 Update capstone v4/next from Git 2019-11-10 19:05:08 +01:00
yossizap
e35f447a2a Added break to gdbserver vCont and refactored the code to use locks (#15433)
The previous gdbr implementation didn't allow interrupting background
tasks with &b since send_vcon wasn't properly configured with the cons
api. In addition to that, gdbserver doesn't support processing multiple
commands at the same time, resulting in undefined behavior once cons
were set up for vcont.
This commit adds the relevant cons api and solves the concurrency issues
by adding locks on all socket related logic.
2019-11-10 19:03:56 +01:00
David CARLIER
e69907ef5d Uses the setitimer api instead for the alarm in self:// ##io 2019-11-10 19:03:42 +01:00
yossizap
ccf42d7c45 Fix r_sys_sigaction not setting up the requested signals (#15440)
The for loop's iterator was initialized with the first member of sig[]
instead of 0. Added an error to avoid this issue going unnoticed.
2019-11-10 12:37:17 +01:00
Khairul Kasmiran
8c0f5268e3 r_list_free() -> r_list_free () 2019-11-10 14:13:13 +08:00
Khairul Kasmiran
84ce2a7d04 r_list_new() -> r_list_new () 2019-11-10 14:06:02 +08:00
Henry Eklind
66bc5fd1a9 Fix typo in ios-syscalls.txt (#15436) ##anal
__exit was listed twice with same number (1), and fork was missing.
2019-11-10 02:16:22 +01:00
ilian
7c1f4bfc17 Fix broken pkg uninstall command on macOS (#15437)
Provide a proper package ID to get rid of the following error:
`No receipt for 'radare2.pkg' found at '/'.`

Prepend a `/` for each returned path by the `pkgutil` command, to make
it an absolute path instead of a relative one.

Avoid invoking the `sudo` command for each file, which speeds up the
command significantly.
2019-11-10 02:15:05 +01:00
ilian
15d0bb43d7 Improve macOS installation documentation (#15438) ##doc
Avoid ambiguous signing certificates on macOS.
If a user manually installed a new code signing certificate into the
login keychain as documented, the install script will fail to sign r2 
because the `sys/macos-cert.sh` script generates a new certificate in
the System keychain. This results in the following error when signing:
```
org.radare.radare2: ambiguous (matches "org.radare.radare2" in /Users/user/Library/Keychains/login.keychain-db and "org.radare.radare2" in /Library/Keychains/System.keychain)
```
To be constistent with `sys/macos-cert.sh`, change manual certificate
generation steps to install to System keychain instead of login
keychain.

Mention that code signing certificate generation is automated by the
install script before listing the manual steps to generate a new
code signing certificate.
2019-11-10 02:14:50 +01:00
Khairul Azhar Kasmiran
9167a5e740 r_list_newf(..) -> r_list_newf (..) 2019-11-09 18:52:29 +08:00
Khairul Kasmiran
e92b01798e Use free() instead of R_FREE() in r_list_delete()
Same reason as #15430.
2019-11-08 19:38:38 +08:00
Sylvain Pelissier
15046fa2e6 Search for AES 128, 192 and 256-bit keys (#15426) ##search 2019-11-08 10:27:23 +01:00
GustavoLCR
4a406503c4 Use PJ in oj (#15434)
This fixes escaping issues
2019-11-07 22:59:15 -06:00
Florian Märkl
09245579e3 Fix Leak of Flag Zones (#15432) 2019-11-07 21:36:36 +01: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
Khairul Azhar Kasmiran
1a4fec593f Use free() instead of R_FREE() in r_list_free() (#15430) 2019-11-07 15:40:59 +01:00
Florian Märkl
9ff090b9b8 Refactor r_flag_color() to r_flag_item_set_color() (#15429) 2019-11-07 12:46:08 +01:00
Florian Märkl
b18fc9e428 Add r_spaces_purge() (#15428) 2019-11-07 12:24:47 +01:00
Florian Märkl
cab7a195ba Fix comment about RFlag.ht_name (#15427) 2019-11-07 12:24:30 +01:00
pancake
10f7e7d50a Reduce the blocksize on some hexvisual modes ##visual
Faster interactions -- can be improved still
2019-11-07 10:46:23 +01:00
pancake
8c4700ac50 Add missing entry for meson 2019-11-06 23:47:12 +01:00
pancake
cddf74c01a Fix r_strbuf dependency on r_cons 2019-11-06 23:13:08 +01:00
Alex Kornitzer
39bc0c97d0 Add auto zignspace generation for the zg command (#15402) ##signatures
This allows the 'zg' command to auto generate zignspaces from function
names by utilising the ':' convention used in zignatures. Now when 'zg' is
run if any funtion names are in the format ZIGNSPACE:FUNCTION, the
zignspace will be extracted, created and the function applied under its
scope.
2019-11-06 22:00:23 +01:00
Florian Märkl
af1c9bff71 Use HtPP for RStrConstPool (#15424) ##util 2019-11-06 21:55:46 +01:00
Giovanni
01937fcaf9 Fix #14661 - Support parsing binary protobuf data (#15423) ##print 2019-11-06 21:55:36 +01:00
radare
4949c00293
Improve switch-statements in disassembly ##disasm 2019-11-06 21:53:31 +01:00
GustavoLCR
af6ba870e8 Add Windows 8 and 8.1 WinDbg profiles ##debug (#15425) 2019-11-06 11:18:14 -06:00
radare
dc76d5da96
Fix #14279 - Ignore entrypoint on non-executable ELFs ##bin 2019-11-06 16:41:52 +01:00
GustavoLCR
2bad46e266 Fix build (#15422) 2019-11-06 16:25:43 +01:00
pancake
6d1a5f4e32 Fix #15419 - Fix bytes field in aoj 2019-11-06 12:50:14 +01:00
radare
ad4576adb6
Initial implementation of afvf - show bp-relative stackvars ##anal 2019-11-06 12:43:13 +01:00
dok
34e4bd7291 Use sigaction instead of signal ##core 2019-11-06 12:41:36 +01:00
pancake
a51e121642 Hold this analop warning under anal.verbose 2019-11-06 12:18:49 +01:00
Riccardo Schirone
4ebd400fa7
Very simple tree sitter integration (#15414) ##command
* tree-sitter-integration: support tmp-seek, arged, and interpret commands
* Make meson automatically download tree-sitter and radare2-shell-parser grammar
* Add tree-sitter/radare2-shell-parser directories in gitignore
* Add Support for tree-sitter in acr/makefile
* Just use one script to download 3rd party repositories in shlr
* Use cfg.newshell
2019-11-06 10:33:23 +01:00
GustavoLCR
88c848cc37 Fixes for Windows debugging (#15418)
* Fix error when continuing after attaching to process
* Get threads correct EIP
* Fix some memory corruptions and small refactor
2019-11-06 00:01:36 -06:00