Commit graph

1996 commits

Author SHA1 Message Date
Premade
31c1958c8d
remember IO mode for recent files (#3433) 2025-05-12 21:14:40 +03:00
karliss
31f2db270c
Missing translation strings (#3478) 2025-05-12 00:08:48 +03:00
Karliss
a1e9479e34 Update translations. 2025-05-07 22:29:01 +03:00
karliss
f60227f6d6
Improve disassembly arrow position accuracy. (#3480)
* Improve disassembly arrow position accuracy.

Query line position from textEdit instead of doing naive lineHeight*row. Any differences in rounding logic betwen Qt and Cutter is sufficient to offset arrow by a line or more.
2025-05-07 12:57:43 +03:00
Anohkka
ae2ca5b50d
Addressable context menu improvements (#3459)
* Add breakpoint action
2025-05-02 14:12:56 +03:00
karliss
8723a470c6
Make CutterCore::core API harder to misuse. (#3473)
Don't allow using RZCoreLock returned by Core()->core() as temporary expression.
2025-05-01 07:15:39 +03:00
Anohkka
7f54bb46c9
Add "Add Flag" menu option to the hex dump viewer's context menu (#3450)
* Refresh hex widget when a comment is added
* Add "Add Flag" menu option to the hexdump widget
2025-04-29 07:17:11 +03:00
karliss
5cf5d0bf32
Update appstream metadata. (#3472)
* missing release versions
* add developer
* remove incorrectly used update_contact
2025-04-28 20:36:34 +03:00
karliss
5518173db4
Fix multiple cases of translatable strings not getting recognized (#3470)
* SearchWidget - no default context available in static functions
* MainWindow - unnecesarry macros interfering with context detection
* MainWindow - lupdate getting confused by macro definition that has ternary operator
* Xrefs, Classes, Flags models - missing Q_OBJECT macro

Closes #3458
2025-04-28 13:11:59 +03:00
Karliss
54ea9e0351 Undo stdio redirections during exit. 2025-04-25 23:20:29 +08:00
Karliss
85fc9b5813 Fix crash caused by wrong destruction order during exit 2025-04-25 23:20:29 +08:00
karliss
7a559b879c
Update translations. (#3460)
* latest translation repository version
* add fi and pl translations to UI (don't add languages which are currently at 0% or have 2 character language code conflict)
* 2 long standing typos in English text spotted by translators
2025-04-24 20:03:43 +03:00
Florian Märkl
2a0242b1df
Update rizin and string search API usage (#3454)
Relevant API change in Rizin:
fe36e213e2ed4c463daa65d8ad8c819d46e8da72

This also fixes string literals to be searched as literals rather than
regex.
2025-04-20 19:59:42 +08:00
karliss
b7b99b6a72
Update disassembly color theme ligthness categories (#3453)
* fix bug causing unrecognized color themes to have black background
2025-04-19 13:00:07 +03:00
karliss
b697194898
Use correct style for search widget disassembly preview. (#3452)
Closes #3441
* suppress warning by explicitly initializing serch mode info fields
2025-04-19 12:59:01 +03:00
Anohkka
dfd189dae4
Add a scrollbar to the disassembly window (#3430)
Co-authored-by: Karliss <karlis3p70l1ij@gmail.com>
2025-04-18 15:37:03 +03:00
Giovanni
8412fb203d
Use C api for search feature (#3449)
* Use C api for search.

- ROP & Asm search use the old logic (moved under getAllSearchCommand)
- Adds Crypto & Magic search
- Adds missing search locations (bin.segment, bin.segments, code, io.sky, analysis.fcn, analysis.bb, dbg.program)
- Changed font to Inconsolata of code & data column.
- Adds detail field in SearchDescription
- Adds QT_TR_NOOP for allowing translation of boundaries names
- remove nonfunctional search cancel callback
- better searchOption memory management
- temporary buffer memory management
- follow Cutter naming convention
- use Q_TR_NOOP correctly (you need to call tr on the value)
- refactor repetetive searchWidget code
- more logical search region sorting order and default value (use vector instead of map)
- remove empty result warning when no search text entered
- Remove dead code & prevent deadlock

---------

Co-authored-by: Karliss <karlis3p70l1ij@gmail.com>
2025-04-17 17:57:43 +08:00
karliss
b253eddada
Small search fixes (#3448)
* trim extra newline from string search results
* limit the scope of enter to search shortcut, closes #3439
2025-04-14 12:50:49 +03:00
Florian Märkl
69cc54b74b
Update rizin to latest dev (#3418)
* Update rizin to latest dev

Relevant breaking changes in rizin:

rz_str_escape_utf8_keep_printable: 29e25fd895d605d82540f5d4aefdac277422b077
plugin hash tables: 30953d3bf677c20ba60831202fe78298144efe1f
rz_core_debug_continue_until: 87b75910b5b8224e3eebb73c0eb22cf19a05798b
rz_core_get_boundaries_prot: 266fe6b3c701946a24b2e478246bdd1f38cac844
search commands: 710a33b6efd14813c8ed2d91449268ab25a529bc

* Bump Rizin to latest dev.

* Fix search with latest Rizin.

Also adds regex searches.

* Remove dangerous rebase bin function.

* Remove unused vars.

* Remove debug printfs

* Run clang-format

* Warn and return empty results instead of asserting.

* Escape arguments for new search commands.

* Report searched bytes only with offset and length.

* Run clang-format

* Update previews of search widget.

* Wrap the escaped argument into quotes to separate it from sring search flags.

---------

Co-authored-by: Rot127 <unisono@quyllur.org>
2025-04-10 11:19:19 +00:00
karliss
6a68b6fa11
Initialize default environement for debugger. (#3410) 2025-02-05 13:54:42 +02:00
karliss
287b139145
Fix input target logic for non english languages. (#3413) 2025-02-05 11:40:01 +02:00
karliss
f87a3143e9
Update appstream metadata information (#3403) 2025-02-05 15:46:02 +08:00
karliss
d8bd8d4b46
Fix thread and process widget API usage to match dpT and dp behavior. (#3411)
Add PC and TLS columns to thread widget.
2025-02-03 11:27:09 +02:00
Karliss
cb6035a32d Fix debug step over and out.
The old code didn't make sense: capturing by reference function local variable in a lambda which will be executed as async task, checking result of async task before the task was even started.
2025-01-30 19:14:21 +02:00
Karliss
8ef0590869 Debug shortcut polish
* Avoid  F5(continue debug) shortctut conflicting with  refresh all by switching  QKeySequence:Refresh to Ctrl+R.
* Confirm debug arg dialog using Ctrl+Return
* Add Stop debug action to debug menu in main menu bar
2025-01-30 19:14:21 +02:00
karliss
3652cb7b23
Specify parent window for popups. (#3406)
* Specify parrent window for popups.

Message boxes without parent are almost always a mistake. Such message boxes
* Aren't properly position on top of current window, instead they get placed in the corner of screen possibly away from main window.
* They get treated as separate window by window manager, but they still prevent proper interaction with main window. If you alt tab the message box can get lost, resulting in confusing behavior where you don't know why you can't interact with main window.
2025-01-22 13:39:35 +02:00
Karliss
db140ee3fb Fix crash while editing asm.
Empty input field resulted in empty byteArray and constData pointing to null, which rz_hex_bin2str didn't expect.
2025-01-10 22:00:09 +02:00
Lorenzo Santangelo
6e894a1e60
Add nicer displaying of 1 instruction loops (#3396)
* fix #3369
2024-12-01 22:21:44 +02:00
karliss
93a06f5edd
Fix build failure against PySide >= 6.8 (#3395) 2024-11-29 18:18:46 +02:00
karliss
f2692cb847
Fix function widget unintentional shortcut activation. (#3389)
Happens when typing in filter. Only observed using Qt5 Appimage builds.
2024-11-10 15:38:16 +02:00
Karliss
e7806bcef4 Add test which compiles the example plugin against release package. 2024-09-13 13:29:24 +03:00
karliss
c817c6b53f
Use qt6 by default (#3366)
* Use Qt6 by default.
* Replace a potentially ambigious CUTTER_QT6=On/Off option with CUTTER_QT=(5|6)
* Add support Qt6 version of KSyntaxHighlighter
2024-08-01 22:14:41 +03:00
karliss
96696444cc
Update cutter-deps to QT6 (#3363) 2024-07-26 21:53:32 +03:00
Florian Märkl
f69ce2577e
Fix io.va checkbox (#3353)
The value of the checkbox was never used.
2024-06-05 09:19:24 +02:00
Florian Märkl
fdfc7192c5
Update Rizin to latest dev (#3352) 2024-06-05 09:19:09 +02:00
Vitaly
38c683b519
Added metainfo file to the installation. (#3346)
Switched from hardcoded directory name to CMAKE_INSTALL_DATAROOTDIR
use.

Removed the COMPONENT option from the desktop file installation
entry since the file is not a development file and is always needed.

Added missing GenericName and Comment to the desktop file.
2024-05-29 19:53:52 +03:00
Karliss
8251f7ec68 Use the addressable item list functionality for global varible widget. 2024-05-19 14:49:42 +03:00
Zack08110
3e50e5f2ad
Fix: Globals Widget Edit and Delete Actions (#3341)
closes #3340
2024-05-17 12:00:58 +03:00
Giovanni
de46cb109b
disable openssl for libyara on linux/mac builds and use tagged version (#3332)
* disable openssl for libyara on linux/mac builds and use tagged version
* Bump rizin version
2024-04-22 15:22:09 +08:00
Ofek
bce9fe7732
Update GraphGridLayout Documentation (#3325) 2024-04-08 23:00:51 +03:00
Anton Kochkov
f8c7df8260
Update Rizin to the latest dev (#3319) 2024-03-19 17:51:58 +08:00
John Helmert III
43950242ae ThreadsWidget: make ColumnIndex a class member
This brings ThreadsWidget into alignment with ProcessesWidget and
others which have column index enumerators as class members. This also
avoids cluttering global scope with generic names, making it easier to
avoid C++ ODR violations with differing definitions.

Closes: #3316
Signed-off-by: John Helmert III <ajak@gentoo.org>
2024-03-11 21:59:06 +02:00
John Helmert III
1a09a5cbe7 ProcessesWidget: make ColumnIndex a class member
The same name with a differing definition clashes with ColumnIndex from
ThreadsWidget, which violates C++ ODR (-Werror=odr). This brings
ProcessesWidget in line with other widgets that define the column
index enums within their respective classes.

Signed-off-by: John Helmert III <ajak@gentoo.org>
2024-03-11 21:59:06 +02:00
Anton Kochkov
dbb49bbf98 Do not use removed rz_bin_get_info() API 2024-03-03 13:51:42 +08:00
Karliss
6b660e7a48 Fix multiple crashes related to incorrect rz_iterator usage.
RzAnalysisBytes are owned by the iterator, so returning analysis bytes while destroying iterator owning it is incorrect.
2024-02-27 23:37:57 +02:00
wargio
2106551d00 Remove JSDec as decompiler and use rizin C api 2024-02-25 22:35:51 +08:00
Anton Kochkov
c20d2c61d6 Bump version to v2.4.0 2024-02-24 23:39:01 +08:00
Anton Kochkov
1a52a7eea4 Fix compilation error of undefined TRUE 2024-02-22 00:54:25 +08:00
Anton Kochkov
8574f0b0e4 Fix rz_core_analysis_bytes() API use 2024-02-22 00:54:25 +08:00
Anton Kochkov
acbb418447
Update translations (#3295) 2024-02-15 16:41:02 +08:00