Commit graph

557 commits

Author SHA1 Message Date
Armin Weihbold
9b9103e00a Enhance drm command, add drm xmm0 functionality (#15214) ##debug
* Add shorthand versions of `drm` - `drm[bwdq]`
* Add mmx register to linux-x64
2019-10-10 04:40:08 +02:00
Armin Weihbold
db1b79b125 Fix #13118 - drf st0 - fpu regs (#15241) 2019-10-10 04:37:37 +02:00
Armin Weihbold
a4954a221e Fix drf output formatting ##debug 2019-10-09 10:18:30 +02:00
GustavoLCR
5bb2417119 Fixes for Windows (#14985)
* Fix dbW help message

* Fix memleak on r_w32_print_windows

* Imitate unix gotoxy behavior on Windows
2019-09-08 02:53:25 +08:00
GustavoLCR
c2287003f9 Implement Windows message breakpoints 2019-09-07 11:25:01 +02:00
pancake
a228c9297b Implement 'cols' RTable.query to filter by column names ##print
* r_str_split_list() rewritten to support nth limit

r2 -qq -c 'aac;aflt size/gt/200,addr/cols/name/nbbs,nbbs/sort/inc' /bin/ls
2019-08-28 23:25:31 +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
ps1337
fceda4c3df cmd_debug.c: Make addroflib use basenames 2019-07-26 20:36:48 +02:00
Ayman Khamouma (ak42)
659cab4ba3 Step over rep and repne prefixed instructions with dsui ##debug 2019-07-23 10:06:10 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
radare
a49bb7cf66
Change the signature of r_str_trim to avoid confusions ##refactor 2019-06-16 20:58:40 +02:00
bart1e
e1724d9a48 Call r_anal_op_free after acquiring RAnalOp pointer (#14317) 2019-06-16 12:31:54 +02:00
bart1e
9e9ca5082a Faster dtd (trace disassembling) using API instead of RCore.cmd ##disasm 2019-06-15 12:08:22 +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
pancake
1d486ce788 Implement aesuo and add help for all those step until subcommands ##debug 2019-05-07 10:35:35 +02:00
radare
5b0c648b5b
Initial implementation of dr. and ar. commands ##debug 2019-05-05 03:21:23 +03:00
pancake
373176bc21 Show which ascii char is in drr output 2019-05-02 15:46:11 +03:00
dodococo
6896064553 Fix #13880: Add dt= ##print 2019-04-28 19:30:15 +02:00
pancake
87e812e86c Implement drc k=v to set conditional flags by type ##debug 2019-04-24 11:47:00 +02:00
pancake
e10d7df600 Introduce dtdi and update help message ##traces 2019-04-17 14:06:45 +02:00
tick
e4c9b10533 Added missing help text for 'db*' command (#13774) 2019-04-16 01:53:01 +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
radare
e63c52bdc7
Implement the dif command to compare two files using unified ##diff
* Should be aliased under the `c` command
2019-04-01 02:34:58 +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
Giovanni
8058018973 Fix #11133 - Remove buf_hex frield from RAsmOp ##refactor 2019-03-26 12:50:13 +01:00
pancake
9424078b5c Fix dt+ command parsing 2019-03-26 10:16:37 +01:00
pancake
41c7ba5cd2 Random fixes and improvements for visual debug traces 2019-03-24 01:58:29 +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
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
7292619c12 Implement graph.trace and improve dt+ with dt++ for abt ##graph 2019-03-08 10:08:48 +01:00
pancake
227b6a4e48 Implement dbg.skipover and fix dss for esil ##debug 2019-03-08 10:08:48 +01:00
Lowly Worm
30264306a0 Make function to allow grabbing the flags by order of importance in flagspace ##core
* use relsub addr
* kill i2, grab top of list when not in preferred spaces
* Add r_core_flag_get_by_spaces
* Remove r_flag_get_i2 and use r_core_flag_get_by_spaces
* Fix fcn name from flag
* Better consistency: flag_get instead of get_flag
* Quickpath for just one flag
2019-03-05 23:43:49 +01:00
pancake
a7518c7d0c Fix few warnings 2019-02-26 17:04:30 +01:00
radare
243d2a03d3
Initial implementation of the dri command - inverse debug registers ##debug 2019-02-21 14:57:04 +01: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
73f76a99b2
Make RCons.is_interactive() into the RConsContext and improve loading projects in tasks ##cons (#13132) 2019-02-18 06:20:01 +01:00
pancake
1d0faf8bc4 pj-ify dmmj 2019-02-12 02:29:54 +01:00
pancake
ce73397f91 Fix #13031 - Crash in dbw 2019-02-10 03:08:10 +01:00
pancake
26baccd4e8 Fix #13032 - Double free in dbw 2019-02-10 03:07:22 +01:00
radare
cdbe9dff2d
Implement aeC (ESIL appcall), also drr shows reg aliases and add dr?? ##debug (#12997) 2019-02-04 19:27:30 -06:00
Florian Märkl
f80a47ab60 Move Palette to RConsContext to make RCoreTask less racy ##cons 2019-01-18 11:58:49 +01:00
radare
ab3a7be704
Almost completely kill RIOSection from io and core (-218LOC) ##refactoring
* Use RBinSection, RDebugMap or RIOMap instead
* Remove omps command
* Fix segfault in ?E+
* Improve anal.eobjmp (bug spotted after almost killing iosections)
2019-01-13 03:07:51 +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
8ff572b26f Improve pxa, use more colors. honor VdF (pf format) 2018-12-11 11:07:59 +01:00
radare
71053f17e9
Move trie, mixed, slist into Sdb's Attic, and DES from util to crypto ##refactor 2018-11-07 17:18:14 +01:00