Commit Graph

658 Commits

Author SHA1 Message Date
gogo
130c220792 Add 'sigstr' to the 'di' output for verboser stop reasons ##debug 2021-07-17 13:00:21 +02:00
pancake
188bce9f25 Use DRX APIs to handle breakpoint recoils only on x86-64 ##debug 2021-06-29 11:56:55 +02:00
pancake
f7d3ec4fc4 Fix dsui help message 2021-05-16 18:46:29 +02:00
pancake
ee08bc7600 Implement aeis to initialize argc, argv and envp for emulation ##emu
* Only for 64bit systems for now, it's easy to switch to 32bit
2021-05-13 00:37:42 +02:00
pancake
4ae7cef832 Add dxe? help, improve parsing and few egg boolification 2021-05-04 12:51:09 +02:00
pancake
33ddd84593
Show string version of the stop reason in di ##debug (#18649) 2021-05-02 19:34:46 +02:00
Anthoine Bourgeois
752ddf6a46 debug: Do not print 0 on unknown register
Fix CI linux-test.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@gmail.com>
2021-04-24 21:58:09 +02:00
pancake
ed8a150867 Fix null printf issue in arpi command ##reg 2021-04-11 01:38:25 +02:00
pancake
3231c0d585 Initial working implementation of =RS 2021-04-11 01:38:25 +02:00
pancake
fd1484525a
Implement drcq and show it in visual debug/emu ##debug (#18519)
Co-authored-by: pancake <pancake@nopcode.org>
2021-03-31 19:26:19 +02:00
pancake
9f23cf7378 Fix #18502 - dangling pointers issues in dbm ##debug 2021-03-29 21:25:20 +02:00
pancake
a001a33a72 Fix #18510 - json assert in drtj 2021-03-29 19:44:56 +02:00
pancake
45caf760a6 Revert "dmi commands handle symbols, exports, main, entries too ##debug"
This reverts commit e82f3d7fcb.
2021-03-15 04:00:00 +01:00
pancake
894bc43ea9 Use more r_str_ncpy and improve it to not alloc beyond nullbyte ##api 2021-03-15 02:24:16 +01:00
pancake
14e4e84ee3 Fix oobread in dcu 2021-03-15 02:24:16 +01:00
Khairul Azhar Kasmiran
ded1bafab3 Fix some uninitialized and minor memleak issues 2021-03-15 02:24:16 +01:00
pancake
08b3dc0ea9 Honor cfg.debug in asm.section using dmi. ##disasm 2021-03-14 18:54:01 +01:00
pancake
e82f3d7fcb dmi commands handle symbols, exports, main, entries too ##debug 2021-03-14 18:54:01 +01:00
pancake
402be564e1 Implement dmis command as an alias for .dmi* ##debug 2021-03-14 18:54:01 +01:00
pancake
f46683f6be Workaround the dmi issue by using rabin2 in macOS for now ##debug 2021-03-14 18:54:01 +01:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
pancake
47358feb6d Improve reg profile parsing and error handling ##anal 2021-03-02 00:08:14 +01:00
GustavoLCR
ed208edcd9 Put registers in their own flagspace 2021-02-06 03:30:53 +01:00
ChD1
6187be3be6
Fixes in ae command handler and some null derefs (#18307) 2021-01-29 19:49:41 +01:00
Liumeo
a79bf446fa
Use pj in debug ##refactor (#18270) 2021-01-24 16:07:30 +01:00
pancake
08d7fe688c Implement RTable:sql and add RTable.name ##core 2021-01-15 10:56:58 +01:00
Liumeo
0d49da05b7
Use pj in dbtj ##refactor (#18230) 2021-01-14 17:29:27 +01:00
Liumeo
a74ca8f07b
Remove core.file ##refactor (#18178) 2021-01-06 23:44:18 +01:00
eagleoflqj
cd3ac9e2f2 Use pj in cmd_anal.c ##refactor 2021-01-06 00:03:44 +01:00
Aswin C
ef4c9b603d Add internal help for arS and drS 2021-01-03 10:11:04 +01:00
eagleoflqj
2879c582af Use pj in cmd_info.c ##refactor 2021-01-03 01:24:58 +01:00
pancake
b69355bb84
Fix #18136 - Remove RBin.is_debugger and use cfg.debug (#18146) ##refactor 2021-01-01 22:48:02 +01:00
pancake
4b6fd801e4
Import last random rizin fixes and more (#18128) 2020-12-28 23:34:16 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor (#18079) 2020-12-21 08:51:44 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
pancake
e356715589
drr show all flags and pxrj is now structured ##print (#17758)
* dxrj changed the field `ref` to `refstr`
2020-12-06 18:31:43 +01:00
yossizap
8a4faebb67
Stop trace sessions in the doc command ##debug (#17886) 2020-11-02 12:25:07 +08:00
Anton Kochkov
afba51ce98 Fix format warnings in libr/core 2020-10-22 13:37:25 +08:00
pancake
413437e2b6
Move arp gdb into arpg, improve error and parsing + tests ##debug (#17658) 2020-09-16 19:16:24 +02:00
abcSup
16c5017898 Fix ESIL tracing to be consistent with debug tracing ##anal 2020-09-02 06:00:38 +08:00
Zi Fan
3c88900134
Implement save and load functions for debug session ##debug (#17430)
* Add `dtst` and `dtsf` commands
* Change `RDebugSession` to store its data in their own sdb namespace
* Add `r_debug_session_serialize()` and `r_debug_session_deserialize()` API
* Add unit tests for `RDebugSession `save and load functions
2020-08-20 12:25:47 +08:00
Zi Fan
2dfa75cc47
Update record & replay features to trace reg/mem changes ##debug (#17127)
* Update record & replay features to trace reg/mem changes ##debug
* Support tracing in r_debug_continue_kill ##debug
* Fix error writing registers when stepping back and refactor ##debug
* Implement checkpoints for reverse debugging and make tests green ##debug
* Add `dbg.trace_continue` option to enable/disable tracing every instruction when continue
* Fix continue when tracing to allow skipping and continuing ##debug
2020-07-27 12:54:33 +08:00
Zi Fan
ac126508d5
Fix debugger to run debuggee with original environment variables ##debug (#17116)
* Change `fork_and_ptraceme` to start debuggee with rarun2 profile on Linux & Mac
* Add two new commands `doe` and `doe!` to show and edit rarun2 startup profile
* Fix `r_run_parse` to read last line
2020-07-24 16:25:55 +08:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers (#17249) ##build
* Avoid duplication of SDB headers in libr/include

SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.

* Fix pkgconfig file generation
2020-07-21 10:28:43 +02:00
pancake
b86bdc1482
Fix #ideas-294 - Remove RIO.debug (#17297)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-18 09:42:50 -05:00
Anton Kochkov
f62565fd8e
Fix #17054 - GCC 10.1 warnings (#17145) 2020-06-27 22:45:55 +02:00
GustavoLCR
894256ab4f
Add command to load all info for lib ##debug (#17149)
* Add command to load all info for lib ##debug
* Add 'dmia'
* Accept more print modes in 'dmi'
* Don't call rabin2 to load info
* Add tests
* Remove symname filtering for dmia
* Use binfilter instead of grepping
2020-06-27 11:39:54 +08:00
Zi Fan
3abfdc023d
Fix invalid json output for drtj command ##debug (#17073) 2020-06-21 21:00:00 +08:00
Riccardo Schirone
2ffa790e0a
Generate help automatically ##newshell (#16782)
* Add additional RCmdStatuses
* ?? should be a cmd_identifier, not help_command
2020-06-17 21:29:23 +02:00
pancake
f8a9011924
Rename core.assembler to core.rasm (#16814) 2020-05-13 01:28:23 +02:00