Commit Graph

1555 Commits

Author SHA1 Message Date
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
yossizap
64371bb07a Fix formatBytecount's sizes (#1928)
This caused a crash (ref #1925) when seek was set to UT64_MAX.
2019-12-15 09:44:43 +02:00
yossizap
59af77fb72 Separate the search widget's boundaries for debug and non-debug modes
Previously, you could search in spaces that weren't available in debug
mode and freeze Cutter. That also meant most existing searches would freeze
Cutter when debug started.
2019-12-14 16:44:57 +02:00
yossizap
17d5ae0cfd Replace changeDebugView and changeDefinedView with toggleDebugView 2019-12-14 16:44:57 +02:00
yossizap
2f6e4b183e Removed disabling of startEmul to show the restart debug option when emulating 2019-12-14 16:44:57 +02:00
yossizap
77081526b2 Add startRemote to the debug dropdown menu 2019-12-14 16:44:57 +02:00
yossizap
d60f9aa52a Updated r2 for 'doc' and 'oo' reloc fixes and integrated 'doc' 2019-12-14 16:44:57 +02:00
yossizap
a8bc37f0de Add a signal for widget rebasing and switch to oodf for remote debug rebasing (#1913)
* Add codeRebased to sync widgets after debug starts
* Switch attachDebug to oodf to enable rebasing
2019-12-14 16:44:57 +02:00
yossizap
519cd5dabd Add debug dialogs (#1903) 2019-12-14 16:44:57 +02:00
yossizap
ef97c84351 Add processes widget for kernel and child debugging (#1894)
* Update r2 for dp fixes and general debug fixes

* Added ProcessesWidget for kernel debugging and switching between children

* Update r2 for dpl fixes

* Update r2 for linux and gdbserver dp/dp= fixes

* Added switchedThread and switchedProcess events to refresh their widgets

Seek doesn't always change after switching if the other process is at
the same offset in the same binary so it's better to have another event
for it.

* Disable threads/processes widget during a debugtask/when not debugging and clear it's history after a session

* Improve Processes Widget's UI

- Remove vertical numbers
- Highlight the current process with bold instead of using the "current"
  column

* Updated r2 for fork fixes
2019-12-14 16:44:57 +02:00
itayc0hen
4d306616f9 Use proper docstrings 2019-12-14 16:44:57 +02:00
itayc0hen
272cf68818 Remove metadata from inkscape icons 2019-12-14 16:44:57 +02:00
itayc0hen
52f9a57c04 Remove auto scroll from registerRefs widget 2019-12-14 16:44:57 +02:00
itayc0hen
e54ab621fc Support multi-theme icons on debug 2019-12-14 16:44:57 +02:00
itayc0hen
a75533c3ae Improve debug icons 2019-12-14 16:44:57 +02:00
itayc0hen
bb4a82a352 Show icon in menus 2019-12-14 16:44:57 +02:00
itayc0hen
d197339665 Use uppercase for program counter name 2019-12-14 16:44:57 +02:00
itayc0hen
c15cac1cba Make labels selectable by mouse 2019-12-14 16:44:57 +02:00
itayc0hen
88afd22af8 Disable auto scroll in stack widget 2019-12-14 16:44:57 +02:00
itayc0hen
0eb5753758 Rename backtrace func name column 2019-12-14 16:44:57 +02:00
itayc0hen
a02753f866 Auto-select text in EditInstructionDialog 2019-12-14 16:44:57 +02:00
itayc0hen
035aa52cca Improve RegistersWidget grid UI 2019-12-14 16:44:57 +02:00
itayc0hen
489b89dc7c Improve stack widget ui 2019-12-14 16:44:57 +02:00
itayc0hen
ccd8e86052 Remove column of active thread in ThreadsWidget 2019-12-14 16:44:57 +02:00
itayc0hen
44e68146db Remove vertical numbers in debug widgets 2019-12-14 16:44:57 +02:00
itayc0hen
a63c3401b6 Change label to suspend process 2019-12-14 16:44:57 +02:00
yossizap
f284f9d209 Stdin redirection for locally debugged processes (#1892) 2019-12-14 16:44:57 +02:00
yossizap
49d58b3624 gdbserver and windbg remote debugging support (#1874)
* Added remote debugging
2019-12-14 16:44:57 +02:00
yossizap
c85e1db3b3 Detach Cutter interface from debug command execution (#1857) 2019-12-14 16:44:57 +02:00
yossizap
a3e140bf4d ThreadsWidget and r2 debugging fixes (#1846)
* Added wrappers for dpt and dpt=

* Added ThreadsWidget used for thread monitoring during debugging

* Updated r2 for dpt, dpt= and drrj fixes

* Convert r2's pid status letters to more informative strings

* Replaced cmdj with cmd and ensure the thread's data is synced

* Moved viewThreas to threadsWidget.ui, switched from onDoubleClick to Activated and added a column cleanup

* Add old row cleanup to BacktraceWidget

* Clean up

* Added sorting and filters

* Modified ThreadsWidget for Qt5.3 compatibility
2019-12-14 16:44:57 +02:00
xarkes
c3ce953134 Fixed include 2019-12-14 16:44:57 +02:00
mandlebro
9e9ad353c6 Look for sym.main instead of main 'cause latter is not rebasing in PIEs 2019-12-14 16:44:57 +02:00
mandlebro
9970028914 Fix PIE debug 2019-12-14 16:44:57 +02:00
mandlebro
b0effdf94f Hides the ContinueUntilMain button if there is no flag called main 2019-12-14 16:44:57 +02:00
mandlebro
75ae47dbcb Fixes issues with reset layout in debug mode 2019-12-14 16:44:57 +02:00
mandlebro
721870ac0e Fix emulation not working after a debugging session 2019-12-14 16:44:57 +02:00
mandlebro
f627b1306b Reenable debugging/attaching 2019-12-14 16:44:57 +02:00
Itay Cohen
7a34cf2024
Improve seek backward and outside of function in Decompiler widget (#1916)
* Improve seek backward and outside of function
* Improve seekToReference
2019-12-14 14:57:36 +02:00
Itay Cohen
108fff8925
Fix 1756: Disable seek when selecting text on Decompiler Widget (#1917) 2019-12-14 12:42:24 +02:00
Properrr
3700bc63f5 Pressing Enter in disassembly will jump to the desired location (#1910)
* Implemented processing of 'Return' key in the disassembly widget
* renamed method in the DisasmWidget
2019-12-12 11:52:42 +02:00
karliss
55017f6ba0 Replace hardcoded system plugin directories with list from Qt. (#1814) 2019-12-12 08:35:25 +01:00
karliss
c255fd1cfd Add menus to seek backward and forward buttons. (#1889) 2019-12-10 08:34:21 +01:00
Itay Cohen
a50a8939ef Adding Adikso's Midnight Theme (#1895) 2019-12-08 10:57:42 +01:00
xarkes
9929694314
Added a temporary fix to allow backslashes names (#1899) 2019-12-08 08:08:44 +01:00
karliss
af5d1dd3aa Improve compatibility with cmake 3.10. (#1882) 2019-12-02 08:18:25 +01:00
GustavoLCR
c1093f3971 Highlight in red changes in the Hexdump Widget (#1880)
* Highlight changes in the Hexdump Widget
2019-11-30 16:55:29 +02:00
Florian Märkl
d0da81b592 Disable asm.lines and asm.bytes in XRefs Preview (Fix #1339) (#1893) 2019-11-30 12:39:23 +02:00
Florian Märkl
a4e0308e84
Update radare2 and fix Cutter for it (#1890) 2019-11-27 11:49:44 +01:00
Florian Märkl
4dc4982b3f Update radare2 and fix Strings (#1885)
* Update radare2
* Fix Strings after izzj changes in r2
2019-11-23 17:03:23 +02:00
Leopold Kozioł
41f532ed7b Add instruction highlight in graph view (#1879) 2019-11-17 20:44:10 +02:00
karliss
524b27fabb
Change focus order in SetToDataDialog. (#1873) 2019-11-05 00:16:00 +02:00
Itay Cohen
a39700f016
Add highlight to hexdump (#1862) 2019-11-04 21:25:55 +02:00
karliss
8ce4700223
Specify shiboken macOS header path in travis.yml. (#1870) 2019-11-04 18:41:38 +02:00
Florian Märkl
4906e2b80b
Call MainWindow::initUI in Constructor (#1872) 2019-11-04 17:40:54 +01:00
Itay Cohen
3e706ffd5a
Hide and resize hexdump sidebar with heuristics (#1798) 2019-10-21 05:46:17 +03:00
xarkes
cae07d15db Refactored qhelpers AbstractItemView item select (#1850) 2019-10-20 14:59:10 +03:00
Wesley King
3e0d5a8981 Fix decompiler widget not updating xrefs to decompiled function (#1851) 2019-10-20 10:58:58 +02:00
xarkes
723c1ea33d Automatically select the first line of xref (#1849) 2019-10-19 14:18:58 +03:00
Anthony Sasadeusz
d450044a2d Fix PR (#1812) 2019-10-19 11:00:29 +03:00
xarkes
afd63e97cd [skip ci] Improved building instructions (#1843) 2019-10-17 08:46:51 +03:00
karliss
771217d70a
Deduplicate seek forward and backward action. (#1844) 2019-10-17 03:02:48 +03:00
Sergei Z
f64972fda2 Show bytes has been renamed and moved (#1841)
* Show bytes has been renamed and moved
2019-10-14 14:24:32 +03:00
yossizap
235761941f Redirect stdout/stderr to Console Widget (#1821)
* Added stdout/stderr redirection to the console
2019-10-14 13:00:44 +03:00
Jochen Bauer
b81eed7f22 Replacing all QRegExp with QRegularExpression (#1820)
* Replacing all QRegExp with QRegularExpression
2019-10-13 17:59:12 +03:00
karliss
9d2a8d9deb Fix graph zoom reset and use same font size as everything else. (#1835) 2019-10-13 17:22:55 +03:00
Itay Cohen
4aa6927066
Add shortcuts to breakpoints widget (#1834)
* Add shortcuts to breakpoints widget
2019-10-12 11:33:21 +03:00
Wesley King
83b1ce2c49 Add common zoom action for widgets using font from configuration (#1813) 2019-10-12 08:50:10 +03:00
Florian Märkl
b176fdad88
Fix Native Plugin Loading for CMake (#1829) 2019-10-09 18:41:16 +02:00
Florian Märkl
1d68115c93
Print Native Plugin Load Error (#1824) 2019-10-09 12:17:24 +02:00
Wesley King
f743b5ed55 Fix refresh after renaming imported function (#1828) 2019-10-09 08:46:48 +03:00
Itay Cohen
9755fb5ec0
Implement parsing selected bytes as Yara (#1818)
* Export selected bytes to Yara

* update radare2
2019-10-08 14:22:09 +03:00
karliss
b11ba240d2
Improve compatibility with cmake 3.5 and QT 5.5-5.11. (#1805) 2019-10-06 20:35:44 +03:00
Teddy Heinen
de8aef47f7 fix #1802 (newly created graph docks have no title) (#1815) 2019-10-04 22:57:30 +03:00
karliss
38cdb90dc4
Restore breakpoint listing. (#1811) 2019-10-03 21:04:15 +03:00
karliss
1cef190d29 Use AddressableItemContextMenu in Registers widgtet. (#1794)
* Use AddressableItemContextMenu in Registers widgtet.

* Hide shortcuts becasue they can't be used in register widget.
2019-10-02 14:22:04 +03:00
optizone
59161e633f Add search color option feature + sort color options by name (#1803) 2019-10-01 10:39:59 +03:00
Itay Cohen
2589e713fd
Improve about dialog (#1799)
* Improve about dialog
2019-09-30 14:33:24 +03:00
Alex Vorobyev
41234e0ea7 Fix link to screenshot in appdata (#1804) 2019-09-29 11:36:43 +02:00
Alex Vorobyev
d69dee7225 Add information from aai to Dashboard, fixes #1571 (#1792)
* Add information from aai to Dashboard
2019-09-28 23:46:40 +03:00
karliss
88553ae7d9
Fix crash when using graph shortcut (#1801) 2019-09-28 18:21:13 +03:00
xarkes
a15d104b45 Fixed zoom shortcuts to something more generic (#1781) 2019-09-27 19:16:05 +03:00
karliss
23561f4337 Add addressable item context menu to stack widget (#1779)
* Use addresableItemContextMenu in stack widget.
* Show hexwidget when seeking to stack.
2019-09-25 17:18:30 +03:00
karliss
75e98cb05d Update R2Task.cpp (#1790) 2019-09-25 16:00:43 +02:00
Itay Cohen
2d34eb286a Add more shortcuts to DisassemblyContextMenu (#1782) 2019-09-25 15:58:58 +02:00
Paul I
d1d1f97592 Update r2 submodule (#1786) 2019-09-25 14:36:30 +02:00
karliss
8287e426ba
Graph export without graphviz (#1773) 2019-09-19 08:19:50 +03:00
Óscar Carrasco
e7ead2e1b6 Fix "ta" commands after radare2 command refactoring #1774 (#1775)
* Fix "ta" commands after radare2 command refactoring #1774

* update radare2 submodule
2019-09-15 14:41:12 +03:00
Florian Märkl
b866e16b26 Fix Segfault on Theme Editor Preview Click 2019-09-09 16:36:39 +02:00
xarkes
1d1e2af9c3
Fixed TypeWidget font to monospace. (#1755)
Also the tab width was set to 4 chars.
2019-09-07 16:26:25 +02:00
Florian Märkl
b4535227cf Version 1.9.0 2019-09-06 08:40:20 +02:00
Florian Märkl
33d97ee16a Bundle r2ghidra-dec 2019-09-06 08:40:20 +02:00
Itay Cohen
1d692db261 Rename PseudoCode widget to Decompiler (#1728) 2019-09-06 07:40:20 +02:00
xarkes
806de0b341 Fixed refactoring leftover (#1746) 2019-09-06 07:38:28 +02:00
Itay Cohen
2a978081a1 Center Rename Dialogs (#1743) 2019-09-05 10:22:05 +02:00
karliss
6fe473948b
Select highlighted variable in EditVariablesDialog if possible. (#1727) 2019-09-04 19:39:33 +03:00
Florian Märkl
77ab80a5b2 Fix unnecessary Auto-Decompile on Seek (#1734) 2019-09-03 16:25:28 +02:00
karliss
89e87dbbf2 Read global offset when opening a new hexdump widget. (#1732) 2019-09-02 22:51:35 +03:00
karliss
a4ba6f8b2b Allow seeking in unsynchronized widgets using 'g'. (#1731) 2019-09-02 10:34:41 +03:00
karliss
567f852c3a
Common behaviour for lists with items that have address part 2 (#1718)
* Seperate addressable item list widget from ListDockWidget.
* Convert ResourceWidget, strings widget, flags widget, search widget, MemoryMapWidget, xrefs dialog
* Don't silently overwrite comment in add comment action.
2019-09-02 00:30:25 +03:00
Itay Cohen
fa759dd660
Increase asm.tabs indention 2019-09-01 17:51:42 +03:00
Florian Märkl
86473e3465 Decompiler Auto-Refresh (#1724)
* Implement Decompiler Auto-Refresh
2019-09-01 12:06:54 +03:00
Florian Märkl
81f7169379
Fix Main Task Synchronization (#1723) 2019-08-30 17:31:30 +02:00
Florian Märkl
76b9354673
Make Decompilation asynchronous (#1721) 2019-08-28 19:01:12 +02:00
karliss
d49caae37b Fix Disassembly widget focus detection. (#1720) 2019-08-28 14:37:52 +02:00
Florian Märkl
13e18f77de
Refactor Decompiled Code Structure (#1717) 2019-08-27 17:27:39 +02:00
Florian Märkl
448350c83d
Fix Segfault after changing Decompiler (Fix #1705) (#1715) 2019-08-23 22:06:44 +02:00
karliss
0aa91c328c Common behaviour for lists with items that have address (#1700) 2019-08-19 15:35:25 +02:00
karliss
cd2dbc4a29 Restore cursor after making empty selection. (#1714) 2019-08-19 08:23:42 +03:00
karliss
f50fecc57b Add context menu entries for target address (#1712)
* Refactor "used here" logic.
* Add menu for showing instruction target.
2019-08-14 21:47:30 +03:00
karliss
468100c52d Don't interpret data as code in xrefs from table. (#1710) 2019-08-11 21:42:15 +03:00
Itay Cohen
d3f91a5ed6
Add context menu to PseudocodeWidget (#1702) 2019-08-07 14:38:22 +03:00
Florian Märkl
9c1f4e6a34
Use Graphviz as Target (#1701) 2019-08-04 00:13:21 +02:00
Itay Cohen
330795a650
Improve InitialOptionsDialog and modify UI terminology for analysis (#1669)
* Define CommandDescription struct

* Refactor InitialOptionsDialog to to work with CommandDescription

* Clean InitialOptionsDialog UI
2019-08-04 00:58:41 +03:00
karliss
2f0c0ddc23 Graphviz based graph layout (#1691) 2019-08-03 15:10:44 +02:00
karliss
1fd06a26c5 Fix out of bounds memory access. (#1697) 2019-08-03 13:18:05 +03:00
xarkes
148c7aa9e9
Fixed file name display in new file dialog (#1675) 2019-07-31 13:21:01 +02:00
karliss
a5dc85c3c5
Graph edge highlight (#1693)
* Highlight edges to and from current block in graph.
2019-07-30 21:35:00 +03:00
karliss
64d0d6b00d Allow returning to top level in sdb widget. (#1696) 2019-07-29 07:56:23 +03:00
karliss
5dc5fe1cee
Fix memory leak in sdbListKeys. (#1695) 2019-07-29 00:42:25 +03:00
Florian Märkl
329a9b6da1
Update r2 and Fix for /c -> /a change (#1689) 2019-07-24 21:21:25 +02:00
Adam Zambrzycki
a6e03d4195 Fix ClassesWidget sorting by vtable offset (#1686)
* Fix ClassesWidget sorting by vtable offset
* Force showing base above methods
2019-07-24 09:14:14 +02:00
karliss
c2a7fd85a4
Transfer zoom events from overview to main graph. (#1685) 2019-07-22 22:28:11 +03:00
Florian Märkl
9dd3b2f2f3
Use bundled radare2 as ExternalProject in cmake (#1674) 2019-07-22 21:18:14 +02:00
Paul I
ae1c1a741c Add CUTTER_DEPS_DIR option 2019-07-21 16:09:07 +02:00
Florian Märkl
39a9266be1
Don't use scr.html in CommandTask (#1683) 2019-07-21 13:57:57 +02:00
karliss
239fde50be
Fix arrow offset when scrolling with arrows or zooming in. (#1677) 2019-07-20 16:10:49 +03:00
karliss
6c40191cce
Rewrite raise memory widget functionality (#1654)
* Seperate seek from seeking and changing focused widget.
* Change memory widget priorities
* Add Show in context menu
2019-07-19 22:21:12 +03:00
Jovany Leandro G.C
914b35e637 Update lib_radare2.pri
Override PREFIX= from command 'qmake PREFIX='
2019-07-19 10:16:13 +02:00
xarkes
b4f7f1a232 Added QtVersion inside AboutDialog 2019-07-18 22:24:32 +02:00
Adam Zambrzycki
d22769ee9c Unify preferences layouts (#1670)
* Unify preferences layout
2019-07-18 23:02:13 +03:00
karliss
6ee6b41786 Use more specific stylesheet selecters. (#1668)
Prevents unintend application of style to internal subwidgets.
2019-07-18 09:05:29 +03:00
xarkes
f830fc17fb Updated DisasWidget zoom shortcuts
Now the shortcuts are consistent with the GraphView widget.
2019-07-17 09:23:14 +02:00
Florian Märkl
dee24b861d Remember last selected Decompiler 2019-07-17 09:08:26 +02:00
Florian Märkl
26dce4c7b9 Add Plugin Interface for Decompilers 2019-07-17 09:08:26 +02:00