1372 Commits

Author SHA1 Message Date
xarkes
47153d9dfd Fixed missing parameter for linux i386 (#14026) 2019-05-10 12:44:52 +02:00
Florian Märkl
23e906ea70 Fix some warnings 2019-05-10 10:57:29 +02:00
pancake
5d646d3551 Fix some warnings in the linux-debugger code 2019-05-08 11:59:57 +02:00
radare
5b0c648b5b
Initial implementation of dr. and ar. commands ##debug 2019-05-05 03:21:23 +03:00
dodococo
6896064553 Fix #13880: Add dt= ##print 2019-04-28 19:30:15 +02:00
Cyrill Leutwiler
501f6ab016 Fix dg in Linux by using r_debug_ptrace instead of ptrace ##debug 2019-04-21 00:38:36 +02:00
MK
61680079a7 Code refactoring the theme based colorization to reduce derefs ##cons 2019-04-16 15:56:41 +02:00
Riccardo Schirone
820e3dbe73
Improve r_buf_buffer and remove r_buf_get_at (#13676)
* Make r_buf_buffer return a ut8 and the associated size of the buffer
* Remove r_buf_get_at uses and make it static
2019-04-15 13:24:15 +02:00
Anton Kochkov
b858e7e10e Fix #13430 - Kill MinGW remnants ##deprecate 2019-03-31 12:03:07 +02:00
Riccardo Schirone
3f4580b031
Make buf field private in RBuffer (#13473)
* Fix pemixed build (and include it in meson build)
* Do not use base_priv in yank, it was wrongly used.
2019-03-26 20:32:53 +01:00
MK
95f4be5ae7 dm= now honors theme (eco) settings + wx sections are highlighted ##cons 2019-03-24 23:46:33 +01:00
radare
75876f6d29
Some fixes for the debug/emul traces and initial visual mode ##debug (#13475) 2019-03-23 14:59:15 +01:00
Johannes
a3568f0098 Fix musl compatibility - ARM_VFPREGS_SIZE is defined in asm/ptrace.h (#13427) 2019-03-18 22:37:35 +01:00
GustavoLCR
c8160886d0 Make pid.c use PJ (#13424) 2019-03-18 19:16:08 +01:00
GustavoLCR
3fba693b91 Add support for UTF console input in Windows (#13338) ##windows
* Add support for UTF console input in Windows
* Convert ANSI input to UTF-8
* Convert UTF-8 to acp when calling ANSI version of functions
* Determine if Windows console output is UTF-8 on the fly
2019-03-18 16:05:38 +08:00
Riccardo Schirone
0948f9536b
Use r_buf_size to get the size of a buffer, not the private field (#13380)
* Use r_buf_size to get the size of a buffer, not the private field
* Use r_buf_seek instead of adjusting the private cur RBuffer field
* use r_buf_read instead of r_buf_read_at(.., cur, ..)
* Fix RBuffer usage in REgg
* Introduce r_buf_tell API instead of using seek
* write_at(cur) == write
2019-03-15 20:28:52 +01:00
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
Stefan
460d55ea83 Fix debug rap reg profile setup ##sync
* Flush before closing pipe
2019-02-22 01:42:52 +01:00
pancake
9930fd82d1 Fix Linux debugger crash regression 2019-01-14 00:18:09 +01:00
pancake
5c31d8743a Fix dL bochs crash 2019-02-18 18:50:00 +01:00
radare
2a00ff2ce1
Fix #12855 - Crash in "r2 -c'dL bf' -d ls" (#13145) 2019-02-18 18:45:42 +01:00
radare
18931ff3fb
Fix debugger regression in Android ##debugger 2019-01-24 05:22:56 +08:00
pancake
709ffb60b6 Fixes for the android build and related warnings 2019-01-21 12:10:33 +01:00
David CARLIER
06e2747659 Debug process state info support on OpenBSD ##debugger 2019-01-12 23:35:30 +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
radare
32e494a696
Improve rap:// code, r2p_ is now r2pipe_ ##io (#12699) 2019-01-09 02:47:35 +01:00
radare
c98136300d
Fix #12667 - Fix heap overflow in RCons.grep ##cons 2019-01-07 16:08:54 +01:00
David CARLIER
e325b3c6de FreeBSD debug slight improvements. (#12609)
Getting couple of process info, to get the full path name
it would require a bit more calls while not sure it worths it
but we get at least the exe name and figuring out its status.
2019-01-03 00:38:13 +01:00
pancake
b29f5bb54a Fix some issues reported by clang-analyzer 2018-12-31 05:36:14 +01:00
radare
dc185e242a
Add scr.wideoff to make offsets and reg values depend on asm.bits ##visual 2018-12-31 03:06:05 +01:00
David CARLIER
2eb706029c Few code/cleanups mem leaks potential (#12591) 2018-12-31 00:21:47 +01:00
David CARLIER
cae13a0e14 Improving slighty debug support on FreeBSD. (#12572)
When a process is interrupted by a signal, we try to
figure out the reason if the information is still available.
2018-12-27 23:18:55 +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
GustavoLCR
7530895d0a Fix a few clang scan-build bugs (#12562)
* Removed unnecessary variable from libr/core/disasm.c
* Removed not necessary assignment in libr/core/casm.c
* Removed not used assignment in libr/bin/dwarf.c
* Rem. duplicate declaration and not used values
* Fixed potential memory leak in java/class.c
* Fixed potential memory leak in ragg2
* Removed unnecessary variable in visual.c
* Another potential memory leak in class.c
* Removed not used value assignment
* Fixed memory leak in dwarf.c
* Removed not needed assignments
* Remove more not used assignments
* Refactored where bin_sections gets arch & bits for clarity
* Removed more assignments that are not used
* Rem. more unused assignments
* Surround assignment with paranthesis
2018-12-26 12:54:12 +01:00
Riccardo Schirone
738bc9cb19 Fix warnings by using more r_str_ncpy
* Fix wrong logic in visual_search

When the string to be searched is wrapped in " ", you want to remove the
first and last quotes and look only for the internal string.

* Increase size to prevent string truncation (and fix compiler warning)
* Fix "destination unchanged after copying no bytes" warning
* Move msp430_register_names where it belongs to
* Fix Wstringop-truncation warning
2018-12-19 12:07:49 +01:00
pancake
a6f943d87d Fix musl build (required for Alpine) 2018-12-18 18:24:09 +01:00
dav1901
0a65d76eb8 Minor cleanups/fixes 2018-12-18 16:26:17 +01:00
dav1901
5b644dcb74 Minor cleanups/fixes (#12478) 2018-12-14 00:17:50 +01:00
dav1901
97b94b3f94 Fix more clang warnings (#12458) 2018-12-12 12:22:36 +01:00
dav1901
b88806f65f Fix more clang-analyzer warnings (#12424) 2018-12-06 16:55:09 +01:00
pancake
cd4d226059 Fix crash in gdb when desc is null 2018-12-03 01:30:00 +01:00
Riccardo Schirone
baf9305ea2 Warn fixes (#12360)
* Remove unused variable from __io_attach
* Avoid using empty string with snprintf, just set \0
2018-11-30 12:09:01 +01:00
pancake
842dadc41d Add mips software breakpoint in the macro 2018-11-27 10:19:07 +01:00
lzutao
becc3000a8 Change unneeded global static vars to local static (#12324) 2018-11-26 23:21:19 +01:00
pancake
b84cbd5434 Fix linux-arm64 build 2018-11-26 05:32:28 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
pancake
e821230045 Fix last covs 2018-11-22 16:19:25 +01:00
dav1901
9bcfc5cc20 Fix few covs (#12251) 2018-11-21 13:34:43 +01:00
Florian Märkl
7c0687b8fb Fix #12022 - Slow backtrace fixed by speeding up ptrace_wrap_func() ##debug 2018-11-20 01:13:30 +01:00
dav1901
8e7aea3198 Minor cleanups (#12231) 2018-11-19 22:55:34 +01:00