Commit Graph

1888 Commits

Author SHA1 Message Date
optizone
00d2245538
refactor DisassemblyLeftPanel::paintEvent (#2559) 2021-02-15 08:46:57 +02:00
yossizap
8f89d1641b
Add reverse debugging (#1918)
* Add initial reverse debugging support

* Add reverse debug icons

* Added an option to stop the debug session and enabled continue and step back

* Added a new icon for stop trace and recolored start trace

* Toggle reverse debug actions when not tracing

* Stop existing trace sessions in stopDebug

* Ported to Rizin

* Set reverse icons to invisible when not in a trace session instead of disabled

* Updated rizin submodule

* Cleaned up step and continue events

* Apply clang format
2021-02-13 17:35:57 +00:00
Florian Märkl
7db5274032 Update Org/App Settings for Qt 2021-01-25 22:09:19 +01:00
Florian Märkl
b0cef7e634 Change Executable to Lowercase and use re.rizin.cutter everywhere 2021-01-25 22:09:19 +01:00
ITAYC0HEN
48ae2150a9 Apply clang-format 2021-01-24 18:34:16 +02:00
ITAYC0HEN
a62f138e2f Add support for clang-format 2021-01-24 18:34:16 +02:00
Riccardo Schirone
c82fc5b44f
Use Rizin seek API instead of commands (#2581) 2021-01-24 17:03:05 +01:00
Florian Märkl
0229e7ed8b
Don't print Warnings for whitespace-only JSON Failures (#2579) 2021-01-24 14:12:01 +01:00
Florian Märkl
3c2b263de7
Make SearchWidget set search.in only locally (#2578) 2021-01-24 14:11:46 +01:00
GustavoLCR
3c8f0d905b
Activate window before showing close dialog (#2573) 2021-01-23 17:09:44 +02:00
Ray
bb6a9e2a91
Update the icon on macOS to match the icon grid of Apple design guideline (#2571) 2021-01-23 10:39:56 +01: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
karliss
562979bcff
Remove qmake (#2546)
* Remove qmake project and move some variables directly to CMake project
* Remove meson and update docs.
* Add instructions for basic macOS build.
2021-01-10 13:07:39 +02:00
karliss
29cbd06ab2
Run macos packaging in GHA. (#2529)
* Enable running of macOS packaging in GHA, most of the work done in dedbabde56
* Cleanup breakpad handling
* Have single version of main executable in folder expected by macOS and most tools instead of executable+symlink+shell script
* Handle Breakpad library lookup in more CMake way using FindBreakpad just like it's done on other platforms and packages
* Refactor error handling in some of the shell scripts to use `set -e` instead of `|| exit 1` for each command.
* Fix DMG background setup
2021-01-02 19:57:29 +02:00
Ernest1338
276b53fd75
Fix: Core plugin list doesn't work [#2542] (#2543)
The command had been renamed more than 2 years ago.
2020-12-30 22:48:52 +02:00
yossizap
a78613904e
Fix debug seek to PC (#2527) 2020-12-19 23:32:51 +02:00
Florian Märkl
ac8c0e4175
Add Setting for Minimum Font Size in Graphs (#2524) 2020-12-19 16:04:48 +02:00
karliss
c985fdc1b1
Run cutter appimage packaging in GHA. (#2490)
* Run cutter appimage packaging in GHA.
* Update cutter-deps.
* Switch to older visual studio due to pyside having problems parsing MSVC
headers.
* Take GIL in the injected code fragment #2511.
2020-12-19 12:43:33 +02:00
Florian Märkl
5bf513c45b
Add RizinFunctionTask and common base class with RizinCmdTask (#2520) 2020-12-18 10:47:50 +01:00
Anton Kochkov
601dc248a6
Remove unused logo (#2518) 2020-12-17 20:14:57 +01:00
Florian Märkl
269cedd36e
Fix Warnings by g++ 10.2 (#2523) 2020-12-17 20:14:40 +01:00
Florian Märkl
0574c50981
Update Rizin (#2522) 2020-12-17 20:13:30 +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
xarkes
00f6d47357 First iteration at renaming remains of radare2 2020-12-14 19:39:29 +01:00
Schrijvers Luc
3b5c6ff9c0
Fix build for Haiku which doesn't have O_ASYNC yet (#2485) 2020-12-13 15:39:23 +02:00
Florian Märkl
7541c8910d
Update Rizin 2020-12-08 10:46:30 +01:00
Florian Märkl
46f7a8e4f6
Update Rizin for defines 2020-12-07 19:20:47 +01:00
Florian Märkl
5218fa0fd6
Update Rizin 2020-12-07 09:19:18 +01:00
Florian Märkl
dedbabde56
Add macOS Packaging in CMake (#7) 2020-12-07 09:19:18 +01:00
Florian Märkl
8c35ebb837
Restructure CMake files to start in the root of the tree (#6) 2020-12-07 09:19:16 +01:00
Florian Märkl
85042000e8
Add Support for new Projects (#3) 2020-12-07 09:17:58 +01:00
Florian Märkl
78dcba4c26
More Rizin Updating in CMake and use it in AppVeyor (#5) 2020-12-07 09:17:58 +01:00
Florian Märkl
b6ec01a7b0
Set XrefsDialog Parent (#4) 2020-12-07 09:17:57 +01:00
Florian Märkl
a80221641e
Optimize remapAnnotationOffsetsToQString() 2020-12-07 09:17:57 +01:00
Florian Märkl
2b8ac6ecf7
Port to Rizin 2020-12-07 09:17:56 +01:00
Petros S
d813b7ac8c
Add preview functionality to DisassemblyWidget when hovering code (#2459)
* Add preview functionality to DisassemblyWidget when hovering code
2020-12-05 09:26:26 +02:00
xarkes
b02100b66b
Reworked renaming in disassembly widgets (#2468) 2020-12-04 18:08:56 +01:00
Yuhao Bi
b07bffc5fe
Fix build on centos7 gcc4.8 (#2492) 2020-12-01 23:17:09 +02:00
karliss
f9bde4a2ff
Start making adjustment for qt6 compatibility. (#2463)
* Introduce cmake option for using Qt6, build doesn't work fully yet.
* Recursive mutex, QActionGroup, QComboBox::AdjustToMinimumContentsLength
* Cleanup dock locking
2020-11-30 09:42:13 +02:00
Pulak Malhotra
ef9b1328f4
Adding Labels to Graph Blocks in Disassembly (#2482) 2020-11-29 16:41:13 +02:00
smhaziq
ca3d8ce78f
Show comment column in each panel that have "add comment" option in the context menu (#2441) 2020-11-19 20:17:28 +02:00
xarkes
e236f6b0fc
Remote Debug dialog improvements (#2472)
Co-authored-by: nk521 <nk_mason@protonmail.com>
2020-11-18 13:15:36 +01:00
xarkes
5d84844587
Fixed word highlighting in DisassemblyWidget (#2473)
* Fixed word highlighting in DisassemblyWidget
2020-11-15 22:26:49 +02:00
karliss
81ef309e09
Remove duplicate aplication of scaling factor. (#2461) 2020-11-04 18:39:12 +02:00
Hikaru Terazono
8ba2164d00
Trackpad gesture support for graph views (#2453)
Zooming using pinch gesture.
2020-11-03 08:23:12 +02:00
Petros S
6039dab2ff
Use the new connect syntax (#2460) 2020-11-03 08:11:50 +02:00
Josh Maxwell
dd4a40bcc1
Fixes buggy line highlighting (#2444)
* Calling updateCursorPosition before moving cursor.

Previously the call to readCurrentDisassemblyOffset in
updateCursorPosition was causing essentially an off-by-one bug since the
cursor was moved prior to checking the current offset.

* Separated highlightCurrentLine and highlightPCLine logic so they can be
called independently when needed.

Previously logic for highlighting the PC was included in highlighting
the current line. This caused the PC to not be highlighed when the
current line was not on-screen and being highlighted.
2020-10-14 01:01:04 +03:00
xarkes
1cbbc45678
Automating translations updates (#2218)
* Automatically push new strings to cutter-translations
2020-10-10 21:00:34 +03:00
karliss
d971f30d25
Set executable icon in windows CMake build. (#2443) 2020-10-10 13:52:56 +03:00
karliss
c49cbc9f01
Add cmake script for packaging r2dec on windows. (#2425) 2020-10-03 13:50:57 +03:00
Stephan Bridger
38b317e619
Make Hexdump parsing view read-only (#2434) 2020-09-30 20:15:44 +03:00
karliss
ad66718f37
Add CMake code for packaging r2ghidra on windows. (#2422) 2020-09-06 11:52:13 +03:00
karliss
1966c76ba7
Update windows CMake breakpad code. (#2421) 2020-09-05 11:25:34 +03:00
karliss
1adc30794b
Update cutter version to 1.12.0 (#2419) 2020-09-03 14:04:24 +03:00
karliss
fc83965555
Do not change the internal widget name to preserve layout. (#2418) 2020-09-03 11:57:49 +03:00
karliss
d0a3a042f5
Update Cutter versions and lock decompilers. (#2416) 2020-09-02 19:49:01 +03:00
karliss
ff11944fe0
Update translations. (#2413) 2020-09-01 15:09:32 +03:00
karliss
078f40101f
Handle non ASCII characters in decompiler widget. (#2412) 2020-08-31 19:45:18 +03:00
karliss
503907909f
Create SyntaxHighlighter based on RAnnotatedCode. (#2409) 2020-08-31 09:00:55 +03:00
karliss
6fc902894d
CMake windows python packaging (#2406)
* First version of cpack scripts
* Fix python binding building using CMake on windows
* Package python and pyside in the cpack package
* Run windeployqt as part of packaging to include the Qt dlls and vcruntime installer
2020-08-30 23:23:41 +03:00
Oriol Castejón
2c84e07bfa
Add more options to the Analysis widget (#2405) 2020-08-30 16:17:14 +03:00
NIRMAL MANOJ C
d7ef6e9e91
Save layout of the Decompiler Widgets (#2410)
* Create decompiler widgets when loading a layout
* Do not translate the dock widget names used for saving layout.
2020-08-30 14:26:56 +03:00
NIRMAL MANOJ C
691de14853
Synchronized Decompiler and Enabling Multiple Decompiler Widgets (#2402)
* Sync/Unsync decompiler widgets.

* Add multiple decompiler widgets with its own decompiler and functions.

* updateWindowTitle() in widgets for decompiler, disassembly, and hexdump.
2020-08-29 10:45:47 +05:30
sagcan
ec22b01086
Disable Plugins menu if no plugins are installed (#2318) (#2401) 2020-08-28 21:17:31 +03:00
sagcan
013bdba902
Center 'Rename Function' dialog for Disassembly and Decompiler view (#2408)
Previously the 'Rename Function' dialog would pop-up in the top left
corner if triggered inside the Disassembly or Decompiler view. This
commit changes the behaviour so that the Dialog will now be pop-up in
the center of the MainWindow by simply replacing the 'parent' pointer of
the QInputDialog object with that of the mainWindow (this->mainWindow)
2020-08-28 21:06:52 +03:00
Rachel Mant
1955288058
Add shortcut for Advanced string definition and set focus to size specifier (#2340) 2020-08-25 06:44:33 +03:00
tsunekoh
4fe94cd959
Do not open multiple setting dialogs to fix #2314 (#2392) 2020-08-22 19:49:21 +03:00
NIRMAL MANOJ C
b7d1059a1b Decompiler Documentation + Clean up (#2374) 2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
1c86f54c95 Edit/Rename Variables Actions for function variables (#2357)
* Edit Function Variables Action

* Rename Function Variables Action

* CutterCore::renameFunctionVariable
2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
6ed32d5d1d Xrefs action for references (#2352)
* X-Refs for references (functions, global variables, constant variables with addresses) in the decompiler.
2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
b42a19e995 Display jumping fix useless decompilation (#2351)
* save scroll position and reset to that if the newly decompiled function is the same as the previous one

* instructionChanged signal replaced completely by breakpointsChanged in toggle/add breakpoint functions.

* removed addbreakpoint(QString) and toggleBreakpoint(QString)
2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
37fc01478f Global variable actions and Show in action and refactoring (#2295)
* Show in action for global variables and functions
* Copy address of global variable or function referenced by the cursor selection
* Rename global variable
2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
eef9baa300 Action to rename functions in the decompiler context menu (#2286) 2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
88f837465f Intercept right-click event in the decompiler widget (#2281)
Update cursor before opening context menu for right-click
2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
8b4c58e07d Comment Menu for the Decompiler Context Menu (#2265) 2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
a4174271f6 Breakpoint Menu and Debug Menu in the Decompiler Context Menu (#2260) 2020-08-18 23:26:44 +05:30
NIRMAL MANOJ C
ea9f3f1831 Skelton for dedicated context menu + action to copy selection (#2256) 2020-08-18 23:26:44 +05:30
karliss
48192d799a
Get rid of circular include between Cutter.h and CutterPlugin.h (#2390) 2020-08-14 21:30:51 +03:00
yossizap
83cd7e8698
Update R2 submodule (#2378)
* Handle r2 sdb include path changes.
2020-08-13 17:08:39 +03:00
Gireesh
63d3acb8a2
Add "Documentation" button to the "help" menu (#2381) 2020-08-11 15:52:52 +03:00
Oriol Castejón
9e346275c5
Add new Analysis section to the Preferences widget (#2332) 2020-08-10 19:12:38 +03:00
karliss
724d3f26b4
Adjust r2 paths (#2338) 2020-08-08 18:43:43 +03:00
karliss
d6d2e90028
Clazy warnings (#2371)
* Refactor some of the connect calls.
* Refactor more old style signal connect calls.
2020-08-07 17:18:42 +03:00
karliss
c149f38f11
Output colors in rgb:nnnnnn format instead of #nnnnnn. (#2376)
ec name #nnnnnn can get mixed up with comment.
2020-08-07 17:01:50 +03:00
karliss
dcb9970f91
Fix an off by 1 bug during hexwidget cursor blinking. (#2368)
1 pixel line sometimes remained on during hexwidget cursor blinking.
2020-08-04 21:19:17 +03:00
Radwan Selo
2cfa4916c3
Xrefs enhancement (#2362)
* Add number of found results to xrefs dialog
* Hide xref from if the item is not an VA
2020-08-03 20:11:02 +03:00
karliss
8f5fbeddde
Refactor old style macro based signal connect. (#2360) 2020-08-03 12:13:39 +03:00
karliss
45daf2d1d5
Prevent potential crash when opening theme editor dialog. (#2359) 2020-08-02 17:32:17 +03:00
karliss
7c9c7e6fe4
Add symbol exports. (#2345)
* Add symbol exports required for external native plugins to work on Windows
* Make Linux build behave more like Windows so that missing export
annotations can be more easily detected.
2020-08-01 17:14:30 +03:00
NIRMAL MANOJ C
f2a867ca28
Xref for function variables in disassembly view (#2297) 2020-07-28 22:49:50 +03:00
Itay Cohen
e0bfcccb87
Change "Run Script" to "Run radare2 script" (#2330)
* Improve "Run script" title to make it more clear
* Update docs to reflect the change
2020-07-25 20:44:03 +03:00
Jan Deinhard
73f99c696f
Fix sorting resources by index, vaddr and size (#2308)
* Fix sorting resources by index, vaddr and size
2020-07-25 11:32:44 +03:00
karliss
00595da5ab
Update version to 1.11.0. (#2327) 2020-07-24 14:07:07 +03:00
karliss
7ca6a1eda0
Update translation submodule and add the new languages. (#2320) 2020-07-23 21:08:16 +03:00
karliss
a0eb9e3fa9
Remove debug output. (#2315) 2020-07-22 11:57:26 +02:00
karliss
6ba1834f6d
Update version number to 1.11.0-rc1. (#2313) 2020-07-21 22:00:34 +03:00
karliss
249ad7ad0e
Don't use @a: for listing cpus. (#2307)
For some architectures like 8051 doing @a: has sideeffects.
2020-07-21 14:08:35 +03:00
karliss
f92c42d09e
Reset last seen memory widget during layout switching. (#2303) 2020-07-21 12:40:53 +03:00
Itay Cohen
c923576b7e
Fix the "all green" navbar (#2305)
* Specify the search range for search.in
* Add  config_set(key, const char*) overloads to prevent char* being automatically casted to bool and config_set(key, bool) being chosen unexpectedly.
2020-07-20 23:11:31 +03:00
karliss
e14d0d8ef6
Update r2 to 4.5 and fix renamed configuration variables. (#2288) 2020-07-20 15:47:48 +03:00
karliss
65a668943a
Reorganize R2GraphWidget UI (#2298)
* Reorganize R2GraphWidget UI.
2020-07-19 22:00:05 +03:00
karliss
e5d7bd660a
Add more graph widgets (#2273)
* Add generic r2 graph.
* Add Callgraph widgets
* Add more graphviz layouts.
* Fix some edge cases in graphGridLayout that were more likely to appear in callgraphs
* Refactor the code moving some of the logic out of disassemblyGraphWidget making it more reusable
2020-07-16 11:05:10 +03:00
itayc0hen
ca84c3d1dc Bye bye RenameDialog 2020-07-15 17:36:25 +03:00
itayc0hen
02ce60d1af Use QInputDialog in Disassembly context menu 2020-07-15 17:36:25 +03:00
itayc0hen
447d2cfa20 Use QInputDialog in Functions widget 2020-07-15 17:36:25 +03:00
itayc0hen
21aef22c45 Use QInputDialog in Flags widget 2020-07-15 17:36:25 +03:00
itayc0hen
d6edae4ced Remove redundant renaming function in Main Window 2020-07-15 17:36:25 +03:00
itayc0hen
9c0d5d72d1 Use QInputDialog in Classes widget 2020-07-15 17:36:25 +03:00
karliss
2a10a7733f
Update r2 submodule. (#2263) 2020-07-04 17:54:23 +02:00
karliss
8c52627312
Graph optimize placment (#2255)
Add optional placement optimization pass which tries to push everything together and ignores the grid.
2020-07-03 20:09:37 +03:00
Surendrajat
4685f4faaf
Rename a context menu item (#2267) 2020-06-27 21:51:05 +03:00
batuhanakcay
e88ad82968
Implemented No Results Found warning when search result is empty (#2258) 2020-06-24 10:50:51 +03:00
NIRMAL MANOJ C
d26e48f3f5
Fixed Memory Leak in R2DecDecompiler::decompileAt (#2257) 2020-06-20 13:06:13 +03:00
karliss
cd42adc832
Use cmake for linux DEPLOY build. (#2223)
* Add cmake script for building and installing translations.
* Improve APPIMAGE related path handling.
2020-06-17 12:35:26 +03:00
karliss
53da90625c
Add missing includes on VS2019. (#2251) 2020-06-17 11:49:39 +03:00
Surendrajat
7736088ea9
Expose asm.reloff.flags in Preferences (#2244) 2020-06-16 13:54:36 +03:00
karliss
e28ee3bebd
Add options for tweaking graph layout. (#2246)
* Fix overview refresh when switching layout.
2020-06-16 13:43:45 +03:00
karlis
1d8c9de37c Link cutter r2ghidra decompiler against ghidra_core. 2020-06-16 00:27:51 +03:00
NIRMAL MANOJ C
255ffe1208 Refactored Decompiler Widget and R2Dec Plugin to use RAnnotatedCode (#2227) 2020-06-16 00:27:51 +03:00
Surendrajat
498d2076c8
Expose asm.reloff in configuration (#2243)
* Expose asm.reloff in configuration
2020-06-11 19:43:32 +03:00
Itay Cohen
592c050617
Improve warning for multiple x-refs causing unexpected behavior (#2236)
* Improve warning for multiple x-refs causing unexpected behavior
2020-06-07 11:39:58 +03:00
karliss
76773eadd6
Reduce amount of warnings (#2233)
* Deal with QT depracated warnings
2020-06-06 19:02:24 +03:00
karliss
837dd63e6b
Horizontal graph (#2234)
* Create adapter for converting vertical layout into horizontal

* Fix edge spacing override for edges going out of switch statement.

* Update documentation.
2020-06-06 02:06:38 +03:00
bartoszek
56c2e3741a
Fix qt>5.15 build (#2231) 2020-06-04 06:51:03 +03:00
Ali Raheem
7127f0e556
Fix mismatch closing parenthesis (#2232) 2020-06-04 06:41:55 +03:00
karliss
54ecc33ca9
Rewrite part of graph layout code (#2207)
* Rewrite node placement and edge routing parts of graph layout code
* Document the high level structure of layout algorithm
* Tighter layout and less edge crossings
* Better worst case memory and CPU usage
2020-06-03 18:36:44 +03:00
karliss
1e9b82839e
Add documentation for TempConfig. (#2221) 2020-05-31 09:20:54 +03:00
Surendrajat
5dcf53dff6
refactor hexdumpwidget sidepanel parsing (#2222)
Avoid use of magic numbers.
2020-05-30 16:29:29 +03:00
Surendrajat
4ddba1b8d3
add pci to hexwidget sidepanel (#2219) 2020-05-30 13:00:29 +03:00
tobigrimm
cd6fc26ed1
Cmdline option to open a file in write mode (#2216)
* Added an option to directly enable write mode via -w/--writemode to the command line option parser
2020-05-28 14:33:19 +03:00
Itay Cohen
bfec29f825
Toggle Console Widget and clear output (#2213)
* Add shortcuts to toggle Console and clear its output
* Update the docs

Co-authored-by: Kārlis Seņko <karlis3p70l1ij@gmail.com>
2020-05-25 12:19:05 +03:00
karliss
0ea5d6fa4b
Add UI for managing layouts (#2211)
* Add dialog for deleting and renaming layouts.

* Add documentation.

Co-authored-by: Itay Cohen
2020-05-24 01:12:32 +03:00
Itay Cohen
6f75fa1a71
Add menu options for changing IO mode (#2187) 2020-05-23 14:41:12 +03:00
karliss
3545f059f1
Rewrite layout management code (#2172)
* Use QDockWidget::toggleViewAction instead of custom solution.
* Improve new dock placement.
2020-05-22 14:49:34 +03:00
karliss
8a3b51c291
Take into account interactive flag in more cases (#2208)
* Edge style
* Token highlighting
2020-05-21 16:31:22 +03:00
NIRMAL MANOJ C
1181f7ff5c
Cutter RC Editor - Part B (basic editor) (#2162) 2020-05-20 23:38:20 +03:00
fcasal
26cafecc4e
Add emu.str to be saved in settings (#2205) 2020-05-18 21:10:47 +03:00
Itay Cohen
a68ce67b2a
Use "analysis" for -A option (#2203) 2020-05-17 22:34:38 +03:00
NIRMAL MANOJ C
2078790278
Update r2 and fix API changes (#2199) 2020-05-16 20:28:34 +03:00
Itay Cohen
18a21048dd
Update radare2 submodule (#2189)
* Update radare2 submodule

* Use the new API, r_meta_get_string doesn't return owned pointer anymore.
2020-05-11 19:55:38 +03:00
karliss
1aad797722
Update version number 1.10.3-pre2 -> 1.10.3 (#2185) 2020-05-08 19:51:36 +03:00
karliss
cd85582164
Don't do e- when resetting settings. (#2180) 2020-05-07 12:05:09 +02:00
Florian Märkl
fab5f901f9
Fix Sample C++ Plugin (#2182) 2020-05-07 11:32:21 +02:00
Itay Cohen
fe96ee1b51
Recreate hashes widgets when refreshing (#2181) 2020-05-06 20:21:51 +03:00
karliss
ca7b3a623d
Detect when native theme's darkness doesn't match color theme. (#2176) 2020-05-04 12:49:40 +03:00
karliss
f65f5cab4b
Notify about seek change when using seek(QString). (#2175) 2020-05-02 19:10:02 +03:00
karliss
6135fc7024
Add option for not loading plugins (#2160)
* Separate commandline parsing from rest of logic.
* Add options for not loading plugins.
2020-04-21 00:22:10 +03:00
karliss
aa8ecee8e2
Use drrj to read values for RegistersWidget. (#2141)
* Avoids problem with 64bit value as number in json
* Keeps registers in the order reported by r2
2020-04-17 16:01:05 +03:00
karliss
b69dff0fcd
Add commandline option for disabling stdout redirection (#2144)
* Add option for disabling stdout and stderr redirection.
* Add command line option description to documentation.
2020-04-17 15:02:44 +03:00
karliss
4d2ef58e6a
Fix errors reported by UB sanitizer (#2150)
* Use qt parent for deleting completer

Manually deleting causes some UAF due to it being installed as event
filter.
Qt seems to destroy things in correct order. Sanitizer doesn't report
completer as being leaked.

* Fix sanitizer problems in HexWidget

* Initialize size properties to somewhat sane values to avoid
unrealized variable use when calculating them first time.
* Change AbstractData interface. Old one returned pointer to unknown
sized block of data which was difficult to use correctly. Adjust bound
checking to avoid out of bounds access when comparing with oldData and
scrolling.
2020-04-16 20:32:24 +03:00
karliss
ccb53fedbf
Use r2 c api for reading comments. (#2154)
C api allows specifying address directly thus avoiding unnecesarry reads
caused by seek(rb=true).
2020-04-16 20:31:15 +03:00
Itay Cohen
a4cf66d13c
Resource names are strings (#2151) 2020-04-15 19:20:57 +03:00
karliss
56543fa0c7
Fix memory leak in listFlagsAsStringsAt. (#2145) 2020-04-14 10:58:25 +03:00
Itay Cohen
b7d0c8531b
Slight improvements to light theme (#2137) 2020-04-12 09:38:46 +03:00
karliss
80c2128039
Change include order to prevent warning from GNUInstallDirs (#2132)
CMake >= 3.17 warns that GNUInstallDirs might not work correctly if
included before some target details are known.
closes #2122
2020-04-08 16:45:13 +03:00
itayc0hen
f789337f45 Rename OpenFileDialog to MapFileDialog 2020-04-08 00:10:31 +03:00
itayc0hen
e7691eb956 Rename "Open" to "Map File" and "New" to "New Window" 2020-04-08 00:10:31 +03:00
karliss
0753147930
Update cutter-deps to include qt 5.14.2 (#1868)
* Use the qt from cutter-deps on windows.
* Adjust shiboken lib name to match cutter-deps
2020-04-07 23:24:25 +03:00
karliss
55d4ee3ce4
By default search r2 in /usr/local used by sys/install.sh. (#2128) 2020-04-07 12:39:15 +03:00
Dhaval Purohit
7110d73979
Add tooltip for displaying flag and comment in hexdump (#1471) (#2116)
* Add tooltip for displaying flag and comment in hexdump (#1471)


Co-authored-by: Itay Cohen <itaycohen23@gmail.com>
Co-authored-by: karliss <karlis3p70l1ij@gmail.com>
2020-04-04 10:09:30 +03:00
NIRMAL MANOJ C
b06a6d0da8
Added function to load cutterrc from all standard paths along with home (#2109)
* added function to load cutterrc from all standard paths along with home
2020-03-26 15:07:33 +02:00
itayc0hen
5d02449094 Use cmdRaw and cmdRawAt in Cutter.cpp 2020-03-25 19:12:18 +02:00
itayc0hen
281e75389f Use cmdRaw and cmdRawAt in MainWindow 2020-03-25 19:12:18 +02:00
itayc0hen
638c838e6f Use cmdRaw and cmdRawAt in TypesWidget 2020-03-25 19:12:18 +02:00
itayc0hen
1849568c5f Use cmdRaw and cmdRawAt in HexdumpWidget 2020-03-25 19:12:18 +02:00
itayc0hen
cb1177b35c Use cmdRaw and cmdRawAt in GraphWidget 2020-03-25 19:12:18 +02:00
itayc0hen
fa2350dfb6 Use cmdRaw and cmdRawAt in DisassemblerGraphView 2020-03-25 19:12:18 +02:00
itayc0hen
4f01d54443 Use cmdRaw and cmdRawAt in DebugActions 2020-03-25 19:12:18 +02:00
itayc0hen
b98c2671b3 Use cmdRaw and cmdRawAt in Dashboard 2020-03-25 19:12:18 +02:00
itayc0hen
31c994ae4c Use cmdRaw and cmdRawAt in ColorThemeListView 2020-03-25 19:12:18 +02:00
itayc0hen
34e2cdf960 Use cmdRaw and cmdRawAt in DisassemblyContextMenu 2020-03-25 19:12:18 +02:00
itayc0hen
1f41983923 Use cmdRaw and cmdRawAt in ColorThemeEditDialog 2020-03-25 19:12:18 +02:00
itayc0hen
a47dcb26f9 Use cmdRaw and cmdRawAt in XrefsDialog 2020-03-25 19:12:18 +02:00
itayc0hen
647978260a Use cmdRaw and cmdRawAt in WriteCommandsDialog 2020-03-25 19:12:18 +02:00
itayc0hen
87b9741767 Use cmdRaw and cmdRawAt in NewFileDialog 2020-03-25 19:12:18 +02:00
itayc0hen
932318b407 Use cmdRaw and cmdRawAt in EditVariablesDialog 2020-03-25 19:12:18 +02:00
itayc0hen
07a5b4a748 Use cmdRaw and cmdRawAt in CommentsDialog 2020-03-25 19:12:18 +02:00
itayc0hen
b735cb6f23 Use cmdRaw and cmdRawAt in Configuration.cpp 2020-03-25 19:12:18 +02:00
itayc0hen
6bd0d78b73 Use cmdRaw and cmdRawAt in ColorThemeWorker 2020-03-25 19:12:18 +02:00
itayc0hen
cccbf62ec0 Use cmdRaw and cmdRawAt in AnalTask 2020-03-25 19:12:18 +02:00
itayc0hen
2cefc7444c Improve cmdRaw 2020-03-25 19:12:18 +02:00
itayc0hen
8501d03615 Version 1.10.3-pre 2020-03-24 13:00:36 +02:00
Liumeo
d202b7d15d
fix statement has no effect warning (#2110) 2020-03-23 18:33:55 +02:00
NIRMAL MANOJ C
5fb7fa5b99
fixed - a word not clearly was not clearly visible in preferences-debug (#2106) 2020-03-21 19:45:35 +02:00
karliss
1304624b03
Define dependency between python binding target and generated sources. (#2104) 2020-03-21 11:29:31 +02:00
optizone
e50eddb8cd
Implement some of w? commands in HexWidget (#1854)
* Implement write commands in hex widget 
* Add cmdRawAt and seekSilent
* Document patching context menu

Co-authored-by: itayc0hen
Co-authored-by: Kārlis Seņko
2020-03-19 11:36:36 +02:00
karliss
c4d7d649f1
Add installing to CMake (#2084) 2020-03-15 14:43:42 +01:00
Dhaval Purohit
ddeb7fbe53
Toggle remove option for string definition of instruction (#2059) (#2094)
* Toggle remove option for string definition of instruction (#2059)
2020-03-15 14:51:49 +02:00
ITAYC0HEN
b78df947d0 Version 1.10.2 2020-03-10 11:02:52 +02:00
NIRMAL MANOJ C
d12aae2ac0
Add scaling and background transparency options to graph export (#2089) 2020-03-09 22:59:03 +02:00
Itay Cohen
a327a33c3e
Add configuration description getter to improve Initial Analysis dialog (#2088)
* Implement configuration description getter

* Use helper function and remove trimming
2020-03-08 18:27:47 +02:00
karliss
b173d05865
Limit amount of JSON dumped in case of error. (#2081) 2020-03-04 09:39:52 +02:00
Florian Märkl
b3f2c9c6c3
Fix deprecated QString usage on empty relro info (#2075) 2020-02-28 13:40:51 +01:00
Itay Cohen
7008d4e9b9
Refactor hashes in dashboard to support newly added hashes (#2067)
* Fix regression of API to get all hashes
* Refactor hashes and entropy in Dashboard
* Update radare2 submoudle
2020-02-28 10:48:30 +02:00
Itay Cohen
c93681649b
Change column oreder in xrefs (#2068) 2020-02-28 10:37:07 +02:00
Florian Märkl
e38ff14bac
Add -B option for Base Address (#2074) 2020-02-27 20:12:49 +01:00
Itay Cohen
dd7e01be3a
Show realname on disassembly context menu (#2049)
* Show realname on disassembly context menu
2020-02-15 19:31:11 +02:00
Itay Cohen
9b7e3a3a30
Fix typo "Adanced" -> "Advanced" (#2060) 2020-02-15 10:46:19 +02:00
yossizap
eb88c8b21a
Add AddressableItemContextMenu bindings (#2054) 2020-02-06 18:32:15 +01:00
karliss
5af4dce7f6
Fix crash when opening theme editing window. (#2050) 2020-02-04 11:02:34 +02:00
Itay Cohen
37544b45d5
Don't set comments to vertical when resizing (#2045) 2020-02-01 16:54:36 +01:00
Itay Cohen
cf65c0304a
Fix themes in welcome dialog (#2043) 2020-02-01 15:06:45 +02:00
Florian Märkl
857ca7fa8d
Version 1.10.1 (#2041) 2020-01-31 19:04:11 +01:00
karliss
1ae78655fa
Simplify and move Plugin context menu gui code out of core. (#2039) 2020-01-31 11:13:28 +01:00
yossizap
a1b5a41e56
Register refs widget improvements (#2038)
* Move register refs to the new telescoping function and add an addressable context menu
2020-01-30 19:40:27 +02:00
yossizap
969ce5ac30
Make breakpoints available outside of debug (#2027)
* Make breakpoints available outside of debug
2020-01-29 18:58:05 +02:00
Hye Sung Jung
57b5879593 fix spelling errors (#2036) 2020-01-28 10:02:17 +02:00
karliss
63ae6e665e
Make user plugin path in settings a link. (#2034)
Closes #1793
2020-01-25 21:26:41 +02:00
Itay Cohen
8266cd074f
Add realname and libname to Flags and Imports widgets (#2024)
* Add realname and libname to flags and imports
2020-01-25 09:18:53 +02:00
Florian Märkl
7b83bbf07b
Bundle r2dec into macOS Builds (#2033) 2020-01-24 21:15:34 +01:00
Florian Märkl
14f830dd81
Bundle r2dec into AppImage (#2023) 2020-01-24 12:18:18 +01:00
Itay Cohen
d88bb43d22
Add virtual-size to section widget (#2030)
* Add virtual-size to table
2020-01-24 13:16:40 +02:00
yossizap
409102afa7 Add api for context menu extensions (#2029) 2020-01-24 10:49:52 +01:00
Itay Cohen
e3f7036de7
Improve default line-width values on graph (#2026) 2020-01-23 13:09:47 +02:00
Paul I
27449af445 Fix potential nullptr dereference (#2028) 2020-01-23 01:07:41 +02:00
Itay Cohen
c7d66cec06
If available, set r2ghidra the default decompiler (#2007)
* If available, set r2ghidra the default decompiler
* Honor user preferences
2020-01-21 18:43:30 +02:00
Itay Cohen
1c39aa6d41 Add asm.flags.real to preferences and enable by default (#2014) 2020-01-21 11:00:38 +01:00
karliss
e0c80182dd
Improve flag and string widget performance (#2021)
* Deffer vtable refresh.
* Use uniformRowHeight mode
* Adjust StringsWidget column resizing mode.
2020-01-20 20:36:32 +02:00
Florian Märkl
a9ed742cad
Update radare2 and fix Cutter for it (#2017) 2020-01-15 20:19:24 +01:00
Itay Cohen
3eeb631c68
Add sha256 and crc32 to the hexdump widget (#2006)
* Add SHA256 and CRC32 to hexdump widget
* Fix layout
* Add copied-to-clipboard messages
2020-01-13 21:48:43 +02:00
karliss
b3776a6b73
Set zoom factor when opening appearance settings. (#2003) 2020-01-11 00:02:28 +02:00
yossizap
830e9cd947 Add a custom telescoping function and improve StackWidget's output (#1990)
* Add a custom telescoping function and improve StackWidget's output

* Use colors from the color configuration for stackswidget

* Improve telescoping output
2020-01-10 22:46:49 +02:00
karliss
c645cbee01
Refresh monospace font after it gets reset by style or font change. (#2002) 2020-01-08 00:03:25 +02:00
xarkes
2850a61086 Added translations target languages (#1988) 2020-01-05 12:53:40 +02:00
ps
692346f08b src/CutterApplication.cpp: Fix Typo (#1987) 2020-01-04 21:22:41 +02:00
Itay Cohen
653cefc2b1
set Style tab to default view (#1986) 2020-01-04 20:43:05 +02:00
karliss
90c7bfab1e
Breakpoint editor dialog (#1975)
* Add breakpoint dialog for editing breakpoint properties
* Allow editing breakpoint using context menu from breakpointWidget and disassembly menu.
2020-01-04 20:05:49 +02:00
int_13h
32be76fabc multiple instructions can be patched now (#1984) 2020-01-02 10:07:10 +02:00
int_13h
7fdd8117a9 added a ';' delimiter and responsive dialog box (#1983) 2020-01-02 10:03:04 +02:00
int_13h
12c1d2c5ab Show multiple instructions in edit->bytes dialog
closes #1940
2020-01-01 15:39:27 +02:00
yossizap
7e6a8ae17a Fix debug not working with paths that have a space in them (#1978)
* Fix debug not working with paths that have a space in them
* Updated r2 for spaced paths fix and other debug fixes
2019-12-30 17:00:54 +02:00
karliss
46ba0dc20a
Add more breakpoint editing options (#1967)
* Convert breakpoint widget to AddressableItemWidget
* When selecting multiple breakpoints and pressing delete key delete all of them
* Allow toggling breakpoint trace and active properties by doublicking them in table
2019-12-26 22:51:55 +02:00
karliss
550d079f14
Improve graph HighDPI scaling (#1963) 2019-12-22 20:56:33 +02:00
Florian Märkl
c0d4fda0c7
Version 1.10.0 (#1954) 2019-12-20 18:13:31 +01:00
yossizap
45f7c78726 Moved the debug exit dialog to DebugActions
Qt may crash or freeze if a window is created outside of the main loop
2019-12-20 18:03:39 +01:00
yossizap
f5cd754a0d Use events to notify the user about the debugee's death 2019-12-20 18:03:39 +01:00
yossizap
3be0472837 Fix remote debug crash after the first session 2019-12-20 18:03:39 +01:00
yossizap
96baaeada6 Prevent the update of some widgets while debug task is in progress to avoid freezing 2019-12-20 18:03:39 +01:00
yossizap
2fb59b26ad Switch to registerChanged from seekChanged where possible
Some widgets would constantly refresh when moving around, making the
interface very laggy
2019-12-20 18:03:39 +01:00
karliss
0b849bc05e When using add breakpoint button add it not toggle. (#1953) 2019-12-20 18:02:27 +01:00
karliss
faf6959278 Workaround for new debug widgets being opened in normal mode. (#1950) 2019-12-20 08:19:44 +02:00
karliss
05acb30076
Show debug widget menu under Debug. (#1949) 2019-12-19 20:03:44 +02:00
Itay Cohen
4e84d1b502 Highlight Breakpoints and PC in decompiler (#1948) 2019-12-19 18:58:30 +01:00
Florian Märkl
58b44893f9
Add -F command line option to specify Format (#1946) 2019-12-19 13:59:15 +01:00
Properrr
78c6e651c8 Define string of length N in address (#1915)
* Implemented "setString" submenu for the Disasm widget
2019-12-18 16:26:51 +02:00
Florian Märkl
8f480d9c2c
Fix Segfault on Quit after Debug/Emulation (#1943) 2019-12-18 14:56:57 +01:00
Florian Märkl
fd98694c9a Fix automatic function naming (#1942) 2019-12-18 15:20:33 +02:00
karliss
6b2433e986 Increase input field size when resizing NativeDebugDialog. (#1930) 2019-12-16 00:16:11 +02:00