Commit graph

429 commits

Author SHA1 Message Date
David CARLIER
d4b9746c28 Implementing debug info per pid on NetBSD ##debug (#15149)
While at it fixing little code mistake about freeing const address.
2019-09-30 11:21:09 +02:00
Paul I
4eabb42f88 Fix potential bugs 2019-09-16 09:37:43 +02:00
GustavoLCR
88989b95a8 Fix PDB autoload
* Let PDBs be found on the symstore
* Fix flags being set on the wrong offsets
* Fix memory leaks
2019-09-05 09:49:41 +02:00
GustavoLCR
a565a5ccce Fix #12438 - Fixes for PDB (#14874)
* Fix use after free when autoloading pdb
* Use heap on td command
* Fix #12438 - Fix wrong 2 byte read for char value
2019-08-23 12:52:25 +08:00
00rsiere
fe9a03416f Notify user on hardware breakpoint hit ##debug 2019-08-19 19:29:43 +02:00
radare
e1cf65332a
Use r_sandbox_fopen instead of fopen (#14832) 2019-08-18 17:19:53 +02:00
David CARLIER
0626013ac7 Linux debug plugin, page promotion feature ##debug
* Linux debug plugin, page promotion feature proposal.

Providing new 'dmL' debugger sub command.
This is the only system having THP feature, others are more into
 direct huge tlb equivalent ...
The system ought to be set in madvise mode and disabled on Android,
would not do any good in this environment if this is ever supported.
Once the syscall succeed, the address range ought to get the
 little 'hg' VmFlags.

* interface changes
2019-08-03 06:09:07 -07:00
Anton Kochkov
9677804b8e
Windows native debugger refactoring ##debug ##windows
* Windows native debugger refactoring

Massive win32 native debugging code refactoring
and corresponding fixes.

* Fix hang after killing process
2019-07-29 11:19:26 +08:00
Alexander Yukhanov
0eeb2bfd7f Fix breakpoints handling for FreeBSD ##debug 2019-07-18 10:24:45 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
radare
571a080ca7
s/CORELIB/R2_PLUGIN_INCORE/g (#14295) 2019-06-13 19:12:51 +02:00
GustavoLCR
7a10af4057 Initial implementation of heap parsing for Windows (#14218) ##debug 2019-06-05 15:20:38 -04:00
Riccardo Schirone
66f7403245 Rewrite the RBuffer API to make it safer and adjust the codebase ##refactor (#13656)
* Reimplement r_buf_fread/fwrite
* Add slice buffer and introduce readonly field
* Do nothing if size is 0
* Prevents an overflow when 8 is subtracted from size.
* Fix ragg2 when patching outside currently existing buffer
* Implement r_mem_mmap_resize for systems where mremap is not defined
* r_buf_buffer can be called with no size arg as well
* Use size_t instead of ut64
2019-05-15 15:34:06 +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
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
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
pancake
9930fd82d1 Fix Linux debugger crash regression 2019-01-14 00:18:09 +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
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
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
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
dav1901
0a65d76eb8 Minor cleanups/fixes 2018-12-18 16:26:17 +01:00
dav1901
97b94b3f94 Fix more clang warnings (#12458) 2018-12-12 12:22:36 +01:00
pancake
b84cbd5434 Fix linux-arm64 build 2018-11-26 05:32:28 +01:00
radare
a4ddb43fef
Fix ios-arm32 ##build 2018-11-13 02:12:55 +01:00
David CARLIER
9b3075b137 Support DragonflyBSD build and backtrace ##port
including backtrace support. the manpage mentions FreeBSD 10 release
and DragonflyBSD has different versioning, and radare not into
their port tree yet anyway, it might safe enough.
2018-11-07 00:31:00 +01:00
Florian Märkl
daddf534e3 Fix #11799 - Fix ptrace warnings (#11800) 2018-10-12 18:15:46 +02:00
Florian Märkl
0c0fee7b48 ptrace-wrap (#11723)
* Add ptrace-wrap
* Add r_io_ptrace* and r_debug_ptrace()
* Use wrappers instead of calling ptrace and fork directly
* Sleep while waiting in linux_debug
* Add ptrace-wrap Makefile
* Link io against ptrace-wrap with acr
* Define ptrace usages in r_userconf.h
* Conditional ptrace-wrap in acr
* Fix HAVE_PTRACE
* Some fixes for Solaris
* Fixes for FreeBSD
* More fixes for Solaris
* Style Fix
2018-10-12 12:20:18 +02:00
David CARLIER
cb63dbc232 NetBSD/OpenBSD build fix (#11772)
* NetBSD build fix

* OpenBSD has same build issue
2018-10-08 22:38:45 +02:00
Riccardo Schirone
ab4578a546
remove random warnings when compiling (#11767)
* remove random warnings when compiling

* debug_native: provide r_debug_handle_signals on windows
2018-10-08 13:21:50 +02:00
saucec0de
b06c44385b Fix debugging in FreeBSD 11.2 (#11726) 2018-10-04 02:48:15 +02:00
pancake
41ec949204 Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
Paul I
bf29250ddd Fix #11487 (#11534) 2018-09-15 22:52:12 +02:00
Neven Sajko
4a722e80d8 Add braces to if, else, for, while ... (#11504) 2018-09-13 10:17:26 +02:00
Pierre Pronchery
7b1f59b682 Trivial build fixes for NetBSD (#11423)
* Fix build on NetBSD
* Only use WIFCONTINUED if available
2018-09-07 11:37:40 +02:00
pancake
01e164cde2 Fix build on Linux 2018-08-27 17:19:01 +02:00
David CARLIER
1dd1e45e46 Fix few compilation warnings. (#11276) 2018-08-27 16:38:37 +02:00
Fangrui Song
6e776b986a Fix some warnings in debug (#10929) 2018-08-05 11:56:15 +02:00
mandlebro
643eaa6bd9 Fix 'dpj pid' command 2018-07-31 12:43:41 +01:00
mandlebro
20d8df9370 Fixed listing processes state and uid (was always 's' and 0) 2018-07-31 12:43:41 +01:00
pancake
b3d0224071 Fix #10731 - Implement diq and use it in Visual debugger mode 2018-07-16 17:05:10 +02:00
pancake
156221e724 Fix #7560 - stepping in OpenBSD 2018-07-07 16:47:57 +02:00
pancake
df9e7e551f Fix #10138 - Missing definition for TCC 2018-05-21 11:04:37 +02:00
skuater
bc03bf2f97 initial fix for issue #10097 2018-05-15 18:21:19 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
Giovanni
0c776c0e71 warnings from lib (#9445) 2018-02-20 23:19:35 +01:00