Commit Graph

62 Commits

Author SHA1 Message Date
pancake
8e3a87264f
Better output for dL command ##debug 2024-06-29 08:45:04 +02:00
pancake
a6752fec33 Do not do more work if the first check fails 2024-03-18 07:26:15 +01:00
pancake
2e64ce0112 Debug plugin fallbacks ##debug 2023-11-17 11:31:48 +01:00
pancake
a62d03c2e1
Refactor RDebugPlugin access solving a null deref in plugin-less builds 2023-11-15 12:04:17 +01:00
pancake
be53078ba4 Improve Ldj and Lcj outputs ##json 2023-09-08 19:49:27 +02:00
Luc Tielen
ea12b05a2a Rework vec macros to inline finalizer function ##util 2023-07-20 12:58:14 +02:00
Luc Tielen
1294849c28 Implement small vec optimization ##util 2023-07-20 12:58:14 +02:00
Luc Tielen
6cd0ae6c54 Refactor vec generate macro ##util 2023-07-18 11:59:15 +02:00
pancake
9ffd6f029a Initial deprecation of the current RAnalPlugin ##abi 2023-07-09 12:31:48 +02:00
Luc Tielen
5bae28e7cc Add sort function RVec, const correctness ##util 2023-07-07 17:39:28 +02:00
Luc Tielen
2400ded5e9 Migrate gdb plugin ##debug 2023-07-06 17:00:51 +02:00
Luc Tielen
3ab2344798 Implement review remarks 2023-07-06 17:00:51 +02:00
Luc Tielen
e85941beb4 Store current debug plugin session, migrate plugin ##debug 2023-07-06 17:00:51 +02:00
Luc Tielen
3dc5ad4ed0 Improve naming for callback functions to reduce confusion ##debug 2023-07-06 17:00:51 +02:00
Luc Tielen
21d5ad44d0 Add cleanup of plugins ##debug 2023-07-06 17:00:51 +02:00
Luc Tielen
1cbda579df Redesign plugins to have user data ##debug 2023-07-06 17:00:51 +02:00
Luc Tielen
3dd73c404f Add meta section to debug plugins 2023-07-05 15:50:53 +02:00
Luc Tielen
a40d2e8006 Fix removing core plugins from Lc after L- ##core 2023-06-27 11:45:23 +02:00
Richard Patel
363df75c06
Replace some instances of eprintf with R_LOG_ 2022-06-28 02:49:42 +02:00
Liumeo
a79bf446fa
Use pj in debug ##refactor (#18270) 2021-01-24 16:07:30 +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
Zi Fan
fec0aea039
Decouple shlr/gdb registers profile from code (#16312) ##debug
* Sync r2 debugger registers profile with shlr/gdb
* Add new set_reg_profile function to r_debug plugin
* Add set_reg_profile to r_debug_plugin_gdb
* Change "drp" to sync r_debug plugin register profile
* Fix incorrect pointer arithmetic and code style
2020-03-27 02:00:27 +01:00
Paul I
4eabb42f88 Fix potential bugs 2019-09-16 09:37:43 +02: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
fcasal
2a029fdb2d Added json list to debug plugin list dL (#10348) 2018-06-14 21:23:37 +08:00
pancake
303820dbac Initial purge of R2_PREFIX towards dir.prefix 2018-01-16 11:13:21 +01:00
Srimanta Barua
5cb36b3e2e fixes to gdb debugger (#8238) 2017-08-18 19:32:53 +02:00
Fangrui Song
43fd42bc1c Fix a few memory leaks (#7984)
* Fix memory leak in libr/debug
* Fix memory leak in libr/core/cconfig
* Fix memory leak in libr/debug
* Fix memory leak in binr/radare2
2017-07-21 15:37:49 +08:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
pancake
3686957870 Fix crash in r_debug_free with dynamic debug plugins 2017-01-22 01:08:48 +01:00
Elia Geretto
31e8d7cb68 Fix various memory leaks (#6272)
* Fix bits_ranges memory leak in anal.c
* Fix anal->reg memory leak and prevent use after free in plugin.c
* Fix reg->allregs memory leak in reg.c
* Fix dbg->plugins memory leak in debug.c
* Fix io->plugin_default memory leak in io.c
* Fix plugin_free not deallocating plugin in bin.c
* Adapt to style guidelines
* Fix memory leak in r_bin_object_free and resolve double free
* Fix o->kv memory leak in r_bin_object_set_items
* Fix memory leak pushing arena on reg init
* Fix io->plugin_default memory leak in io.c
* Adapt to style guidelines
* Fix pfile memory leak in radare2.c
* Add braces to if in bin.c
2016-12-01 09:09:59 +01:00
pancake
94d47c79bb Completely remove all references to list.h 2016-10-27 13:33:27 +02:00
pancake
41d6e9edde Add bash autocompletion support 2016-10-04 14:34:06 +02:00
Jeffrey Crowell
6b17cfc55a fix double free on register
closes #4634

can we please review/revert/something
4c04b98b47 (diff-fa45250699a39a7bffd1e27da12ec5beR40)

i'm fearful this has broken a lot more stuff
2016-04-13 21:30:48 -04:00
NaveenBoggarapu
4c04b98b47 few memory leaks fixed 2016-04-13 21:55:48 +02:00
pancake
8eabe785fe Boolify RDebug API 2015-12-04 02:57:56 +01:00
shuall
0807686d86 #3052 all printf member functions changed to cb_printf 2015-08-09 03:25:05 +02:00
pancake
72ba17da3e Enhace dh listing 2015-06-12 03:04:09 +02:00
pancake
d93563909d Fix latest coverity issues 2014-09-10 02:21:10 +02:00
Anton Kochkov
547ead1fb9 Fix CID 1191960 2014-05-04 19:21:05 +04:00
pancake
3e3092ac09 Add RRegCond api 2014-01-07 04:29:56 +01:00
pancake
d489178755 Fix #444 - Show RDebugPlugin license in 'dh' output 2013-12-10 04:29:14 +01:00
pancake
16ddff4eb9 More work on ESIL, and implement r2 -Desil .. 2013-05-20 03:00:49 +02:00
pancake
88c8b08f7a * Fix various memory leaks (thanks Ender for reporting!)
* Add e dir.magic variable
2011-11-11 17:14:09 +01:00
pancake
c7cced5c67 * Use null fot unsupported plugins
* Fix startup segfault in r_reg doublefree
2011-10-08 23:39:06 +02:00
pancake
4ea6ee9873 * Add new flags to r2
- -D : enable debugger mode for non native debuggers
  - -c cmd : execute a command before showing prompt
* Initial import of the bfvm (brainfuck virtual machine)
* Initial dummy implementation of the brainfuck debugger plugin
  - Needs to be integrated with bfvm to work
* Added doc/brainfuck
2011-10-07 03:10:44 +02:00
pancake
677a499440 * Add get_main() for mach0 (32,64)
* Proper use of arch/bits. debugger works fine now for osx-32/64
2011-09-22 09:52:00 +02:00
pancake
425fe596f4 * Fix many warning messages
* Initial implementation of r_debug_rap
* Implement 'dcu from to' (ranged stop point)
* Use RList in r_lib (list.h has been deprecated)
2011-05-13 10:22:28 +02:00
Eloi Sanfelix
5db2925d1b Fixed reg_profile adding RDebug param. 2011-05-07 18:19:16 +02:00