Commit Graph

214 Commits

Author SHA1 Message Date
billow
756850ae27
Convert cmds {., afv[WR]j} (#3017)
* remove `asyncCmd` `asyncCmdEsil`,  `cmdjTask`,  `cmdEsil`, `cmdjAt`
* convert `afv[WR]j`
2022-08-14 12:10:18 +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
Kārlis Seņko
6b7b1d1450 Do not check "Built from source" in bug report template by default. 2022-08-11 13:28:23 +03:00
billow
a5b0dd3ed2
Convert commands(agJ, anj, pi) to rizin APIs (#3005) 2022-08-11 18:05:14 +08:00
Kārlis Seņko
ddefc0663a Don't leak memory in bb highlighter. 2022-08-10 16:34:34 +03: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
91fce8220b
Remove direct download from update check (#2989)
Hardcoded prediction of filenames for future releases is too prone to
break, which is what happened with v2.1.0.
So better to provide the link to the release page only.
2022-07-02 14:23:13 +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
Giovanni
247ab94b71
Download and install sigdb option (#2949)
* Download and install sigdb option and disable swift demangler when libswift is installed
* Remove dir.prefix and use rz_core_analysis_sigdb_list for sigdb
* Use a different color for flirts
* Updated to rizin dev
* Use rz_path_set_prefix to set the prefix path on OSX bundle
2022-06-06 11:27:13 +02:00
billow
c9e8686ecb
Convert Rizin commands to the API calls 2022-05-22 16:51:54 +08:00
billow
de5c1a5154
Convert from Rizin commands to the API for w (#2926) 2022-04-10 11:43:42 +08:00
billow
ea519df01e
Convert various debug code to C API (#2913) 2022-04-02 09:44:42 +02:00
Nirmal Manoj
b92ad19148 Use RzAnnotatedCode from JSDec (pddA) 2022-03-29 18:06:29 +02:00
SR_team
b9df65a6c9
Update includes compat with KF5.92 on some distributions (#2912)
With KF5.92 headers KSyntaxHighlighting/{header}.h copied to KSyntaxHighlighting/ksyntaxhighlighting/{header}.h. Headers KSyntaxHighlighting/{Header} now include ksyntaxhighlighting/{header}.h instead of {header}.h. Than on some distros like ArchLinux headers KSyntaxHighlighting/{header}.h removed, because it copies of KSyntaxHighlighting/ksyntaxhighlighting/{header}.h and because KSyntaxHighlighting/{Header} now include ksyntaxhighlighting/{header}.h.
2022-03-28 14:12:09 +02:00
Florian Märkl
9441c3b470 Replace usage of wcj by C API 2022-03-14 10:35:08 +01:00
Akihiko Odaki
d34349b49f
Use rizin instead of Qt to parse JSON (#2902)
Qt truncates integers to 52-bit, corrupting e.g. memory addresses. Use
rizin's JSON parser, which can parse integers whose size is up to 64
bits.
2022-03-14 09:04:49 +01:00
Theofilos Pechlivanis
2dbf136de8
Save and load the layout of the Functions widget (#2844) 2022-02-05 09:00:08 +02:00
Petros S
2b50e2722b
Move more common disassembly-previewing functionality to namaspace (#2849) 2022-02-05 08:55:10 +02:00
billow
97b3aaaa3f
Convert rizin commands to C apis (#2861)
* "fr" renameFlag
* "f-" delFlag
* "f" addFlag
* "fsj" getAllFlagspaces
* "fj" getAllFlags
* "afn" renameFunction
* "af-" delFunction
* "af" createFunctionAt
* "eco"
* "ecd"
2022-01-27 10:06:20 +01:00
Riccardo Schirone
009c8dffb4
Update Rizin to dev and use CMake config files (#2855)
API usage has been adjusted.
There are now also cmake config files directly installed by Rizin itself, so we don't need to keep a custom FindRizin.cmake file in Cutter. This remove that file and just uses `find_package(Rizin COMPONENTS Core)`, which will use the cmake files installed on the system.
2021-12-22 09:57:58 +01:00
Petros S
d85383fcfc
Support for previewing in the Graph widget (#2797)
Common functionality has been moved to the DisassemblyPreview namespace.
2021-12-05 08:53:45 +00:00
AdavisSnakes
af01134ae3
Made BugReporting.cpp output match bug_report.md (#2808) 2021-10-17 19:02:27 +02:00
Petros S
552cd6dff6
Add option to disable the preview when hovering over the assembly (#2795) 2021-10-09 18:17:52 +02:00
Florian Märkl
dada19cf1c
Various improvements for native macOS UI (#2776) 2021-09-23 16:09:51 +02:00
Riccardo Schirone
99070e86b9
Use new Rizin API instead of cmdRaw/cmdRawAt (#2770)
* Use new Rizin API instead of cmdRaw/cmdRawAt
* add CutterRzListForeach as a foreach-keyword for clang-format
2021-09-23 10:15:03 +02:00
Anton Kochkov
5595193b70
Minor renames of analysis-related things (#2761) 2021-09-15 20:48:02 +02:00
Anton Kochkov
57f34bfb98
Use open API instead of commands (#2757) 2021-09-14 23:40:01 +02:00
Florian Märkl
8fd35f2109
Replace eco Command with API (Fix #2751) (#2759) 2021-09-14 16:59:04 +00:00
Maria
417a0a2221
Complete Color Theme Lists (Fix #2672) (#2752) 2021-09-14 15:24:47 +02:00
Kamay
a38d77c969
Improved function widget (#2659) 2021-07-25 09:33:51 +03:00
Kārlis Seņko
8da572d6ec Fix crash due to language handling when opening settings.
Qt doesn't have native language name for some of them. Trying to
capitalize it caused crash.

Use `QLocale(QString)` constructor instead of manually looping and
comparing. The old code incorrectly matched "tr" as "trv".

Don't try to capitalize language name:
* In many cases Qt already returns it capitalized
* capitalization doesn't make sense for some scripts
* in general case splitting first "character" is a hard problem
* in some languages even with latin based scripts name of language isn't
a proper noun which needs to be capitalized
2021-04-24 13:13:36 +03:00
Kārlis Seņko
585dc961db Qt6 keyboard and mouse API compatibility
* Some of the API replaced int with QKeyCombination, use typedef in
cutter code
* Use of + operator depracted, replace with recommended "|" operator
* QMouseEvent globalPos and localPos renamed to globalPosition and
position, replace with helper function or use of integer position which
wasn't renamed.
2021-04-24 13:13:36 +03:00
Kārlis Seņko
2799390314 QT6 color handling changes
* use typedef for floating point value used in color related API
* changes in screen grabbing API used by color picker
2021-04-24 13:13:36 +03:00
Kārlis Seņko
988918a038 Various fixes for functionality deprecated or removed in QT6. 2021-04-24 13:13:36 +03:00
Kārlis Seņko
fe92aaeb3d Update usage of deprecated qt model and regex API. 2021-04-24 13:13:36 +03:00
karliss
d73d486ca0
Add setting import from Cutter before RadareOrg to rizin renames. (#2588) 2021-03-06 18:26:58 +01:00
yossizap
de234e600e
Add dbg.trace_continue to debug options (#2613) 2021-02-26 19:03:28 +02:00
Itay Cohen
42f01fcf5d
Support loading projects from the command line (#2606) 2021-02-24 08:10:01 +02:00
Alexis Ehret
a47c2bb5aa
Add clang-format linter CI jobs (#2604) 2021-02-19 16:32:58 +02:00
optizone
00d2245538
refactor DisassemblyLeftPanel::paintEvent (#2559) 2021-02-15 08:46:57 +02:00
ITAYC0HEN
48ae2150a9 Apply clang-format 2021-01-24 18:34:16 +02:00
Anton Kochkov
88478ffb30
New JSDec home (#2563)
Switch from r2dec to jsdec
2021-01-16 11:48:31 +01:00
karliss
18e98e7868
Don't compile files for features that are disabled. (#2561)
Don't wrap whole cpp file in ifdef, it confuses clang-format.
2021-01-11 23:49:54 +02:00
Florian Märkl
ac8c0e4175
Add Setting for Minimum Font Size in Graphs (#2524) 2020-12-19 16:04:48 +02:00
Florian Märkl
5bf513c45b
Add RizinFunctionTask and common base class with RizinCmdTask (#2520) 2020-12-18 10:47:50 +01:00
Florian Märkl
269cedd36e
Fix Warnings by g++ 10.2 (#2523) 2020-12-17 20:14:40 +01:00
Anton Kochkov
70cef2c1af
More R2/Radare -> Rizin renames (#2516) 2020-12-16 11:59:23 +01:00
Florian Märkl
58745547a2
Update Rizin with RizinTask (#2517) 2020-12-16 10:51:53 +01:00