Commit Graph

951 Commits

Author SHA1 Message Date
Anton Kochkov
1a52a7eea4 Fix compilation error of undefined TRUE 2024-02-22 00:54:25 +08:00
Florian Märkl
653435cb14
Update rizin to latest dev (#3266)
Some fields were changed from RzList to RzPVector in Rizin.
2023-11-19 12:15:42 +01:00
Karliss
7256fbb00e Temporary fix for command output to console widget.
* partially revert #3193 - printing the terminal escape sequences directly to text widget causes more issues than the tab problem it tried to fix
* move the conversation to html from command task to the console widget
* add hack converting tab to multiple spaces
2023-11-11 17:02:38 +02:00
Karliss
fe85af2560 Remove unnessary mouse grab.
* Causes warning spam with Qt wayland backend
* Can sometimes cause crash on wayland
* According to docs shouldn't be necesarry
2023-11-11 14:01:41 +02:00
Karliss
900b1a3e14 Fix decompiler widget crash when starting unsynced 2023-11-04 13:46:45 +02:00
Dhruv Maroo
83391396b9 Start using RzPVector and CutterPVector instead of RzList 2023-09-26 10:51:49 +08:00
Lion
8f707e4a69
append rizin results in plaintext to include tabs etc (fixes #3193) (#3236)
the output of rizin was formatted as html, which caused \n to become
<br/>, making it impossible to just use appendPlainText() as-is. We have
to tell rizin not to give us html, so that we can use \t in the output.

Simply replacing \t with spaces, `&emsp;` or similar doesn't work, as
the appendHtml() replaces multiple spaces with one.
2023-08-30 14:25:42 +08:00
Giovanni
215ab373d4
Translation fixes (#3227) 2023-08-11 09:52:05 +08:00
Anton Kochkov
3d30892a30
Add Global Vars widget, dialog, context menus (#3203)
* Add global variables support

- Add Globals widget
- Add global variable add/modify dialog
- Add "Add at" context submenu in Disassembly widget

Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>

---------

Co-authored-by: Giovanni <561184+wargio@users.noreply.github.com>
2023-08-04 10:17:35 +08:00
Anton Kochkov
041118dbd7 Reformat the code 2023-08-03 21:08:07 +08:00
frmdstryr
7418f9c76c
Show disassembly var tooltips (#3206) 2023-07-30 16:37:52 +08:00
Anton Kochkov
b757f85350
Add few missing tr() string wrappers (#3204) 2023-07-07 09:24:19 +08:00
wargio
579ac236b6 Implement RzIL statement graph 2023-06-20 17:31:49 +08:00
Giovanni
4742003ff4
Update rizin & translation submodules (#3194)
* Fix plugins paths for windows builds due recent changes in rizin
* Disable openssl support for yara win
* Disable use_sys_yara in linux/osx/win builds
2023-06-20 16:40:57 +08:00
Lucas Hosseini
a5fa4103b2
Get rid of stale jump arrows in disassembly widget. (#3175)
This commit clears arrows from edited instructions, in order to avoid
stale arrows to remain drawn.

closes #3114
2023-05-14 12:59:13 +08:00
Giovanni
3ccccae291
Fix broken English in UI (#3184) 2023-05-13 10:22:05 +08:00
Lucas Hosseini
a6a7667852
Keep scroll history in decompiler widget. (#3177)
* Keep scroll history in decompiler widget.

This commit adds a `scrollHistory` on top of the rizin-managed
history, that keeps track of the scroll position within decompiled
functions.

* Fix clearing history upon init.
2023-05-13 05:57:35 +08:00
Lucas Hosseini
f1a421c9f6
Fix disassembly scroll history. (#3183)
Avoid calling `erase()` when `topOffsetHistoryPos + 1 >=
`topOffsetHistory.size()`.

closes #3181
2023-05-12 19:52:41 +08:00
Giovanni
5a12f7c626
Fix 'Rizin Graph' widget (#3179) 2023-05-11 13:44:33 +08:00
Lucas Hosseini
beec78b4e2
Keep topOffset history in disassembly widget. (#3171)
This commit adds support for a `topOffset` history (on top of the
rizin-managed history), that keeps track of the offset of the top
instruction in the disassembly widget.

closes #2970
2023-05-11 09:16:06 +08:00
Lucas Hosseini
b63ea5b3e4
Disable expandsOnDoubleClick for Functions widget. (#3172)
closes #2788
2023-05-09 09:49:43 +08:00
Lucas Hosseini
882f340481
Only jump to reference when double-clicking with left mouse button. (#3174) 2023-05-09 09:48:09 +08:00
Lucas Hosseini
8c89dfde8b
Show C type definition in tooltip in Types widget (#3169) 2023-05-06 09:53:40 +08:00
Florian Märkl
1f133741ab
Make ClassesWidget a ListDockWidget (#3152)
Adds Quick Filter and generic address-based context menu entries to the
existing ClassesWidget. The original ClassesWidget.ui is not used
anymore as the layout is provided by ListDockWidget and only adjusted.
The AddressableItemContextMenu may now also optionally be shown when
there no currently selected item by using
setShowItemContextMenuWithoutAddress(). This is used e.g. to display the
"Create Class" option when nothing is present in the list.

Fixes #2237

Co-authored-by: Tristan Crawford <tristanthtcrawford@gmail.com>
2023-03-30 19:33:31 +02:00
Anton Kochkov
b98eb64646 Remove pci hexdump parsing mode 2023-02-20 16:41:12 +08:00
wargio
7a96fad546 Fix graph export commands to use c api 2023-02-18 22:43:15 +08:00
wargio
f2e00c59c8 Fix #3113 - Wrong usage of rz_cmd_call instead of rz_core_cmd and @! 2023-02-18 22:07:47 +08:00
Anton Kochkov
bbd4961468 Use QFontMetrics instead of fontMetrics() 2023-02-08 21:26:43 +08:00
Rohit Bisht
5144c3f3b5
Support graph and disassembly scrolling via PgUp and PgDown 2023-01-19 09:49:54 +08:00
Tristan
93acec9682
Add text debounce to QuickFilterView & ComboQuickFilterView (#3072) 2023-01-11 10:38:23 +01:00
Florian Märkl
3d49c4b65a
Fix parsing of new types from C (#3068)
In the TypesWidget, right-click+Load New Types was opening the dialog
for editing an existing type instead of creating a new one. This would
either result in an error (for atomic types) or the old type being
deleted on success.
2023-01-07 20:05:41 +01:00
Paula
22613b52ed
Adding some functions to "banned" (#2816) 2022-11-06 08:32:30 +02:00
Theofilos Pechlivanis
22e8bf2381
Refresh Call Graph when renaming functions (#3049) 2022-11-01 22:01:56 +02:00
Theofilos Pechlivanis
ae1e15b7a2 Keep CallGraph widget active when seeking to other functions 2022-10-31 18:33:54 +02:00
Duncan Ogilvie
1ac814c1b9
Fix the padding in SimpleTextGraphView (#3046) 2022-10-25 12:16:48 +02:00
Alex Anderson
3224daa0ee
Add case insensitive string search (#2817) 2022-10-23 13:43:30 +02:00
karliss
2e414069c5
Support editing in hex editor (#3026) 2022-09-06 18:46:39 +03:00
Edd Barrett
e6db27135d
Fix build on 32-bit systems. (#3032) 2022-08-18 17:18:40 +02:00
Kārlis Seņko
ee7cfc1b89 Make library list in dashboard scrollbable when needed #3019 2022-08-15 17:31:17 +03:00
Kārlis Seņko
550c416c04 Don't refresh graph breakpoints during redraw. 2022-08-14 13:50:46 +03:00
karliss
41c4857ed9
Introduce some helpers to deal with rizin C API more cleanly. (#3020) 2022-08-13 23:12:57 +03:00
billow
617c79f976
Convert pdsf to API (#3010)
* convert `pdsf`
* remove unused
- `CutterCore.opcodes`
- `cmdList`
2022-08-11 20:46:18 +08:00
billow
a5b0dd3ed2
Convert commands(agJ, anj, pi) to rizin APIs (#3005) 2022-08-11 18:05:14 +08:00
billow
c263d4bd1b
Convert agcj command call to the API (#3012) 2022-08-11 01:18:56 +08:00
Jeremy Rifkin
278b4e19b9
Update GraphGridLayout documentation (#3000)
* Updated GraphGridLayout documentation

* Don't use potentially misleading  name "segment tree" .

Not exactly segment tree (although sometimes called that), and for the purpose of high level understanding how graph layout works doesn't matter what it is. Any data structure which provides required queries could be used.

Co-authored-by: Kārlis Seņko <karlis3p70l1ij@gmail.com>
2022-08-10 21:05:01 +08:00
Florian Märkl
db0d4d85a6
Use CutterJson for Signatures and rewrite JsonModel (#2997)
This fixes a double-free in getSignatureInfo() when the string was
already freed by the intermediate CutterJson. But actually just using
this CutterJson makes more sense than the string anyway, so let's do
that.
The old JsonModel rebuilt the entire structure, defeating the main
purpose of a custom model in comparison to the existing QTreeWidget.
And since we are holding the json structures ourselves anyway, such a
custom model does not have many benefits anyway.
2022-07-09 16:26:35 +02:00
billow
e4db94eb87
Convert to rizin APIs (#2973)
`rz_core_bin_get_compile_time`, `ij`/`CutterCore::getFileInfo()`,
`aaij`, `iVj`, `iEj`, `izzj`, `iMj`, `aeim-`, `aei-`, `tc`,
`rz_core_config_variable_spaces`, `o`, `oodf`
2022-07-02 15:49:13 +02:00
Florian Märkl
df71da8f53
Update rizin dev (#2987)
Relevant breaking commits in rizin:
9ea7c2fa5acd0b9b0c178a1b4316adc129e7c512
2987e035da827903329ec6433410899b985e2434
2022-07-01 22:49:58 +08:00
Florian Märkl
cb26142398 Fix many null derefs when opening no file 2022-06-23 01:09:45 +02:00
billow
06c8f15ce0
Convert Rizin command calls to the API (#2968)
* `es`
* `il`
* `wcr`
* `.ar-`
* `aets-`
* `drp`
* `ahts`
*  `e <val>=?`
* `fo`
2022-06-16 07:28:43 +08:00