Compare commits

...
1018 Commits
Author SHA1 Message Date
pancake a4badc5fd4 Allow publishing releases from existing version tags 2026-11-06 02:49:08 +01:00
pancake 49b4b19c21 Release 6.2.6 2026-11-06 02:29:25 +01:00
pancake 068520f923 Use ubuntu-24.04 as the minimum CI runner 2026-11-06 02:09:52 +01:00
pancake f723ee3dee Simplify the indent-check CI job and use r2 debs in the meson job 2026-11-06 02:06:09 +01:00
pancake ce1f9181cf Use r2 6.2.6 from git 2026-11-05 23:57:50 +01:00
pancake a043f93e72 Light theme have a faded cyan now 2026-11-05 11:40:54 +01:00
pancake c0cb4a5123 Fix build with radare2 ABI 168 basic block vectors 2026-10-30 18:51:50 +01:00
pancake db64c517a4 Fix ghost function lines when scrolling disassembly 2026-10-27 16:16:03 +01:00
pancake 9602d98307 Destroy QApplication normally after printing the version 2026-10-18 05:37:20 +02:00
pancake d85739b5aa Use a plain widget type alias for Qt 6.12 uic compatibility 2026-10-18 05:37:20 +02:00
pancake 1828006c2b Preserve 64-bit section sizes when scaling address maps
Avoid narrowing large section sizes to int when choosing the minimum size and computing relative heights. Handle a zero minimum before dividing.
2026-10-15 15:44:43 +02:00
pancake aff259387b Prevent division by zero in narrow color picker controls
Keep the checkerboard period at least two pixels so its half-width remains a valid divisor in the color preview and alpha bar.
2026-10-15 15:44:43 +02:00
pancake fe80cff908 Prevent overflow when scaling the full address scrollbar range
Compute the ceiling division without adding to the 64-bit span, which can wrap and produce a zero slider unit.
2026-10-15 15:44:42 +02:00
pancake ae183f2c43 Add consistent keyboard navigation to code views
Add Space folding and matching-brace navigation to the decompiler. Use Enter and keypad Enter to follow references and links in both code views, including jumps from an instruction address.

Enable horizontal disassembly navigation with arrows and H/L, and move Link type to Shift+L to avoid a shortcut conflict.
2026-10-15 12:25:08 +02:00
pancake 9ae80e4d62 Add colorful icons to the decompiler context menu 2026-10-15 11:46:25 +02:00
pancake e920c6aba8 Add brace block folding to the decompiler 2026-10-15 11:15:39 +02:00
pancake 5875f989d8 Add per-view seek history controls and route navigation to the active view 2026-10-15 10:33:22 +02:00
pancake d95daf392f Keep independent back and forward history for unsynchronized views 2026-10-15 10:17:35 +02:00
pancake 6c4997ac29 Add consistent decompiler hover and symbol navigation 2026-10-15 10:16:32 +02:00
pancake a8d239febd Add flag shortcuts, selection sizes and colors 2026-10-14 23:47:45 +02:00
pancake 6b52aa0be1 Fix comments and cursor navigation in the decompiler ## 2026-10-14 16:46:15 +02:00
pancake 19c3c07b99 Remove function annotations when saving empty text 2026-10-14 16:25:55 +02:00
pancake ef8aba25e8 Add address and disassembly toggles to the decompiler ## 2026-10-14 15:33:01 +02:00
pancake c2f042643a Highlight the active dock frame
Outline the selected frame and its tab bar with the theme highlight color. Follow focus, tab selection, keyboard navigation, and layout changes without consuming mouse input or changing panel geometry.

Validation: make -C tests/panelmaximize check (17 passed); visually checked tiled and expanded layouts.
2026-10-14 00:04:09 +02:00
pancake baf1afaca0 Cycle dock frames with Cmd/Super+J and K
Add configurable shortcuts to focus the next or previous frame in screen order with wraparound, preserving selected tabs and the last focused control. Keep expanded mode when navigating and skip hidden or detached panels. Add regression coverage for navigation, selected tabs, and closed frames.

Validation: make -C tests/panelmaximize check (17 passed).
2026-10-13 23:53:26 +02:00
pancake de8f2b476e Add Cmd/Super number shortcuts for panel tabs
Select the first five visible tabs of the active panel group in displayed order, retaining maximization when switching. Ignore offscreen Qt tab bars and cover tiled and maximized panels, reordered tabs, and unavailable tab numbers with regression tests.

Validation: make -C tests/panelmaximize check (14 passed).
2026-10-13 23:38:43 +02:00
pancake bc6c362bd5 Preserve dock tab selection across layout changes
Leave Qt's native tabData identities intact and use them to resolve docks instead of matching titles. Add regression coverage for layout changes, repeated maximization, and panels with duplicate titles.

Validation: make -C tests/panelmaximize check (11 passed).
2026-10-13 23:27:21 +02:00
pancake bff22b12bd Meta+Enter zooms the panel like in dwm/r2panels 2026-10-13 23:11:34 +02:00
pancake 63f2bd57cd Select small flag ranges in the hexdump on click 2026-10-13 19:31:32 +02:00
pancake 5518aaa29d Keep hexdump types and pins when reopening projects 2026-10-13 19:07:01 +02:00
pancake 73856c6c32 Add a recursive structure tree and pins to the hexdump ## 2026-10-13 19:06:51 +02:00
pancake 018c210777 Fix empty hexdump fetches allocating excessive memory 2026-10-13 19:06:22 +02:00
pancake 59a47845f0 Move Flags from Bin to Data in the View menu 2026-10-13 18:27:01 +02:00
pancake 11b530a526 Add global variable editing and navigation widget ## 2026-10-12 18:37:49 +02:00
pancake f6b792020a Add filesystem browsing and code navigation tests 2026-10-08 19:15:27 +02:00
pancake c50dc3313f Add source file browsing and clickable address previews ## 2026-10-08 19:15:00 +02:00
pancake 0e5a49c331 Fix make run without make install in macos 2026-10-07 15:52:48 +02:00
pancake 74c12685a0 Show options for the decai decompiler 2026-10-07 15:46:13 +02:00
pancake 93af6edfe9 Toggle decompiler with TAB, toggle graph with SPACE 2026-10-07 15:21:55 +02:00
pancake 977578a91e Basic block colors in minigraph and hexdump too 2026-10-07 07:59:44 +02:00
pancake e980b1cb48 Release 6.2.4 2026-10-06 00:08:21 +02:00
pancake b5edef36bc Add hack to workaround r2 6.2.4 r_cmd.h msvc issue 2026-10-05 22:28:23 +02:00
pancake 1208624c77 MakeFmt 2026-10-01 17:20:00 +02:00
pancake eff435fc29 Bounded scrollbar by default 2026-10-01 15:39:46 +02:00
pancake af1f536b0f Hightlight background of the actionable items on hover 2026-10-01 15:26:50 +02:00
pancake 6affec227d Pointing hand cursor for the actionable items in disasm too 2026-10-01 15:11:13 +02:00
pancake e0a120ad08 Implemented the pointing-hand cursor over flags in HexWidget 2026-10-01 14:33:47 +02:00
pancake 3383cc1d92 Fix disasm glitch 2026-09-30 16:35:21 +02:00
pancake 7eade2df0c Pinch to zoom in the data analysis 2026-09-30 09:43:21 +02:00
pancake bd1105f45d Introduce the hexpat widget 2026-09-29 21:40:24 +02:00
pancake a7532b4d80 Introduce the advanced DataAnalysis widget 2026-09-29 21:30:37 +02:00
pancake 11240a1a0f Optimize list filtering and type combobox 2026-09-28 12:55:31 +02:00
pancake ddb7bdb428 Better tree collapsing behaviours in listings 2026-09-28 12:36:32 +02:00
pancake b912778e62 Better demangling support on listings 2026-09-28 12:20:14 +02:00
pancake dc1fde07f5 Tree/list and shared filter for functions, symbols, imports, exports and flags 2026-09-28 11:56:59 +02:00
pancake 1e089d9c37 Introduce the ExceptionBar for disasm and graph navigation 2026-09-28 11:13:48 +02:00
pancake e0e9690fd5 Add support for collapsing sparse gaps like pxs do in r2 2026-09-28 06:21:59 +02:00
pancake bbbea0adcd Release 6.2.2 2026-09-06 21:29:54 +02:00
pancake f8ef719e31 Zoom widget can be shrinked more 2026-09-04 01:01:27 +02:00
pancake e560d5f88c Add scrollbar to the disasm and hexdump widgets 2026-09-04 00:48:54 +02:00
pancake 3f9e2f78f9 Add customizable resolution in the navigation bar 2026-09-04 00:28:08 +02:00
pancake d29c291ff7 Fix recent scrolling bugs 2026-09-04 00:24:00 +02:00
pancake e62e0a9d70 Optimize scrolling in the hexdump widget 2026-09-03 22:08:02 +02:00
pancake 0ccc495308 Optimize scrolling in the disassembly widget 2026-09-03 22:07:57 +02:00
pancake 95ca7a071f Export name after address 2026-09-03 20:21:54 +02:00
pancake 4e100c4fc3 Not zoomable projec lists in the newfile dialog 2026-09-03 20:12:40 +02:00
pancake abf90e6eaa Branch line arrows scale as well 2026-09-03 20:12:03 +02:00
pancake dd28d5b367 Fix build on qt <6.3 2026-09-03 19:05:24 +02:00
pancake d7fabe89f2 Try address before seeking there 2026-09-03 17:52:21 +02:00
pancake 069b64679c Use proper ellipsis in menu labels 2026-09-01 16:38:13 +02:00
pancake 7a8701f030 Proper session closing, with proper async handling 2026-09-01 16:19:30 +02:00
pancake dafb693b59 Fix Load Options close button cancellation 2026-09-01 16:10:50 +02:00
pancake 8df94a0b91 Fix redo for cached write changes 2026-09-01 16:02:25 +02:00
pancake e9c99b6da4 Fix map actions and validate map input 2026-09-01 15:29:39 +02:00
pancake 144dcce52f Fix map edits being silently discarded 2026-09-01 15:20:51 +02:00
pancake f6c5cf0cb8 Add demangler plugins tab 2026-09-01 14:35:19 +02:00
pancake c3ecfea9bb Prompt to copy a readonly theme instead of doing nothing 2026-09-01 14:31:53 +02:00
pancake 5c7dbaca9c Branch lines in disasm widget now dynamically its width 2026-09-01 14:28:38 +02:00
pancake 2982ce12f9 Reorder symbols columns, and focus functions 2026-09-01 14:07:46 +02:00
pancake eaf3b1ae36 Reorder imports columns 2026-09-01 14:06:10 +02:00
pancake c2da3b5c88 Add toggle to list all or just local platform packages 2026-09-01 14:03:16 +02:00
dependabot[bot] 815267962d Bump actions/setup-python from 6 to 7 2026-08-30 02:48:49 +02:00
Claude 60da11e8d9 Fix #311 - Scroll the disassembly by lines instead of instructions 2026-08-29 20:33:39 +02:00
pancake 244596bcb0 Fix cobalt theme colors 2026-08-29 20:20:27 +02:00
pancake 27be4123c3 Add View->FcnBound option to honor asm.lines.fcn in disasm 2026-08-29 01:53:33 +02:00
pancake 158ba57ae5 Show full r2pm error message if anything goes wrong 2026-08-29 00:52:53 +02:00
pancake bb0c8ab6d4 Fix #310 - Persist initial option dialog settings 2026-08-28 15:48:48 +02:00
pancake e35d443079 Fix #306 - bininfo respects mapaddr 2026-08-27 18:14:54 +02:00
pancake 55a401b3dc Fix build warning 2026-08-26 19:57:36 +02:00
pancake 0ecf546b80 Fix build with latest r2 2026-08-16 23:42:04 +02:00
pancake 4a14b8ddfb Add language interface dumper widget and menu entey 2026-08-11 22:42:39 +02:00
pancake 61f47fca35 Release 6.2.0 2026-08-10 13:41:39 +02:00
pancake ab9eb65ac3 Use r2 and r2g 6.2.0 in the ci 2026-08-08 12:23:26 +02:00
pancake 04ca1b2f13 Implement iaito -H to list env common vars 2026-07-28 15:28:26 +01:00
pancake 24e410c41a Fix build for r2git 2026-07-23 14:19:47 +02:00
Pau RE 9c0cf0116c Update macos-sign CI 2026-07-22 13:29:09 +02:00
pancake 3ea7715576 Support pre-110-abi resources 2026-07-15 16:43:38 +02:00
pancake 455617e037 Use the new RBin APIs in the resource widget 2026-07-15 12:40:43 +02:00
dependabot[bot] 0ff5a468e5 Bump actions/checkout from 6 to 7 2026-06-25 16:04:52 +02:00
pancake fb1b22c35f Release 6.1.8 2026-06-23 18:23:30 +02:00
pancake f67b3a624b Raise the disasm/hex/graph/decompiler on start 2026-06-23 18:21:10 +02:00
pancake 146b28d184 Use RMuta for hashing 2026-06-23 17:35:04 +02:00
pancake f90e9931bb Deeplinks work from r2ai conversations too 2026-06-23 16:36:53 +02:00
pancake 36702df4d2 Add copy deeplink and make them accessible from comments/notes 2026-06-23 13:34:51 +02:00
pancake e5e991eef1 Add sha256 database for deeplinks and VT lookup integration 2026-06-23 12:33:47 +02:00
pancake 5a2cacbb22 Resize font size in NewFileDialog with mouse wheel 2026-06-23 11:42:38 +02:00
pancake 9ec68f2426 Add support for deeplinks 2026-06-23 11:16:51 +02:00
Nitan Alexandru Marcel 37c69f1be1 Refactor customizable keybindings support 2026-06-22 01:00:28 +02:00
pancake 4907be5edb Set the R2_WWWROOT for the bundled mac builds 2026-06-19 14:12:26 +02:00
Marcel Alexandru Nitan a426633df6 Fix build 2026-06-18 16:48:36 +02:00
pancake 585abd51ea Fix the DockManager issues in macOS 2026-06-18 16:06:25 +02:00
pancake bc98912424 Better macOS relayout repaint 2026-06-18 14:32:59 +02:00
pancake 8c54b1650e Graph Overview no longer depends on GraphView to work 2026-06-18 14:24:38 +02:00
pancake fba1753457 Fix macOS dock drop overlay ghosting over OpenGL panels 2026-06-18 14:20:46 +02:00
pancake 7633fc891c Handle asm.addr.base in settings/disasm/hexdump 2026-06-18 14:04:12 +02:00
pancake 976b41ffd5 Dockify cleanup 2026-06-18 13:46:15 +02:00
pancake d647d4291f Huge docking layout rework fixing bugs and improving usability 2026-06-18 12:11:30 +02:00
pancake 45e895d746 Docking refactoring, cleanup and fixing some lost panel bugs 2026-06-17 20:03:14 +02:00
pancake c5b3632379 Add dwarf/source as a decompiler option 2026-06-17 17:40:21 +02:00
pancake 9ebea99c80 Handle asm.addr.relto in hexdump widget 2026-06-17 17:29:50 +02:00
pancake bd90af5a2a Force UI refresh when running some commands in the console 2026-06-10 18:39:46 +02:00
pancake f48325b11e Refresh the UI when some commands are executed in the shell 2026-06-10 18:33:33 +02:00
Marcel Alexandru Nitan 7a982fb681 Override default CT_MenuItem sizing
Fixes truncated menu items
2026-06-09 11:21:17 +02:00
Nitan Alexandru Marcel da160271ad Replace Qt Style Sheets with custom QStyle engine
- https://www.kdab.com/say-no-to-qt-style-sheets/
- https://github.com/oclero/qlementine
2026-06-08 23:04:28 +02:00
pancake db945fc9b1 Drop the empty space below the filter box 2026-06-08 19:37:07 +02:00
pancake 59c69f21c9 Fix relayouting when dragging panels in Linux 2026-06-08 19:33:29 +02:00
pancake 0dc50a7306 Slightier toolbar icons and fix a toolbar menu glitch 2026-06-08 12:07:10 +02:00
pancake 33223ed594 Add custom markdown style and centralize its rendering 2026-06-07 23:11:59 +02:00
pancake ed44971875 No more locked/unlocked panels hacks, natural modern layouting 2026-06-07 14:30:20 +02:00
pancake 391d1d385e Implement 'uis' command to select byte ranges from scripts 2026-06-07 10:06:54 +02:00
pancake acf34585a5 Add 'uig' to gotoAndShow 2026-06-07 10:02:40 +02:00
pancake 7920ad3be6 Add 'uip' command to list and focus panels 2026-06-07 09:57:37 +02:00
pancake 67c2ccdb89 The 'uir' commnd refreshes all widgets from the mainwindow 2026-06-07 09:39:17 +02:00
pancake 2638a61b59 Add a button in settings to manually pick plugins to load 2026-06-07 09:33:21 +02:00
Marcel Alexandru Nitan cfc83bc92f Add IDA Pro inspired theme 2026-06-06 19:28:46 +02:00
pancake 4528457e93 Add a secondary navigation bar 2026-06-06 19:08:50 +02:00
Nitan Alexandru Marcel 60671f810d Add syntax-colored minimap to graph blocks 2026-06-06 18:12:42 +02:00
Marcel Alexandru Nitan 8bd4789a00 Add support for user-defined interface themes
Remove hardcoded colors

Wire interface theming into an UI

Allow navigation bar customization

Implement theme name validation

Fix copying built-in interface theme
2026-06-06 06:27:09 +02:00
pancake 1a4ae4b22b Fix startup freeze from redirected r2 logs 2026-06-05 16:23:50 +02:00
pancake 2d3ab3cd46 Release 6.1.6 2026-06-03 13:12:27 +02:00
pancake eb89ac2829 Context option to disable selection sync 2026-06-03 12:43:40 +02:00
pancake 6b9f07e10b Sync byterange selection across disasm-hex-graph widgets 2026-06-03 12:32:45 +02:00
pancake 323b6a77f2 Fix #212 - fix cursor behaviour in disasm and graph + tooltips for registers 2026-06-03 10:43:39 +02:00
pancake b75507bafd Fix #220 - Convert multiple instructions into data in the disasm 2026-06-03 09:38:50 +02:00
pancake c0041e087b Avoid calling abj commands if there's no function
* Fixes console flooding with errors when tapping the navbar
2026-06-03 01:09:19 +02:00
pancake 9f9defe7fe Json parsing is shared across all decompilers 2026-06-03 00:51:38 +02:00
pancake 6f06f58c24 Gadgets searchs moved again 2026-05-13 10:30:34 +02:00
pancake 0a04cfaeee Use /G to search for generic gadgets 2026-05-12 20:32:20 +02:00
pancake b2bd4b3ff6 Use the vector apis for symbols and imports 2026-05-12 17:23:23 +02:00
pancake 3048aa9634 Honor scr.highlight in the decompiler widget 2026-05-11 16:03:31 +02:00
pancake b69358b7a6 Fix the Meta/Ctrl inconsistency between macOS vs the world 2026-05-11 15:56:01 +02:00
pancake 0b89fa479e Add r2mcp support 2026-05-11 14:05:46 +02:00
pancake b4fb07fee7 Dont include function name in graph/decompiler tabs 2026-05-11 12:16:55 +02:00
pancake 837f85f0b2 Configurable basicblock contents in graphs via context menu 2026-05-11 12:15:21 +02:00
pancake 3c71473e14 Dont prompt for function names when creating them 2026-05-11 11:46:10 +02:00
pancake 2cc4e4eb66 Initial support for r2jadx 2026-05-11 11:37:18 +02:00
pancake 79123dd623 Fix build for non-git r2 2026-05-07 17:28:50 +02:00
pancake 72889bcd2d Use RFS apis in the filesytem widget and support fs options 2026-05-07 14:16:09 +02:00
pancake 8a1316d2bc Initial support for async r2ai decompilation 2026-05-06 14:02:11 +02:00
pancake b6eee838dd Add option to display address associated with each decompiler statement 2026-05-06 12:26:53 +02:00
pancake 6bdf44423d Autodetect decompiler highlighting logic making user's life easier 2026-05-06 11:57:17 +02:00
pancake a3b9012ee1 Initial support for r2ai query prompts (aka skills) 2026-05-05 20:07:56 +02:00
pancake d9e5c17fda r2ai widget appears in the center of mainwindow now 2026-05-05 19:54:27 +02:00
pancake 659f72ae8c Fix tool execution after aproval via r2ai 2026-05-05 19:41:00 +02:00
pancake 9393a5f8a4 Steps forward async r2ai support 2026-05-05 18:28:10 +02:00
pancake 82b7ff33f2 Fix override warnings 2026-05-05 17:23:31 +02:00
pancake bb29169e5c Clarify dwarf info in loading options 2026-05-05 16:17:53 +02:00
pancake d2c228892f Add fancy icons in the function widget context menu 2026-05-05 14:03:01 +02:00
pancake b6f8b69f54 Add dialog to create and manipulate Switch JumpTables 2026-05-04 23:21:06 +02:00
pancake a8fa25b49e Fix disasm bbcolor and context menu 2026-05-04 19:44:01 +02:00
pancake 15acc10df5 Remove non portable/problematic emojis on linux 2026-05-04 19:31:30 +02:00
pancake 0f3dbdbe96 New CodeInfoWidget show op, bb, func details 2026-05-04 19:30:20 +02:00
pancake 90f598bbe5 Add/Edit flag options in sync with hex and disasm 2026-05-04 18:48:23 +02:00
pancake 92816c58b0 Fix qt5 build 2026-05-04 17:41:16 +02:00
pancake fdaa11ba07 Fix disasm row highlight color for dark themes 2026-05-04 12:04:14 +02:00
pancake 65ef2a6f2c Fix some resize hints in the Settings window 2026-05-04 11:59:01 +02:00
pancake 13c4522523 Add bblines toggle in the context menu of the disasm widget 2026-05-04 11:53:23 +02:00
pancake 1f9e0c4ad0 Fix disasm gap caused by wrong font metrics 2026-05-04 11:53:19 +02:00
pancake e8f7965a36 Adjust quickfilter width accordingly 2026-05-04 11:53:15 +02:00
pancake f7deacbf8d Fix locked splitters regression in mainwindow 2026-05-04 11:53:11 +02:00
pancake 1352d7f368 Fix build adding missing headers 2026-05-02 23:46:15 +02:00
pancake c0982c368a Add comment dialog is now keyboard friendly 2026-05-02 20:27:42 +02:00
pancake 81c9e6efbb Make the hexdump scrolling faster
- FetchData on everytick is not necessary
- Flag background color by ranges
- Cursor movement redundant calls to cmdFunctionAt
2026-05-01 16:52:48 +02:00
pancake 8bdea890ee Speedup scrolling in the disassembly
- Added a bounded basic-block color cache
- Disabled text edit updates during rebuilds to avoid repaint churn.
- Avoid inserting an extra block and deleting it afterward.
2026-05-01 16:43:09 +02:00
pancake fb3f35f28c Fix disassembly bottom gap issue 2026-05-01 16:38:29 +02:00
pancake 9ddfcfa67a Add icons in the app menu 2026-05-01 16:31:07 +02:00
pancake 5a6965f47f Refactor and cleanup the context menu in the hexdump 2026-04-30 20:44:29 +02:00
pancake 2375092641 Dont show the useless (Empty) in some tabs 2026-04-30 18:59:49 +02:00
pancake 20b46190f7 Make dark theme buttons a little bit more round 2026-04-30 18:58:02 +02:00
pancake 9bf15002d2 Redesign the disassembly context menu 2026-04-30 17:37:34 +02:00
pancake 19e442b02b Add syscalls tool, improve default layout 2026-04-24 21:07:00 +02:00
pancake 1462ab8605 Add calculator and assembler tools 2026-04-24 19:56:15 +02:00
pancake a448f2e439 Initial major refactoring of the app menus 2026-04-24 19:40:52 +02:00
pancake 8d6511b0bb Add File->Manager dialog with the right tabs in it 2026-04-24 12:30:34 +02:00
pancake 09bcc04457 Restrict combobox max height 2026-04-24 12:18:41 +02:00
pancake 840c053b78 Basic block colorization in the disassembly 2026-04-22 22:31:04 +02:00
pancake b15f643175 Fix graph navigation keybindings like in r2 2026-04-22 22:06:57 +02:00
pancake fedf119f3d Fix decompiler font size behaviour 2026-04-22 22:06:48 +02:00
pancake a58c64e19d More accessible stock font settings 2026-04-22 21:48:59 +02:00
pancake ca5aba0b88 Preferences -> Settings 2026-04-22 21:43:40 +02:00
pancake a06ee3a53f Add classic theme with the public domain w95 font 2026-04-22 21:28:27 +02:00
pancake 71501a5f9e Improve graph lines, bgtint, add title and shadow 2026-04-22 16:46:23 +02:00
pancake 021e6e7dd5 Fix arrow rendering glitch in the graph 2026-04-22 15:45:54 +02:00
pancake f00bd996b8 Fix resize event infinite loop and other garbage selection events causing 100% cpu 2026-04-22 11:50:47 +02:00
pancake 4e4ed4bf4e Enable new projects by default 2026-04-21 20:53:43 +02:00
pancake 219b8bd347 Cooler project circles 2026-04-21 20:43:29 +02:00
pancake c4744cf05d Dont use windows keywords for portability reasons 2026-04-21 00:12:24 +02:00
pancake 9847074e66 Add r2ai decompiler too 2026-04-20 20:14:19 +02:00
pancake 74142d0960 Add decompiler options for Decai 2026-04-20 20:07:03 +02:00
pancake 637cc91e05 Fix mouse-over glitch in light theme buttons 2026-04-20 19:22:30 +02:00
pancake 09c4042b0a Cache font metrics to reduce memory usage 2026-04-20 19:15:56 +02:00
pancake cb865912a4 Reduce 3.6MB in the setStyle logic spotted with heaptrack 2026-04-20 19:06:52 +02:00
pancake f066af54c6 Move the BindFont helper into a reusable function 2026-04-20 18:09:54 +02:00
pancake 5d96c27c49 Connect ListWidgets with the resizable font event 2026-04-20 17:54:42 +02:00
pancake 9dba69e73e Filter more qtimage errors, this qt warnings are a mess 2026-04-20 17:45:49 +02:00
pancake fbcc33a107 Default tab in hexdump sidebar is values now 2026-04-20 17:41:28 +02:00
pancake 43ee34e96b Add statusbar toggle in the context menu of the toolbar 2026-04-20 17:41:14 +02:00
pancake 3199881132 Optimized font metrics cache 2026-04-20 17:40:58 +02:00
pancake 5579b69d57 Guard against reentrant logs in the console widget 2026-04-20 17:28:22 +02:00
pancake ce3e581e60 Add an option to toggle the statusbar 2026-04-20 17:05:41 +02:00
pancake b49bff7695 Bring back the analysis progress dialog 2026-04-20 17:04:55 +02:00
pancake b6e20cc15e Close the contextmenu after picking an option in the navbar 2026-04-20 16:59:09 +02:00
pancake 96eb17e0c8 Reduce memory usage in the types widget 2026-04-20 16:58:49 +02:00
pancake 0d7396d141 Resize font in hexdump with control+wheel 2026-04-20 16:43:31 +02:00
pancake 1a50c804ff Guard the function pining feature to fix build on old r2 2026-04-20 16:22:22 +02:00
pancake dbafec2394 Add support for decompiler options 2026-04-20 16:17:47 +02:00
pancake 0e6a4173d6 Implement Refs and XRefs widgets 2026-04-20 15:59:24 +02:00
pancake 29ca4e870e Implement pinch to zoom in the graph overview 2026-04-20 15:42:55 +02:00
pancake 43fa969337 Allow to relocate the navbar from the context menu 2026-04-20 15:36:41 +02:00
pancake 9125397762 More sizehints for the hexdump widget 2026-04-20 15:19:36 +02:00
pancake 253de4ffd3 In the toolbar: move widgets to app menu, add action buttons 2026-04-20 15:12:51 +02:00
pancake bafa30848e Filter symbols by name and comment 2026-04-20 15:05:08 +02:00
pancake 904d4e98f4 Add more listing widgets in the left panels in the default layout 2026-04-20 14:18:22 +02:00
pancake 92c0005e89 Fix function renaming not working sometimes 2026-04-20 14:18:07 +02:00
pancake d72ae5faec Usability and UX improvements in the hexdump for cursor selection 2026-04-20 13:52:02 +02:00
pancake 5c61582364 Fix columns and improve layout to take less height in Files widget 2026-04-20 12:59:31 +02:00
pancake cbb0c53abf Toggle graph overview from the graph view 2026-04-19 19:33:23 +02:00
pancake 6483c8b4a6 Fix scrolling stuck problem for x86-16 binaries when code wasnt analyzed 2026-04-19 18:57:15 +02:00
pancake 48b2f74b12 Improved function pining and coloring behaviours 2026-04-19 02:15:06 +02:00
pancake 028dbab360 Wip code to optimize codemeta caches 2026-04-19 02:15:03 +02:00
pancake 3348f0f3f8 Fix warnings and last window closed doesnt closes the whole app 2026-04-19 02:15:00 +02:00
pancake a071b97c45 Fix warning in the DecompilerTask 2026-04-18 21:17:42 +02:00
pancake a0a7b54a95 Dont quote function reactions and format 2026-04-18 11:56:40 +02:00
pancake 1e6d80ed95 Autocomplete filepaths in the NewFileDialog 2026-04-18 11:52:02 +02:00
pancake d8eec7cc1f Add function pin support if available in r2 2026-04-18 11:37:40 +02:00
pancake e0aec1f7aa Add colorpicker for functions in the function widget context menu 2026-04-18 11:09:55 +02:00
pancake b6a210fc67 Initial support for the Hermes decompiler 2026-04-18 11:06:02 +02:00
pancake 0d86970f84 Show colorized bbs/flags in navbar 2026-04-18 09:58:59 +02:00
pancake 836d32c8d9 The makefile is autogenerated, git rm 2026-04-17 20:51:06 +02:00
pancake 217d001177 Add ViewMenubar because if it was removed it cant be added lol 2026-04-17 20:45:06 +02:00
pancake c1c9300a25 Add extra guard showing a clear error if user tries to build with old r2 2026-04-15 12:36:33 +02:00
pancake b4a75222fd Fix logoButton signal in the NewFileDialog 2026-04-14 19:07:14 +02:00
pancake 0e113bb25e Fix invalid config var name 2026-04-14 18:57:01 +02:00
pancake 2ea419e00a Make run installs the icon to please the task switcher 2026-04-14 18:42:30 +02:00
pancake 9920147530 Load stock qt icons for file/folder instead of unexistent files 2026-04-14 18:38:48 +02:00
pancake 05877345db Silence the libpng spam coming from buggy Qt6 2026-04-14 11:48:47 +02:00
pancake 1480a14414 PngCrushForceFix them all 2026-04-14 11:48:47 +02:00
pancake de683ce850 Fix CI: replace abandoned ilammy/msvc-dev-cmd with TheMrMilchmann/setup-msvc-dev (#290)
The ilammy/msvc-dev-cmd action is no longer maintained and still runs on
Node.js 20, which triggers a deprecation warning on GitHub Actions runners.
Switch to TheMrMilchmann/setup-msvc-dev@v4 which is actively maintained
2026-04-14 00:50:53 +02:00
pancake 55130697c5 Release 6.1.4 2026-04-13 22:29:01 +02:00
pancake 03fb805a89 Fix build for future libstore 2026-04-13 22:12:27 +02:00
pancake c251b496b2 Format code again 2026-04-13 20:29:13 +02:00
pancake c574e93208 Fix getting stuck trying to scroll up in the disassembly 2026-04-13 19:00:59 +02:00
pancake 44d7b76eb1 Add the bold variant for ibm plex 2026-04-13 18:39:20 +02:00
pancake a0d3dcabdd Ship and register the IBM Plex Mono font 2026-04-13 18:34:55 +02:00
pancake 50465c2827 Honor http.ui, show webserver icon in the statusbar and check for busy port 2026-04-13 17:52:37 +02:00
pancake 636a326591 Reduce the need for some hacky static casts 2026-04-13 17:40:08 +02:00
pancake 258c9c50bb Guard keyboard-triggered rename/delete slots against invalid currentIndex 2026-04-13 17:23:24 +02:00
pancake ba715d93a8 Store ColorOptionDelegate as a typed member in ColorThemeListView 2026-04-13 17:17:44 +02:00
pancake a2ca4364e6 Pair beginResetModel/endResetModel in FunctionsWidget MONOTHREAD refresh 2026-04-13 17:06:34 +02:00
pancake 060400b375 Fix two-phase init antipattern causing some racy null derefs 2026-04-13 16:47:37 +02:00
pancake f2055bb413 Build theme text once, write once and check for errors
* Saving partial themes make no sense
2026-04-13 16:39:00 +02:00
pancake 8dd8bea745 Use only strings in TempConfig to fix a type inconsistence problem 2026-04-13 15:45:49 +02:00
pancake e7ac2795cd Remove the unused and mostly commented out SettingsUpgrade code 2026-04-13 14:59:23 +02:00
pancake aadb3e53a3 Enforce colortheme parsing logic with bounds and typesafety 2026-04-13 14:50:00 +02:00
pancake 0619f6aa6e Add --without-debugger configure/meson flag 2026-04-13 13:47:02 +02:00
pancake c1c885541d Avoid using invalid theme names, solves path traversal vuln 2026-04-13 13:46:20 +02:00
pancake 96d2099036 Remove --with-python configure flag 2026-04-12 23:15:09 +02:00
pancake 5a02c74900 Add -d flag and initial working debugger support (pretty wip) 2026-04-12 23:12:59 +02:00
Pau RE e2f04b4cb0 Upgrade Qt for mac/win builds 2026-04-12 14:00:23 +02:00
pancake 318636ce8c Clean the mocs too 2026-04-11 19:44:36 +02:00
pancake c401fd77e9 Make fmt 2026-04-11 19:43:08 +02:00
pancake d6c44e3393 Handle live system theme change 2026-04-11 18:56:01 +02:00
pancake 45120ece4a Initialize more variables just in case 2026-04-11 18:36:56 +02:00
pancake e61e731656 Fix uninitialized variables in the GraphGridLayout 2026-04-11 18:06:40 +02:00
pancake f2cee8a338 Fix redundant code in maps and colortheme 2026-04-11 12:48:55 +02:00
pancake e58a412918 Fix class rename bug in the listing not updated 2026-04-11 12:48:12 +02:00
pancake 94e3f77731 Fix redirectOutput logic bug in the ConsoleWidget 2026-04-11 12:46:08 +02:00
pancake 8e41ec7543 Fix infinite loop in the graphviz layout 2026-04-11 12:45:45 +02:00
pancake 02f952cef3 Dont mess with RAnalFunction fields directly to avoid internal data structure changes 2026-04-11 12:44:48 +02:00
pancake c9c55b00db Bound fixes in removeRows, color pickers and types widget 2026-04-11 12:42:47 +02:00
pancake 4d611f4024 Fix HexWidget zero-sized flag underflow and wheel scroll-up snap 2026-04-11 12:40:55 +02:00
pancake 3b4da08524 Fix some logic and memory leak bugs 2026-04-11 12:39:32 +02:00
pancake 0e08185050 Remove temporary file if crash happens during dump action 2026-04-11 12:36:25 +02:00
pancake 696584caa7 Dont crop text if not necessary 2026-04-11 12:35:18 +02:00
pancake c0c9f1bbfe Dont register rasta theme twice 2026-04-11 12:34:25 +02:00
pancake e684efc225 Fix unbalanced call in the strings widget 2026-04-11 12:32:32 +02:00
pancake 31ded012fb Fix bounds check in FunctionsWidget 2026-04-11 12:31:08 +02:00
pancake d253413d73 Fix copypaste errors in bug reporting and addressable items 2026-04-11 12:30:31 +02:00
pancake 345523e2c6 Fix uninitialized buffer write in IaitoCore::hexStringToBytes 2026-04-11 12:28:07 +02:00
pancake b69946ad36 Add 'check for updates' button to open the releases page 2026-04-11 11:34:00 +02:00
pancake e649769d5c Six more logic bug fixes applied
1. Iaito.cpp::getFunctionEnd — now returns r_anal_function_max_addr(fcn) instead of fcn->addr.
2. NewFileDialog.cpp::fillRecentFilesList — replaced the replace(basename, "") / chop(1) mangling with QFileInfo::absolutePath() and a
startsWith-based home-prefix collapse.
3. RemoteDebugDialog.cpp::fillFormData — guards lastColon < prefixLen so a GDB URI without a port leaves the port field empty and uses the rest as
IP.
4. R2TaskDialog.cpp + AsyncTaskDialog.cpp — swapped the tr("%n second", "%n seconds", ...) arguments so Qt's plural machinery picks the right form
for n==1.
5. BasicBlockHighlighter.cpp::highlight and clear — both now look up the existing entry, delete it, and erase before inserting/returning,
eliminating leaks on overwrite/clear.
6. DecompileTask — moved loopInterrupted from a file-scope static to a per-instance member (bool loopInterrupted = false; in the header), so two
concurrent decompile tasks no longer race on a shared flag.
2026-04-10 15:28:07 +02:00
pancake 33e09b50ea Fix a batch of logic bugs from the ailogic audit
- IaitoApplication: honor -B/--base by writing into opts.fileOpenOptions
  instead of a discarded local InitialOptions, which made the flag a no-op
- Iaito: break the R2Task reference cycle in asyncCmd/asyncCmdEsil by
  capturing a QWeakPointer in the finished lambda, so tasks no longer
  leak forever once they finish
- GraphHorizontalAdapter: forward a swapped LayoutConfig to the wrapped
  layout so horizontal graphs use the intended spacing axis
- XrefsDialog: normalizeAddr now strips only the "0x" prefix (mid(2),
  not mid(3)), and guards inputs that don't start with "0x"
- Highlighter / MdHighlighter: use QRegularExpression::globalMatch so
  multiple matches per line get correct offsets and lengths
- Highlighter: search the next /* using an absolute index in text and
  drop the redundant temporary QRegularExpression copies
- ProgressIndicator: only killTimer when one is actually running, so
  re-entering updateAnimationTimer no longer freezes a live spinner
- ColorThemeWorker: use QFileInfo::isWritable and invert the check that
  was both backwards and dead on an unopened QFile
- SyntaxHighlighter: fix \switch / \static / \while word-boundary typos
  so those C keywords actually get highlighted
2026-04-10 14:20:41 +02:00
pancake c00b73bc35 Fully remove all the Python leftovers support 2026-04-10 14:14:34 +02:00
pancake ba5c3251f8 Fix 7 logic bugs causing crashes spotted by $ailogic
1. Iaito.cpp::isWriteModeEnabled — replaced the std::find_if(...)->toObject() past-the-end deref with a range-for that returns false if no raised
entry exists.
2. Iaito.cpp::getAllClassesFromFlags — replaced QMap<QString, BinClassDescription*> with QMap<QString, int> indices into ret, eliminating the UAF
when QList reallocates on append.
3. TextEditDialog.cpp::openTextEditDialogFromFile — stored toUtf8() in a named QByteArray to keep the buffer alive; also fixed the leaked returned
QString* and freed data earlier.
4. PythonAPI.cpp/.h — removed completely: deleted both files, removed #include "PythonAPI.h" and the PyImport_AppendInittab("_iaito", &PyInit_api)
line from PythonManager.cpp, and removed both entries from src/Iaito.pro (SOURCES + HEADERS). This subsumes the api_refresh/Py_INCREF fix.
5. DecompilerHighlighter.cpp::highlightBlock — rebased the absolute range->start to block-relative by subtracting the block start before calling
setFormat.
6. DisassemblerGraphView::instrForAddress — added the missing null check on blockForAddress result.
7. IaitoApplication::versionCheck — changed && to ||, made the locals const, and fixed the "somwhere" typo.
2026-04-10 14:02:02 +02:00
pancake e6e9dddba2 Add support to import and export projects 2026-04-08 22:07:37 +02:00
pancake d47b0cbeaf Fix hexdump column width depending on font size 2026-04-07 18:45:20 +02:00
pancake 94a7c8863f Improve preferences layout a little more 2026-04-07 16:53:24 +02:00
pancake dfdeaf1836 Add support to start and configure the webserver 2026-04-07 16:43:58 +02:00
pancake 0a35580620 Shrink Attach tab columns 2026-04-07 16:12:36 +02:00
pancake 302bbff3a3 Fix #186 - Show project details 2026-04-07 16:01:39 +02:00
pancake f66dacf430 Add FileDump menu entry 2026-04-07 13:44:42 +02:00
pancake c7d1f4be3d File->Scripts is now integrated into Preferences 2026-04-07 13:34:52 +02:00
pancake 44848d44de Add Attach tab in the NewFileDialog 2026-04-07 12:56:15 +02:00
pancake ce18a5ed50 Support scr.highlighting in the disasm via menu and ^F key 2026-04-07 12:28:41 +02:00
pancake 179391c4e0 Prompt the user to interrupt analysis when ESC is pressed when loading 2026-04-07 11:57:13 +02:00
pancake 7bb6e48ca7 Improve preferences window layout 2026-04-07 11:48:16 +02:00
pancake 5263d67cc3 Remove support for r2<6.0 2026-04-07 11:05:46 +02:00
pancake df49d29e83 Add RFS, RMuta and RLang plugins tabs in preferences 2026-04-07 11:00:20 +02:00
pancake d585b0889a Meta+L toggles "Lock Panels" 2026-04-07 10:54:18 +02:00
pancake dc268a9f12 Add 'supertop' and 'superbottom' navbar locations 2026-04-07 10:51:43 +02:00
pancake 97f38c6ae5 Add mouseover tooltip to the registers view 2026-04-07 10:31:06 +02:00
pancake 0b73d86f69 Fix color of the current PC address 2026-04-07 10:19:09 +02:00
pancake 47f71cb7e5 Fix font size in the registers widget 2026-04-07 10:10:01 +02:00
pancake bb9f6743dc Add menu for debugger continue until [signal, address, program, ret] 2026-04-07 10:00:11 +02:00
pancake b071ea0124 Register names are now clickable to seek 2026-04-06 11:43:51 +02:00
pancake 7dfd907c1c Fix emulator fallback behaviour when debugger fails
* Properly unset cfg.debug when spawn/attach fails
* Initialize virtual stack, set register values
2026-04-06 11:37:02 +02:00
pancake ca916f9a16 Remove all the unused software update checks
* This was deprecated long time ago, and iaito can be installed in many
  ways, so better not to enforce network communications when not needed
2026-04-06 11:12:37 +02:00
Claude b67d2d2320 Fix duplicate signals and add missing refreshes in debug actions
https://claude.ai/code/session_01UGsvjz5g5cKpGYjSCSqXfV
2026-04-06 07:30:29 +02:00
Claude 5aa3181ffd Improve register widget display and reduce redundant updates
https://claude.ai/code/session_01UGsvjz5g5cKpGYjSCSqXfV
2026-04-06 07:30:29 +02:00
pancake 4d48a1ff69 Fix stopDebug() hang: replace blocking joinTask() with async cleanup 2026-04-06 07:26:52 +02:00
pancake 39a389405f Use RConfig apis instead of command calls for r2ai settings
* Silently solve a racy async command bug
2026-04-06 07:15:17 +02:00
pancake 8ee7fab4bd Fix debugger UI hangs: implement breakTask, prevent deadlocks on stop
- Implement breakTask() to set cons->context->breaked, matching the
  pattern from the analysis dialog interrupt (commit a0ce535)
- Add setConsBreaked() as shared API, consolidating 4 duplicate
  implementations (AnalTask, RunScriptTask, DecompileTask, R2Task)
- Add interrupt timer in suspendDebug() that repeatedly re-sets the
  breaked flag across r_cons_break_push/pop cycles
- stopDebug() now joins the running task before issuing sync commands
- Clear breaked state + stop timer after every debug task completion
- Guard startEmulation() asyncCmd return value
- Fix stepOutDebug signal ordering
2026-04-06 06:17:01 +02:00
pancake 0f58b79a4a Enforce codeAlign in NavigationBar 2026-03-31 21:31:45 +02:00
pancake b415c514aa Fix build for non-git r2 2026-03-31 17:28:09 +02:00
pancakeandClaude Opus 4.6 9869ab8744 Prevent WA_DeleteOnClose from destroying dialog during analysis
The InitialOptionsDialog is created with WA_DeleteOnClose. When
done(0) closes it, Qt posts a deferred delete that processEvents()
delivers — destroying 'this' while setupAndStartAnalysis is still
on the call stack. Clear the flag before done() and use explicit
deleteLater() at every return point instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-31 17:03:58 +02:00
pancakeandClaude Opus 4.6 c5811fbfbb Remove re-entrant processEvents from appendLog lambda
appendLog called processEvents() without a re-entrancy guard. The
break callback already pumps the event loop every 100ms which is
enough to keep the UI responsive. Having a second unguarded pump
risks unbounded recursion when nested events trigger more log output.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-31 17:03:22 +02:00
pancakeandClaude Opus 4.6 8b79f526a7 Fix dangling s_analysisLogWidget on loadFile failure early return
When loadFile fails the function returns early without removing the
r_log callback or resetting s_analysisLogWidget. The global pointer
keeps pointing at the destroyed stack-local QPlainTextEdit, so any
subsequent r2 log message writes through a dangling pointer.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
2026-03-31 17:02:57 +02:00
pancake a0ce5356a8 Fix analysis loading progress dialog deadlock on linux 2026-03-31 16:58:14 +02:00
pancake 418b9be377 Dont assume 4 is always the valid alignment 2026-03-30 18:37:32 +02:00
pancake d6da908caf Use r_arch_info instead of r_anal_archinfo 2026-03-30 17:56:42 +02:00
pancake e5410cf323 Bruteforce the interrupt event to fix the async dialog problem 2026-03-30 17:06:32 +02:00
pancake ffcf9646e8 Fix unaligned disasm when cliking the navigationBar 2026-03-30 17:02:33 +02:00
pancake 46d038f244 A bit wider default function name column in the functionsDock 2026-03-30 17:02:19 +02:00
pancake 58369fb768 Dont show the consoleDock by default 2026-03-30 16:58:27 +02:00
pancake a66a8c9780 Bring back the loading progressbar with interrupt button and logs 2026-03-30 16:56:46 +02:00
pancake 1f762503aa Add script manager and make the scripting interface more accessible 2026-03-28 17:58:08 +01:00
pancake fbc4561220 Add "Import symbols" option from the File menubar 2026-03-28 17:40:22 +01:00
pancake 5b1f63fa0d Fix segfault in run script 2026-03-28 17:40:15 +01:00
pancake 6687c73f0f Fix the 'analyze program' menu entry 2026-03-28 17:29:34 +01:00
pancake 4917f52db1 Remove some unnecessary code 2026-03-28 17:08:03 +01:00
pancake d88ba52ec5 Describe analysis plugins in the statusbar onMouseOver 2026-03-28 17:00:36 +01:00
pancake 743b515950 List analysis plugins in the menu entries 2026-03-28 16:11:48 +01:00
pancake f6845f0c83 Fix build 2026-03-28 11:34:00 +01:00
pancake 3dfebf68bc Unify font sizes across widgets 2026-03-28 11:33:57 +01:00
pancake 542a3f4de5 Use meta+0 instead of meta+* to reset font size 2026-03-28 11:33:54 +01:00
pancake a48b74e9d3 Validate project names before project commands 2026-03-23 23:37:40 +01:00
pancake 4284126fb9 Avoid fixed /tmp path for rarun profile editing 2026-03-23 23:37:30 +01:00
pancake 790878048e Release 6.1.2 2026-03-19 14:17:45 +01:00
pancake 11449f4514 Respect RArch APIs to avoid disassembling unaligned instructions 2026-03-17 21:25:59 +01:00
pancake 3fa08ede74 Sanitize FilesWidget open command inputs 2026-03-17 20:42:52 +01:00
pancake d2987d6f3b Fix a warning in File.open helpers 2026-03-17 20:27:15 +01:00
pancake 7aa0b9b2e3 Tightier zoomwidget and save/restore its settings 2026-03-17 20:21:51 +01:00
pancake 3d49d12b2d Handle keys to move around the zoomwidget 2026-03-17 19:54:30 +01:00
pancake 14bd8e68cb Add ZoomWidget 2026-03-17 19:36:26 +01:00
pancake ce618fb021 Sanitize structure offsets before sending aht command 2026-03-17 19:36:07 +01:00
pancake 58d80f39e3 Completely remove the unused and deprecated Python support 2026-03-09 19:47:59 +01:00
pancake 04c3675d38 Fix code injection in the omniseekbar 2026-03-09 19:35:42 +01:00
pancake 760ab5f266 Release iaito 6.1.0 2026-03-09 17:03:51 +01:00
pancake 08b3be3c7e Fix MapsWidget bank command injection 2026-03-07 12:26:02 +01:00
pancake 6448a18076 Sanitize filesystem paths before r2 command execution 2026-03-07 12:25:25 +01:00
pancake ce04d6500b Use theme colors for the navigation bar 2026-03-07 10:52:55 +01:00
pancake 8e84add23b Improve the docker-indent and use llvm20
* Fix the redness between linux/mac formatting
2026-03-07 10:26:11 +01:00
pancake db4351626e Add an option to specify the navbar wide 2026-03-07 10:01:42 +01:00
pancake ff93981bd9 Add in settings an option to position the navigation bar in a different location 2026-03-07 10:01:42 +01:00
pancake 94d799d6a3 Validate annotation ranges for a safer decompiler highlighter 2026-03-07 09:27:17 +01:00
pancake cb47b42a8e Fix graph layout coordinate compression OOB write 2026-03-06 14:07:02 +01:00
pancake 186f91a0a5 Fix command injection in typedef filtering 2026-03-06 14:02:49 +01:00
pancake 3ea208938c Fix command injection in update types 2026-03-06 14:01:10 +01:00
dependabot[bot] 7eb816fdb0 Bump actions/download-artifact from 7 to 8 2026-03-02 22:04:37 +01:00
dependabot[bot] e71c630153 Bump upload-artifact from 6 to 7 2026-03-02 22:03:55 +01:00
pancake cf5b1dbee7 Fix other cast vulnerabilities 2026-02-20 12:06:38 +01:00
pancake 1636f59f9d Initial import of the AGENTS file 2026-02-18 12:13:58 +01:00
pancake b7c1c507d6 Fix decompiler highlighting respecting color theme 2026-02-18 12:03:53 +01:00
pancake 1b5984c0ae Types viewer side panel now uses the same font size as the rest of the UI 2026-02-17 16:27:00 +01:00
pancake 5f44a3259b Switch to use r2 6.1 2026-02-17 16:24:45 +01:00
pancake 868a7e732f 6.1.1 renames anal.types. to types. 2026-02-17 16:09:44 +01:00
pancake 492552cbe6 Add more type groups in the types widget filter 2026-02-17 15:44:59 +01:00
pancake 5780bbd265 Fix types size in the types widget 2026-02-17 15:44:48 +01:00
pancake 5068a0be61 Show tv output in the types widget as a side pane 2026-02-17 14:29:46 +01:00
pancake 83e7a8513b Enable support for editing types in place 2026-02-17 13:40:33 +01:00
pancake ce0334c695 Fix types listing, also add function signatures, typedefs, unions 2026-02-17 13:20:50 +01:00
Alberto Marnetto 3ea6674dfc Let DisassemblyContextMenu get an entity address from addr if offset is not present
On 16-bit x86 binaries, the JSON output of the command `anj` returns
the function address in "addr", not in "offset"
2026-01-29 23:20:12 +01:00
Alberto Marnetto f1f01e5d1a Fix segfault when opening X-refs window 2026-01-27 21:59:43 +01:00
pancake 01d7ae86c3 Ensure api change with abiversion 2026-01-20 16:20:28 +01:00
pancake 1c49e49eff Add TIMETORENDER define in the graphview 2026-01-08 08:21:50 +01:00
pancake d3d4f54a7d Workaround theme switching with r2-6.0.8 2026-01-08 08:09:57 +01:00
pancake 9d0294be7f Share color palette for sections and segments 2026-01-07 13:38:09 +01:00
Pau RE 9faa9e9b9d Add r2ghidra to macOS builds 2026-01-04 21:32:02 +01:00
pancake c85334f956 MacOS13 images are no longer supported by github 2026-01-04 20:50:08 +01:00
pancake ef7467ebf7 Release 6.0.8 2026-01-04 19:04:11 +01:00
dependabot[bot] 27cdc1793c Bump actions/upload-artifact from 5 to 6 2025-12-15 12:52:10 +01:00
dependabot[bot] 920a5b8386 Bump actions/download-artifact from 6 to 7 2025-12-15 12:51:56 +01:00
Pau RE d0bea6ebaa Update macos r2 embed script 2025-12-05 16:54:54 +01:00
potato 9a2f8ae70b Port code to support Radare2 version 6.0.0 API changes
* Use R2_ABIVERSION from now on
2025-12-01 16:55:59 +01:00
Tim Sviridov da62c9a38c Fix Discord link in README 2025-11-30 18:27:22 +01:00
dependabot[bot] 4982ddefbb Bump actions/checkout from 5 to 6 (#252) 2025-11-27 11:19:25 +01:00
Priyanshu Kumar ab823af695 Fix crash, layout calculations and edge routing 2025-11-27 11:18:43 +01:00
pancake 93e3e13d2f Do not include the FileSystem widget in the default layout because glitch reasons 2025-11-26 17:59:08 +01:00
pancake 18a01fba1a Release 6.0.7
* Indent the whole codebase
* Do not install the clang-format-radare2 script in dist iaito
* Add the dummy assert for windows
2025-11-24 12:30:04 +01:00
pancake 2cf5412424 Fix build for 607 2025-11-23 23:56:13 +01:00
dependabot[bot] a7f087aa82 Bump actions/download-artifact from 5 to 6
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-11-18 12:01:11 +01:00
dependabot[bot] 72e754cdc2 Bump actions/upload-artifact from 4 to 5
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-11-18 12:01:02 +01:00
pancake 6833013df8 Add initial support for filesystems in Iaito 2025-10-08 19:50:16 +02:00
pancake 997ba77421 Fix input text height 2025-10-08 12:51:17 +02:00
pancake 7a514f6510 Parse r2pm's JSON instead of the text 2025-10-08 12:47:57 +02:00
pancake e16301a1b1 Fix sorting packages by installed 2025-10-08 12:42:48 +02:00
pancake a107b234d8 Better default size for the pkgmgr dialog 2025-10-08 12:38:20 +02:00
pancake 1326aaca78 Separate package database update from package database listing 2025-10-08 12:37:10 +02:00
pancake ea8f224aa3 Allow sorting r2pm packages when clicking the column titles 2025-10-08 12:28:29 +02:00
Pau RE 6ffbef59c5 Fix macos local builds 2025-10-03 22:18:17 +02:00
Pau RE c89a4afd9f Update deb builds to use Ubuntu 22.04 and QT6 2025-10-02 00:09:01 +02:00
dependabot[bot] d856ea5e91 Bump actions/checkout from 4 to 5 (#243) 2025-09-29 17:38:39 +02:00
pancake 6b4d9663be Release 6.0.4 2025-09-29 13:33:59 +02:00
dependabot[bot] 1e6e664137 Bump actions/checkout from 4 to 5 (#239) 2025-09-29 13:23:09 +02:00
Pau RE e9512807e4 Fix macos dist build rpath 2025-09-29 13:22:09 +02:00
Pau RE 6b6caf3303 Update macos build QT version 2025-09-29 13:22:09 +02:00
dependabot[bot] fa08199f43 Bump actions/setup-python from 5 to 6
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 6.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-09-29 13:19:55 +02:00
pancake f2cf3ed7ed Release 6.0.2 2025-09-29 13:15:00 +02:00
Pau RE 51db05bb23 Update R2 in CI 2025-09-28 21:01:45 +02:00
Pau RE 2a69d7ee3a Add workaround for macos bundled radare2 paths 2025-09-07 19:18:40 +02:00
Pau RE 64279006d2 Update QT App Org info 2025-09-07 19:18:40 +02:00
pancake f3fe8f1f08 Add --welcome flag to show the welcome dialog 2025-09-02 13:30:27 +02:00
pancake 1b5581a255 Initial work towards background decompilation tasks 2025-08-14 20:30:40 +02:00
pancake db360dd6d3 Use 'j/k' to move along functions 2025-08-14 18:49:00 +02:00
ApkUnpacker 521aefc5e4 Fix build for qt5/qt6 2025-08-14 18:48:18 +02:00
pancake e97fc30c61 Replicate the same fix for all the widgets just in case 2025-08-13 17:29:42 +02:00
pancake f89a6ffc02 Fix another crash 2025-08-13 17:11:48 +02:00
pancake 8698122bc0 Fix build with qt5 2025-08-13 11:57:58 +02:00
pancake d39bb2c21d Fix all warnings and segfaults with codex 2025-08-13 11:48:43 +02:00
pancake 6bcadd4b72 Strip file:// to workaround a bug from r2-6.0.2 2025-08-12 21:22:58 +02:00
pancake f5913b36eb Release 6.0.0 2025-08-12 20:20:07 +02:00
dependabot[bot] 9eda7c7137 Bump actions/download-artifact from 4 to 5
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-08-12 18:04:13 +02:00
pancake 2967120d3f Update r2 6.0.2 to remove build hacks 2025-08-12 18:04:00 +02:00
Pau RE f5c574cf64 Update macOS automatic release notes [no ci] 2025-08-11 17:44:34 +02:00
Pau RE 7be0680637 Update radare2 to version 6.0.0 2025-08-08 20:16:21 +02:00
Pau RE 4688eab951 Sign macos release builds 2025-08-08 13:39:43 +02:00
Murphy b2b08d7509 Fix: build with latest r2 api changes 2025-07-11 17:42:20 +02:00
pancake de1d39d8c7 Fix build for latest r2 abi changes 2025-07-04 11:20:35 +02:00
pancake 7735ffaf5f Another ci build fix 2025-06-26 14:07:01 +02:00
pancake e60eea24a6 Fix build 2025-06-26 13:26:49 +02:00
pancake ccaa70ac41 Add .abiversion 2025-06-26 13:10:05 +02:00
pancake c7021f35d3 Fix build for latest r2 2025-06-26 13:08:10 +02:00
pancake bf666cfbbb Oops fix build 2025-06-17 17:01:49 +02:00
pancake 5221578aed Refresh MainWindow when any function key is pressed 2025-06-17 12:53:53 +02:00
pancake 743de1881a Add make lldb target 2025-06-14 10:34:10 +02:00
pancake efc9f079f2 make indent 2025-06-11 19:51:46 +02:00
pancake 153e0f8fc4 Make iaito ::offset/::addr independent for disasm/graph 2025-06-11 16:26:56 +02:00
pancake 88f0f480cd Add as_const helper for C++<17 2025-06-09 17:45:53 +02:00
pancake 2284734b85 Enforce c++20 even for qt5 2025-06-09 17:44:35 +02:00
pancake 211784ae69 Fix build 2025-06-08 01:18:27 +02:00
pancake 01c3263d9d One word fix 2025-06-07 17:23:23 +02:00
pancake e564cfa4fd Honor function keys configuration 2025-06-07 15:00:12 +02:00
pancake 27994a07b3 More cutter->iaito rebranding with subst.sh 2025-06-07 14:25:29 +02:00
pancake af5a48b80e Function key settings in two columns 2025-06-07 13:59:34 +02:00
pancake 7ebc3fed78 Add subst script from radare2/sys 2025-06-07 12:16:11 +02:00
pancake 1419b3961f Fix some warnings 2025-06-07 12:15:27 +02:00
pancake be2e7de8e3 Add KeyboardConfig dialog, aiming to fix #215 2025-06-04 23:51:35 +02:00
pancake 5bc13a6272 Use addr instead of offset in graphview from agfJ 2025-06-03 21:43:35 +02:00
pancake 305d2fe4cf Fix build after rmuta is introduced 2025-06-03 19:05:38 +02:00
pancake 1e64bc0c05 Align graph.offset -> graph.addr as in r2-599 2025-06-03 18:36:44 +02:00
pancake c0c7396fa2 Fix build after rmuta is introduced 2025-06-02 20:01:07 +02:00
pancake 11d4795f3b Add the option to run a command every N seconds in the customcommand widget 2025-05-30 13:33:18 +02:00
pancake 1f64a78c54 CustomCommand: monospaced font + scrolltop checkbox 2025-05-30 13:13:42 +02:00
pancake 9f8c7a3dbf Improved interaction with the custom command widget 2025-05-30 11:53:23 +02:00
pancake 5b96cbf3ca Fix some asynctask issues when running commands in background 2025-05-30 11:31:42 +02:00
pancake 5c6fe552b2 Fix build with non-monothread 2025-05-30 11:10:35 +02:00
pancake c05f417fcb Implement custom command widget 2025-05-30 00:15:50 +02:00
pancake 7a730bce9a Fix addr color for r2 >= 5.9.9 2025-05-29 23:36:45 +02:00
pancake 6453c3ef9f Add relto in the asm preferences 2025-05-27 17:10:24 +02:00
pancake b5a895cc3b Add context menu to change asm.addr.relto in the disasm widget 2025-05-27 16:59:33 +02:00
pancake 785023b9b3 Disable the "Start" button from the NewFileDialog if target not selected 2025-05-27 16:38:31 +02:00
pancake 2c081c18ca Show error if the shellcode byte string is not valid 2025-05-27 16:38:10 +02:00
pancake a090bed5b9 Support defining base address when loading shellcodes 2025-05-27 00:40:33 +02:00
pancake cc24f31bca Improve art side panel of the hexdump 2025-05-26 13:03:54 +02:00
pancake 185eba3290 Always show the statusbar 2025-05-26 13:02:52 +02:00
pancake 59369651b3 Wrap texts and larger bytes in hexdump art 2025-05-12 22:10:54 +02:00
pancake d0e917dc0e Select art command in the hex side panel 2025-05-12 21:38:48 +02:00
pancake f1b1278092 Improve layout in hexdump values 2025-05-12 21:13:34 +02:00
pancake 3b1ceb1c4d Add double/float32 and signed ints in hexdump widget side panel 2025-05-12 21:01:16 +02:00
pancake 6c7c6218c6 Add statusbar with current cursor offset for now 2025-05-12 20:16:14 +02:00
pancake 88f08af1c9 Better wording for the open dialog 2025-05-06 17:28:29 +02:00
pancake 854bd468b7 Include binary constructors and symbol entrypoints in the entrypoints widget 2025-05-06 17:27:47 +02:00
pancake 61ec84ac18 Fix build with latest r2 2025-04-30 20:21:05 +02:00
pancake 0c7f4db3d0 Install qt too required for configure 2025-04-30 18:02:39 +02:00
pancake 0a154acaa6 dpkg 2025-04-30 17:43:33 +02:00
pancake 3670a4b5b2 Fix build with latest r2 2025-04-30 17:40:01 +02:00
pancake dba7165058 Seamlessly run indent on docker if necessary 2025-04-30 12:33:44 +02:00
pancake b1c2770175 Rely on clang-format-18 from Ubuntu24 2025-04-30 12:20:45 +02:00
pancake 26759c1b41 Run "make indent" 2025-04-30 11:17:49 +02:00
pancake 94a57b0bfb Add missing clang-format 2025-04-30 11:17:41 +02:00
pancake 9ec7a26112 More 5.9.8 build fixes 2025-04-29 20:38:37 +02:00
pancake 6b52baf740 Launch the package manager from more places 2025-04-29 13:14:39 +02:00
pancake 5aa9c50aed Add the package manager frontend 2025-04-29 12:45:44 +02:00
pancake c1d833704a Fix build? 2025-04-29 00:08:00 +02:00
pancake 9efbc4670c Fix #221 - Copy hexwidget bytes as C string 2025-04-27 13:36:27 +02:00
pancake 5d73465949 Implement 'copy bytes' option in the disassembly context menu 2025-04-27 13:09:36 +02:00
pancake 1dc396a97d Fix m' in the decompiler, but not working well with pdc sometimes 2025-04-27 12:41:56 +02:00
pancake 9ba4fafe85 Do not require the mouse for m' navigation 2025-04-27 12:10:56 +02:00
pancake fe5b45000c Handle the m' keys in the decompiler widget too 2025-04-27 12:05:26 +02:00
pancake 2b1aed2038 Pre-599 buildfix 2025-04-27 11:55:26 +02:00
pancake cf2abdb318 Add missing files (oops) 2025-04-27 11:41:59 +02:00
pancake 5e10777cf3 Implement m' vi-key bookmark navigation for hex/dis/graph 2025-04-27 00:58:27 +02:00
pancake eddd40ba3c Paint the flag color in the hexdump 2025-04-25 00:30:07 +02:00
pancake a410416b35 Add edit flag dialog in the hexdump and handle color and comment in tooltips 2025-04-24 21:47:56 +02:00
pancake f5849b4113 Don't do thready r2 to avoid segfaults on some systems 2025-04-23 20:11:02 +02:00
Pau RE 4b81e9dcd7 Add r2ai-decai to mac dist bundle 2025-04-23 13:14:29 +02:00
Pau RE 2780f3cfd3 Simplify macos build pipeline 2025-04-23 13:14:29 +02:00
Pau RE ff6034a8bf Bundle r2 on macOS 2025-04-23 13:14:29 +02:00
pancake 2770981072 Add Up/Down buttons for the maps widget 2025-04-22 18:27:04 +02:00
pancake 347b101a64 Check indent on macos and ignore failures 2025-04-22 17:49:08 +02:00
pancake 8f385ab4e5 Implement Binaries Widget for the binfiles 2025-04-22 17:39:06 +02:00
pancake 82490ef6e4 Make Files and Maps widgets dockable and toggleable 2025-04-22 17:19:37 +02:00
pancake 154ca0a4f7 half-fix 2025-04-22 16:47:33 +02:00
pancake 76aea8e7e1 Reload Files widget when core refreshes, hide index column from all tables 2025-04-22 16:36:09 +02:00
pancake aa9053dd26 Add new dialog to manage files 2025-04-22 16:17:32 +02:00
pancake 0fd0bf0747 Initial implementation of the MapsWidget 2025-04-22 15:39:09 +02:00
pancake 6f5d62e7dd Initial 'r2ai' plugin widget 2025-04-22 01:32:14 +02:00
pancake ad9f17e7ca Add format tab in the hexdump sidepanel 2025-04-21 21:37:22 +02:00
pancake 74a48500bc Better hover color for the light theme in lists 2025-04-21 19:46:14 +02:00
pancake 01b5e89d86 Handle HJKL to select ranges of bytes 2025-04-21 18:59:56 +02:00
pancake 1c5b19e674 Handle HJKL movement keys in the hexdump widget 2025-04-21 18:56:12 +02:00
pancake 5ba09b8586 Disable anal.breakoninvalid during initial analysis 2025-04-21 18:54:24 +02:00
pancake 434ec4f3ea Minor random fixes in light theme and the functions widget 2025-04-21 18:48:16 +02:00
pancake ad77a4600f Fix missing libraries in the dashboard wtf 2025-04-21 18:40:06 +02:00
pancake 41f436aa6a Add 'aac' and improve loading analysis dialog 2025-04-21 17:45:55 +02:00
pancake fa58912e33 Oops fix the build 2025-04-18 18:17:38 +02:00
pancake 97dca359cc Check for writing permissions in the value change 2025-04-18 13:07:10 +02:00
pancake 97bdad44dc Update to ubuntu24 for the clang-format 2025-04-17 23:30:31 +02:00
pancake 1eafdabb17 Cleaner light mode 2025-04-17 22:33:49 +02:00
pancake 8a22594745 Use monospaced fonts in the listings for name and address at least 2025-04-17 22:16:59 +02:00
pancake ab6b51cde3 Support 32/64 bit width addresses in the hexdump 2025-04-17 21:45:47 +02:00
pancake 76952aa408 Add write values in the edit context menu of the hexdump 2025-04-17 21:36:52 +02:00
pancake f09023c08c InsertBraces clang-format option is not available in ubuntu22 2025-04-17 21:22:35 +02:00
pancake 2f6460bfab Update CI for Ubuntu22 and Python 3.12 2025-04-17 21:18:37 +02:00
pancake 0589bd7f96 Fix arrow keys navigation refreshes in the hexdump art/values 2025-04-17 21:14:36 +02:00
pancake f357f400b0 Readjust hex art when resizing the frame 2025-04-17 21:09:11 +02:00
pancake ccbbad4765 Make hexdump value textfields editable for writing 2025-04-17 18:18:30 +02:00
pancake 8d72dbce55 Lint fixes 2025-04-17 13:28:16 +02:00
pancake 7e36b2b1b6 Run configure in the linter 2025-04-17 12:58:44 +02:00
pancake ad7b7fa57b Improve value viewer in hexdump 2025-04-17 12:58:05 +02:00
pancake ee91eb34d4 Enforce make indent in the CI 2025-04-17 12:24:27 +02:00
pancake 45098358a6 Add values and prc tabs in the hexdump 2025-04-17 12:19:29 +02:00
pancake 14d843c138 Fix build with latest Qt6 2025-04-17 12:19:26 +02:00
pancake 86af2a4cf2 Qt6 .ui updates 2025-04-17 12:19:24 +02:00
pancake 195e4a4392 Disable html in json calls just in case 2025-04-17 12:19:21 +02:00
pancake 9f64d3f28e make indent 2025-04-17 12:19:18 +02:00
pancake addeaa2309 Fix 599 config 2025-04-14 23:02:35 +02:00
pancake 422f4b07b4 asm.offset -> asm.addr for >=599 2025-04-14 22:07:23 +02:00
Júnior Carreiro c15a3e2a49 Fix r_flag abi change 2025-04-04 12:41:53 +02:00
pancake 3d7e682b9b Fix build for latest r2-5.9.9 2025-02-27 17:15:20 +01:00
pancake 008e0e34e6 Fix build for latest r2-599 2025-02-27 14:40:00 +01:00
pancake e8f4e135a4 Add codesign fixes in the readme 2025-02-13 13:12:18 +01:00
pancake 33df6dcec3 Improve the auto-AI-translation script 2025-01-22 11:29:06 +01:00
Pau RE 9ebab409ac Add README and Applications to macOS dmg 2025-01-21 22:46:16 +01:00
Pau RE 419b54e0c1 Remove macos old dist files 2025-01-21 22:46:16 +01:00
pancake d7d07c47bc Add script to translate all strings using r2ai's ai.sh 2025-01-21 21:22:51 +01:00
Pau RE 53b207ce68 Remove flatpak export no longer required on WSL 2025-01-21 20:10:14 +01:00
pancake bf5c780d34 Fix build with r2 from git 2025-01-21 18:40:40 +01:00
pancake 3c5c9654f3 Fix source link in the release notes 2025-01-21 17:53:26 +01:00
pancake fd1e3a7016 Add macOS instructions in the release notes 2025-01-21 16:55:01 +01:00
dependabot[bot] 31a1203122 Bump actions/checkout from 3 to 4 in /.github/workflows
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
2025-01-09 19:58:54 +01:00
Pau RE e58a28f168 Update dependabot.yml 2025-01-09 19:57:56 +01:00
Pau RE 604d2b542a Enable Dependabot 2025-01-09 19:56:29 +01:00
Alexander Stepchenko 8ba6574b0c Remove extra "0x" prefix when displaying registers
radare2 prefixes register values with 0x in the output of drrj
since version 5.9.0 (commit e424a1b611d3e16abbcaeef288e7658c07a513e0).
2025-01-09 07:30:19 +01:00
Pau RE bfba4e838d Rename m1 to arm64 for mac builds 2024-12-29 22:29:45 +01:00
Pau RE 79a2767fae Switch win ci builds to Qt 6.8 2024-12-29 19:29:27 +01:00
Pau RE 768fbe237b Support meson builds with QT6 2024-12-29 19:29:27 +01:00
Pau RE 6c8b195d00 Cleanup CI workflow 2024-12-29 19:29:27 +01:00
Integral 49b54e5b5d refactor: replace non-empty QString constructors with QStringLiteral() (#204) 2024-12-27 10:59:39 +01:00
pancake 0974d525ea parse is ded 2024-12-27 10:59:17 +01:00
pancake 465cf40df7 Release 5.9.9 2024-11-21 18:22:34 +01:00
pancake 7c7bf0f04b Fix null deref in codemeta_new 2024-11-21 12:51:49 +01:00
pancake 2eb886f750 ?O is now aoml, well that was long time ago 2024-11-21 12:48:42 +01:00
pancake b9422fe192 Release 5.9.8 - codename "gigglebytes" 2024-11-19 13:23:48 +01:00
pancake 00627e83c3 Adjust fortune dialog window size everytime the text changes 2024-10-30 10:47:43 +01:00
pancake b9bbbb1229 Center tabbar in the NewFileDialog, this is the default in macOS
* Now looks the same on Windows and Linux
2024-10-30 10:44:47 +01:00
crumpled-acronym ce22b5878c Fix #173 - qmake detection in configure
Fix finding qmake5 when requested and installed alongside qmake.
2024-10-29 09:17:21 +01:00
pancake 71a8db3fda Fix address in imports widget 2024-10-25 13:06:55 +02:00
Begasus af786dc874 Fix crash on launch on Haiku 2024-10-21 23:09:53 +02:00
pancake 441606e2f4 Show less useless text in the NewFileDialog 2024-10-19 23:21:19 +02:00
pancake 72c14ecd87 Add Help->Book menu entry 2024-10-19 23:01:13 +02:00
pancake 7d624ab6e4 Add dialog to display fortune messages 2024-10-19 22:57:59 +02:00
pancake a107bd7443 Load radare2 plugins from the iaito plugins directory too 2024-10-16 21:27:46 +02:00
pancake 34c3419d3c Remove confusing loaded plugins count in the console on startup 2024-10-15 17:21:23 +02:00
pancake 915d27345b Autoindent the whole codebase with qtcreator's clang-format 2024-10-14 17:55:52 +02:00
pancake 3dafd0ce78 Add 'indent' make target 2024-10-14 17:40:43 +02:00
pancake 1713b651f2 Fix opening projects 2024-10-13 23:13:21 +02:00
pancake 07f60a902f Release 5.9.6 2024-10-13 14:32:11 +02:00
Pau RE 6f2e5dfc44 Update README.md [no ci]
Add snap link
2024-10-13 11:41:01 +02:00
pancake 9a4d376681 Update README.md 2024-10-13 11:30:16 +02:00
Pau RE 41858793c8 Update screenshots [no ci] 2024-10-13 10:19:50 +02:00
pancake a816bf6b1a Use asm.var.summary=4 by default, like in r2 2024-10-12 22:29:40 +02:00
pancake b7143d87b4 Fix behaviour in openTextEditDialogFromFile 2024-10-12 22:13:34 +02:00
pancake 5e2e33db4c Add a WIP TypeScript CodeEditor widget 2024-10-12 21:26:56 +02:00
Pau RE 6c2a85aac8 Upgrade macos x64 builds 2024-10-12 20:52:16 +02:00
Pau RE ced621bfda Fix change icon on macOS 2024-10-12 20:32:59 +02:00
Pau RE 6cc996db47 Update screenshots 2024-10-12 20:32:59 +02:00
Pau RE 5feb20ec83 Update iaito app icon 2024-10-12 20:32:59 +02:00
Pau RE 7b69406cf0 Remove unused resources 2024-10-12 20:32:59 +02:00
pancake 5934226a69 Run aaw and aaef in the experimental analysis option 2024-10-12 19:13:28 +02:00
pancake 36df8cf2e2 Use quoted project-related commands to avoid surprises 2024-10-12 19:10:57 +02:00
Pau RE 7351cc453d Update screenshots 2024-10-12 16:55:31 +02:00
Pau RE 1832888bcf Fix wayland window icons 2024-10-12 16:55:31 +02:00
pancake c3de15d278 Update ano=base64: usage 2024-10-11 10:55:02 +02:00
pancake 296063e231 Enforce c++20, Add Ubuntu24, and return nullptr for TextEditDialog 2024-10-10 18:37:44 +02:00
pancake e1711582ec TextEdit widget returns optional string just in case cancel is pressed 2024-10-10 18:37:44 +02:00
pancake a140e1b386 Add editAnnotation action in the decompiler context menu 2024-10-10 18:37:44 +02:00
pancake 5d67bc28ea Add context menu to edit annotations in disasm 2024-10-10 18:37:44 +02:00
pancake 629eeb4176 Refactor TextEditDialog into a separate file 2024-10-07 19:31:16 +02:00
pancake 29563f3f03 Add an option to edit the rarun profile 2024-10-05 13:49:09 +02:00
pancake a5e98926af Fix anotes in the decompiler widget 2024-09-08 21:00:36 +02:00
pancake a47c67d797 Fix warning, hidpi icons option is deprecated 2024-09-08 20:51:58 +02:00
pancake 3d67eac402 Add ano support as an alternative decompiler
* TODO: add button to edit those notes
2024-09-08 20:22:10 +02:00
MiKi a5eea419d8 185/remove about button and convert the svg logo to a clickable widget 2024-09-06 20:26:31 +02:00
pancake 1b62051543 Mode setMode from File to Edit menu 2024-09-06 19:59:28 +02:00
pancake 774ba4dd86 Use TabsOnTop by default 2024-09-06 19:53:01 +02:00
MiKi aa1f0eb5c1 disable and hide file related icons when we are not going to open a file, while maintaining the dialog geometry 2024-09-04 15:48:49 +02:00
pancake 93d5f8eda6 Simplify the ugly html from the welcome screen 2024-09-02 17:05:01 +02:00
pancake b6ac112d10 Fix links from the welcome dialog 2024-09-02 16:56:48 +02:00
pancake da2f6e79d3 Add make reset to remove config file from home 2024-09-02 16:56:39 +02:00
pancake db9c0effba Blind fix for #183 2024-09-02 16:41:30 +02:00
Pau RE 764cf05571 Update fonts to Agave v37 and Inconsolata v3 2024-09-02 16:07:46 +02:00
pancake bed468679f Initial support for the Decai decompiler 2024-08-21 12:42:27 +02:00
pancake 6b6994cf1e Remove FreeNode IRC reference from the README 2024-08-21 09:18:05 +02:00
Miquel S. 8d940ce7e1 Fix #174 - Skip opening a file, clean version with only changes inside NewFileDialog::loadFile, without calling openNewFile, displayInitialOptionsDialog and setupAndStartAnalysis. Skipping directly to finalizeOpen (#177) 2024-08-21 05:35:02 +02:00
pancake b5d8182780 Fix #175 - Fix empty core plugin listing 2024-08-19 22:23:34 +02:00
pancake 64f2bfa15b Add 'make gdb' target for debugging purposes 2024-08-19 22:10:15 +02:00
pancake 5d6a014157 Fix camelcase glitch 2024-08-19 13:13:10 +02:00
pancake dc51d5fe16 Release 5.9.4 2024-08-08 16:54:58 +02:00
pancake b091a0902e Use portable QString instead of using asprintf 2024-07-08 20:10:03 +02:00
pancake e30f47f5de Break on invalid is not enabled by default (same as in r2) 2024-06-28 16:33:34 +02:00
pancake 469f520b30 Fix windows build 2024-05-31 17:30:12 +02:00
pancake 5ed77ef1bb EBCDIC -> PASCAL typo 2024-05-31 15:15:24 +02:00
pancake 37288d81a7 Add support for pascal and utf16 strings in the edit string dialog 2024-05-31 15:06:32 +02:00
pancake e6d52eed44 Add context menu to set the program counter from the disassembly view 2024-05-31 11:00:57 +02:00
pancake 9b23f42a0a Add cyan and magenta bb colors in the context menu 2024-05-31 10:44:49 +02:00
pancake 78bae22fb2 Fix the windows build using c++20 2024-05-24 17:12:13 +02:00
pancake 667aaff62d Add pipeline step to publish the m1 dmg 2024-05-24 02:34:54 +02:00
pancake 8a51ef8524 Release 5.9.2 2024-05-24 02:18:53 +02:00
pancake 56bd22f4e3 Update to the upload-artifact v4 2024-05-24 01:27:47 +02:00
pancake 2abcacb722 Add Discord link in the README 2024-05-24 01:23:44 +02:00
pancake a727f93d0e Add macos-arm64 builds 2024-05-24 01:21:27 +02:00
pancake 272f0da513 Update the CI actions 2024-05-24 01:00:53 +02:00
pancake 64fecfbebb Implement uiaito core plugin for scripting via r2js 2024-05-24 00:54:38 +02:00
pancake 869998b58a Honor Ps/Po error code when saving/loading projects and show proper error message 2024-04-09 17:05:02 +02:00
pancake f0cef8e4f5 Zoom font size with control+wheel in the disassembly widget 2024-04-05 11:53:18 +02:00
Pau RE 2b47060190 Fix appdata metadata 2024-04-02 01:18:35 +02:00
pancake eaba7bbdad Release 5.9.0 2024-03-31 19:10:09 +02:00
Pau RE beae7d7551 Improve quality of app data for Flathub 2024-02-09 20:07:58 +01:00
jjdredd d7970177f3 Fix file dialog type, which sometimes breaks build [#152] 2024-02-04 05:56:19 +01:00
pancake cd7a2d08ca Remove unused or broken scripts 2024-02-01 20:49:04 +09:00
pancake c3409ab251 Link against r_arch when using qmake 2024-01-11 08:56:40 +01:00
Francesco Tamagni 18ac71a371 Support RBinName adding shims header for backwards compatibility 2024-01-11 08:55:18 +01:00
atom_bomb 8ccd7d9dd5 Issue #148: Make RelocsWidget constructor look the same as ExportsWidget, dodging a segfault at startup 2023-12-18 23:21:28 +01:00
pancake c15b35c74f envvar no longer needed on flatpak windows 2023-11-18 12:27:30 +01:00
pancake 272a9da194 Dont check for isValid on TableModels 2023-11-06 12:13:01 +01:00
pancake 2cd5d0109c Drop the double Ok button in the plugins preferences panel 2023-10-27 20:03:30 +02:00
pancake 8b48ce96e1 Generalize the fileopen dialog for qt6+mac via QFILEDIALOG_FLAGS 2023-10-27 19:57:34 +02:00
pancake 108c605897 Fix null deref in settings panel 2023-10-27 19:40:40 +02:00
pancake 70be993cfd Dont use the native file selector in macOS 2023-10-26 15:44:02 +02:00
pancake 09d7d62632 Blindfix for the Select crash in qt6 2023-10-26 15:39:17 +02:00
pancake 534dfde000 Just a version bump 2023-10-25 09:30:29 +02:00
pancake 75e4afe5ce Minor hint for qt6 compilation in the readme 2023-10-23 13:24:48 +02:00
pancake c0eeba3cfc Fix trash chars listed in the register ref in the debugger 2023-10-23 13:24:45 +02:00
pancake 0976bf2aa8 Rimraf twitter reference 2023-10-16 14:01:18 +02:00
pancake b658b2bbc2 Fix null deref in destruction 2023-10-09 16:27:47 +02:00
GravisZro d934619abe Fixes dependencies for Debian packages generation
* The DEPENDS variable was being nullified in the Makefile.
* The proper syntax for executing a shell script from a makefile is now being used.
2023-09-20 12:53:36 +02:00
GravisZro d68207b59e Adds a small script to build a list of dependencies and dependenct packages in CONFIG 2023-09-17 21:53:35 +02:00
FetheredSerpent 672acd902b Rename Windows release artifacts
Windows release artifacts shouldn't contain 'macos' in their name
2023-09-16 00:02:53 +02:00
FetheredSerpent 9735074c7c Fix macOS artifacts not found 2023-09-16 00:02:53 +02:00
FetheredSerpent 3b89622ba8 Fix iaito deployment for Windows ##build
* Remove legacy code from ci.yml
* These parts have already moved to ci.yml
* Create the missing directories
* Changed order of moving directories
* Update configure.bat
* Update make.bat
* Try icon support for Windows
2023-09-12 15:49:45 +02:00
pancake 77be9b82c1 Add method to unredirect console output and fix plugin mode 2023-09-02 22:09:41 +02:00
pancake 620ac0081f Dont do html when using the '>' output redirection in the console widget 2023-09-01 13:57:29 +02:00
pancake 1a0a486c71 Handle 'cls'/'clear' commands in the console widget 2023-09-01 13:37:40 +02:00
pancake 3feb7b2a93 Initial support for running iaito frominside r2 2023-08-28 13:21:01 +02:00
Dennis Goodlett d4ca777cbd Fix RBinFile->o renamed to RBinObject->bo (#137)
* Fix RBinFile->o renamed to RBinObject->bo

* Add macro for reverse compatability

* Remove extra newline
2023-08-17 09:09:45 +02:00
pancake 9101519e26 Rename Help->Documentation to Help->Website 2023-08-07 15:56:21 +02:00
pancake 1896d7ffec Fix possible null deref in core.anal.arch 2023-08-07 15:56:08 +02:00
pancake 5871f6ea1c Don't -dead_strip for portability 2023-07-12 13:26:44 +02:00
pancake d7fe9272b8 Fix build with latest r2 from git 2023-07-10 18:45:51 +02:00
pancake 40ee584fcf Add support for colorizing basic blocks in the graph
* Uses the new abc command from r2-5.8.9
2023-07-04 00:46:49 +02:00
pancake 93a24b3ad0 Add safety column in the relocs widget 2023-07-03 01:08:14 +02:00
pancake 661d273ab7 Fix relocs widget 2023-07-03 00:58:20 +02:00
pancake 3aee0c3548 Add global unsafe coloring in the imports widget 2023-07-03 00:50:42 +02:00
pancake dd60c551cd Dont check for lrelease in the configure step 2023-06-30 02:29:01 +02:00
pancake 1c984ae94b Release iaito-5.8.8 2023-06-20 11:00:26 +02:00
pancake ddac25ee39 Add --with-qmake6 configure flag when qt5+qt6 are available 2023-06-19 19:25:44 +02:00
pancake 2fe18dead5 Note how wip are the ci builds 2023-06-19 18:11:45 +02:00
pancake b16408049b Clarify the startup script dialog with one more text 2023-06-19 18:09:05 +02:00
pancake 110fa13b1d Missing symbol 2023-06-19 17:56:58 +02:00
pancake d911376774 Add 3 more analysis boundaries 2023-06-19 17:54:42 +02:00
pancake 3a246798b8 Fix warning: 'AddressableItemModelI' has virtual functions but non-virtual destructor [-Wnon-virtual-dtor] 2023-06-19 17:34:25 +02:00
pancake 0de3f90b6c Fix meson build 2023-06-19 17:28:14 +02:00
pancake 4c7e23e0a6 Fix startup crash because of an incorrect static cast 2023-06-19 17:21:33 +02:00
pancake 9b6bce7e58 Add make asan build target 2023-06-19 17:16:19 +02:00
pancake 9e3f9f6345 Honor CFLAGS/LDFLAGS/CXXFLAGS from qmake 2023-06-19 17:14:48 +02:00
pancake a1356fbdd9 Handle the 5A command in more places 2023-06-19 03:09:13 +02:00
pancake d33a8dc7a2 Add secondary load script and show it in preferences 2023-06-19 03:08:38 +02:00
pancake e1b5e909c4 Add 'export disassembly' option in File->Export menu 2023-06-19 02:24:35 +02:00
pancake cbf7bc6a3d Show the r2 plugins (instead of iaito ones) in the Plugins panel
* iaito plugins still exist but its in deprecation process
2023-06-19 02:03:12 +02:00
pancake 1ae192e48e Flat structure in the left column of Settings 2023-06-19 01:06:12 +02:00
pancake 0dc095ff71 Dont show the 'beta' warning when entering the debug mode
* We know its buggy, but considering it beta doesnt help
2023-06-19 01:04:37 +02:00
pancake e5277f39a1 Fix crash in Settings panel 2023-06-19 00:39:03 +02:00
pancake e5444aa9e6 Honor configure's --prefix in qmake 2023-06-17 19:55:54 +02:00
pancake bbaa1abfe5 Show error dialog instead of closing when not opening a file 2023-06-17 12:18:23 +02:00
pancake a101ba7167 Be more flexible when resolving the r2 color themes path 2023-06-15 18:34:50 +02:00
pancake 33b32edb4a Fix build for the wip-abi r2-5.8.9 2023-06-12 16:13:58 +02:00
pancake ecc7d05a05 || != | 2023-06-12 16:10:45 +02:00
pancake 3efbbc85ab Improve release notes output 2023-05-24 11:23:29 +02:00
pancake 7a3e617585 Publish macOS dmg and use release mode when building for Windows 2023-05-23 17:38:41 +02:00
pancake 6767934906 Release 5.8.6 2023-05-22 12:23:57 +02:00
semgrep.dev on behalf of @trufae 85f757efb9 Add Semgrep CI 2023-03-29 10:24:51 +00:00
pancake 132ef13af6 Dont let the user open without selecting a file or uri path
* otherwise it silently fails later
2023-03-16 16:49:36 +01:00
pancake 4329e20359 Arch is required 2023-03-16 12:34:31 +01:00
pancake 6babbbdfe9 RHash made its way into RCrypto on the r2-5.8.x series 2023-03-16 11:49:55 +01:00
pancake f7318c3033 Fix #119 - Dont allow to save projects when debugging 2023-03-16 11:47:17 +01:00
pancake 80ff0a6f7b Fix meson build for r2-5.8.x 2023-03-16 10:59:13 +01:00
pancake dfb48fcf0c Use r2-5.8.4 on windows builds 2023-03-16 10:37:45 +01:00
pancake 3cd046fdd0 More qt6 deprecation fixes 2023-03-16 10:35:56 +01:00
pancake df65aa9aa6 Fix some more qt6 deprecation warnings 2023-03-16 10:29:05 +01:00
pancake 5f9a0840cc Automate release process in the CI (#130)
* Improvements for the windows ci build
2023-03-16 10:24:12 +01:00
pancake 805db97abd Release 5.8.4 2023-03-15 22:53:48 +01:00
pancake 53afe35b12 Address some more qt6 remaining fixes 2023-03-15 22:31:24 +01:00
pancake 01535f4add Massage the ColorPicker for Qt6 2023-03-15 22:11:11 +01:00
pancake ecf6b96e0f Remove unused includes 2023-03-15 22:11:03 +01:00
pancake 77b005988b Remove the job for Ubuntu 18 2023-03-15 19:35:15 +01:00
pancake db2de36a4d Support 5a analysis like in latest r2 and add checkbox for anal.vars 2023-03-15 19:35:15 +01:00
pancake c713c88749 Remove all the uses of eprintf 2023-03-03 01:09:02 +01:00
pancake 7a32c6789b Make iaito usable on qt6 2023-03-03 01:07:57 +01:00
pancake 78522cca81 Initial WIP transition to support qt5 + qt6 2023-02-15 19:19:21 +01:00
gingermouse a50927e039 Fixing an empty Import table (#126) 2023-02-08 16:21:52 +01:00
pancake e821ddc1c8 Add changelog details for the flatpak release 2023-02-01 23:33:24 +01:00
pancake 7116de1a7e Release 5.8.2 2023-02-01 17:51:30 +01:00
gingermouse 463dbccce4 Alphabetically sort io and arch comboboxes #121 2023-02-01 17:48:56 +01:00
pancake 0b8635565d Load header format structs after bin parsing 2023-01-31 17:18:50 +01:00
pancake 5b9b68bc92 Default theme is iaito 2023-01-31 16:59:39 +01:00
pancake cbf1992d78 Release 5.8.0 2022-12-23 13:00:07 +01:00
pancake f799eaf0cd Update appdata file 2022-12-23 12:48:48 +01:00
pancake 3c605a4480 pip install meson 2022-12-21 12:32:33 +01:00
pancake 6c66b28c1f Remove that super-slow job, github seems buggy 2022-12-20 13:09:35 +01:00
pancake 876858458a improve ci 2022-12-20 01:17:03 +01:00
pancake d090071923 Fix include paths for latest r2 2022-12-18 23:10:09 +01:00
pancake 2c3b4588ef Fix assert when loading without no file 2022-12-16 19:06:18 +01:00
pancake 7fb52ccd4c RAsmPlugin is no longer a thing \o/ 2022-12-09 12:02:14 +01:00
pancake b9c02025f5 Add bug report template 2022-11-14 21:41:48 +01:00
pancake e354190c31 New make dist for macos using macdeployqt. missing cocoa plugin 2022-11-14 21:35:21 +01:00
pancake 6feb079005 Fix build with r2-5.8.x 2022-11-06 18:43:53 +01:00
pancake cccaa3772a Add more modes and locations in the search widget comboboxes 2022-10-28 14:00:14 +02:00
Michal Ambroz 9ec1261ab9 some more 5.7.8 versioning 2022-10-28 01:43:27 +02:00
Michal Ambroz e529aebeb7 I forgot to change pro config to 5.7.8 2022-10-28 01:43:27 +02:00
pancake a98efe0cfb Use XDG paths for translations too 2022-10-27 16:29:25 +02:00
pancake 269cbac239 Fix eval var names 2022-10-19 20:55:52 +02:00
pancake f74826f047 Disable the decompiler tokenizer because it's really awfully implemented 2022-10-18 17:07:40 +02:00
pancake a33a73009f Fix type for an initial config var 2022-10-18 17:07:22 +02:00
pancake e3cf502fe4 Bring back the codemeta parsing 2022-10-18 12:56:10 +02:00
pancake 0764c4304a Fix race conditions in all decompilers when built with MONOTHREAD
* Disable the super-inefficient codemeta parser
2022-10-18 12:53:31 +02:00
pancake 697543fcf9 Get imports using the API and copy some logic from symbols into imports aiming to fix something 2022-10-18 10:36:26 +02:00
pancake 16fe40f7ae Remove two unused shellscripts 2022-10-17 09:06:21 +02:00
pancake c909eeecf6 Restore seek in cmdHtml() 2022-10-15 12:32:53 +02:00
pancake 148d77cf20 Move About to the bottom in the Help menu 2022-10-15 00:05:40 +02:00
pancake 5472217f77 Add 'aa' to the list of supported analysis options 2022-10-14 20:24:24 +02:00
pancake 6e6d40ed7e Always open the console dock by default 2022-10-14 20:04:55 +02:00
pancake 32203ce9a0 Fix all race conditions by making iaito monothread by default 2022-10-14 19:35:09 +02:00
pancake 69bce2f516 Fix qt5 deprecation warning 2022-10-14 17:42:39 +02:00
pancake 46a89eab47 Fix #107 - bug reporting and about dialog links not working 2022-10-14 17:16:05 +02:00
pancake f8652d9f62 Upgrade the github runners 2022-10-14 16:42:25 +02:00
Pau Rodriguez-Estivill 960fdaa9c7 Implement user-install 2022-10-12 15:44:04 +02:00
Pau Rodriguez-Estivill 2e503d5a17 Disable translations submodule 2022-10-12 15:44:04 +02:00
pancake dfb16cf2ee Install the manpage 2022-10-12 14:54:35 +02:00
pancake 7fbd28f918 Fix reference links for telegram and project 2022-10-12 12:17:57 +02:00
Pau RE b773f2b0c3 Update translation install method (#104)
* Update translation install
* Update translations submodule
* Remove unnedded translation build
2022-10-07 05:38:53 +02:00
Michal Ambroz 32cbe65a6a remove duplicate StartupNotify=true
Having duplicate StartupNotify is making the desktop file invalid on some platforms and is not passing the sanity check for the Fedora package build
https://kojipkgs.fedoraproject.org//work/tasks/9327/92669327/build.log

+ appstream-util validate-relax --nonet /builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64/usr/share/metainfo/org.radare.iaito.appdata.xml
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64/usr/share/metainfo/org.radare.iaito.appdata.xml: OK
+ desktop-file-validate /builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: hint: value item "Viewer" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: Graphics, or Office
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: hint: value item "ComputerScience" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: Education, or Science
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: hint: value item "DataVisualization" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: Education, or Science
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: hint: value item "Emulator" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: System, or Game
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: hint: value item "FileTools" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: Utility, or System
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: hint: value item "Security" in key "Categories" in group "Desktop Entry" can be extended with another category among the following categories: Settings, or System
/builddir/build/BUILDROOT/iaito-5.7.6-1.fc38.x86_64//usr/share/applications/org.radare.iaito.desktop: error: file contains multiple keys named "StartupNotify" in group "Desktop Entry"
error: Bad exit status from /var/tmp/rpm-tmp.iTnWFV (%check)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.iTnWFV (%check)
Child return code was: 1
EXCEPTION: [Error()]
2022-10-05 19:21:22 +02:00
Pau RE 88227b6623 Add flathub information in README 2022-10-05 18:35:07 +02:00
pancake 3721ec82fb Add install for meson 2022-10-05 00:40:16 +02:00
pancake 5b7ae60d45 Add r2's RAnal plugin listing tab 2022-10-03 11:10:17 +02:00
pancake 3890f557f2 Fix Qt deprecation warning 2022-10-03 11:10:05 +02:00
Pau Rodriguez-Estivill 2d78b57122 Rename and move unix icon 2022-09-30 17:01:00 +02:00
Pau Rodriguez-Estivill 23d04633cd Fix appdata 2022-09-30 16:30:42 +02:00
pancake 3cef6ddb48 Aim to fix the macos ci problems 2022-09-30 13:58:22 +02:00
pancake 2aa1788c47 make clean is the new mrproper 2022-09-30 13:49:54 +02:00
pancake 1f2f8d2d9d Remove python and crashreport messages from qmake 2022-09-30 13:36:27 +02:00
pancake 1c1c21ca56 Use win_subsystem: 'windows' instead of gui_app: true in meson
* gui_app is deprecated in meson 0.56
2022-09-30 13:31:53 +02:00
pancake 8677adc55f Remove the python references in about, configure and meson builds 2022-09-30 13:31:35 +02:00
pancake 9790012e0b Dont use r_xdg_datadir on old r2 2022-09-30 13:26:55 +02:00
Pau Rodriguez-Estivill 9159b74a24 Add support for the new r2 xdg module 2022-09-30 13:25:03 +02:00
Pau Rodriguez-Estivill f000631de3 Add flatpak translations path 2022-09-30 13:25:03 +02:00
pancake 881942a2da Release iaito-5.7.6 2022-09-29 17:26:59 +02:00
pancake d2382f2277 Fix crash in Relocswidget happening on linux 2022-09-27 18:54:42 +02:00
pancake 65a1947cca Clarify fallthrough cases 2022-09-27 18:52:49 +02:00
pancake 765fce3cba Aim to fix the macos CI by pointing at the x64 macOS r2 pkg 2022-09-27 18:23:47 +02:00
pancake 449c68fb53 Release 5.7.4 2022-09-25 23:28:20 +02:00
pancake c8fb13aca7 Fix segfault in imports widget 🤦 2022-09-25 23:17:17 +02:00
Arhzi 1f9b0c2d69 fix: src/core/Iaito.cpp SIGABRT in IaitoCore::initialize -> RCoreLocked::~RCoreLocked 2022-08-08 11:04:23 +02:00
pancake 1dd91e9816 Release 5.7.2 2022-07-31 21:35:19 +02:00
pancake ca5f2c49b1 Delete and rebrand more leftovers and unused scripts 2022-07-23 08:12:15 -04:00
pancake 0f6275c7d6 Add missing uninstall target 2022-07-12 16:55:29 +02:00
pancake 721886dffd Enable imports/relocs on linux as it seems to be mac specific bug 2022-07-05 18:55:51 +02:00
pancake d2f66434bd Swap config 2022-07-05 18:37:26 +02:00
pancake a20b38040f Swap default option for the decompiler colors 2022-07-05 18:26:21 +02:00
pancake 1ea689eeab Fix duplicated commandline flag warning message 2022-07-05 17:59:01 +02:00
Eduardo Novella aca7a39874 Add qt5-default as dependency on Ubuntu/Debian boxes 2022-07-05 17:38:26 +02:00
pancake 86ffdf1573 r2 version check done right 2022-07-05 17:38:05 +02:00
pancake 664010f73c Fix the Project saving with Cmd0 instead of cmdstr 2022-07-05 13:28:26 +02:00
pancake 6cc6b0ed89 Remove the fetchdeps leftovers 2022-07-05 13:28:11 +02:00
pancake 4798d300c8 Use Ps instead of P+ for saving the project 2022-06-18 13:07:03 +02:00
jjdredd 21945707ac Change prj.git to prj.vc due to the following commit in radare2:
4682d70dc0bf59cc017446446eab48d33e03310e
2022-06-17 08:01:31 +02:00
pancake 4f368aede9 Rename the default color theme to 'iaito' instead of 'cutter' 2022-06-16 17:22:31 +02:00
pancake 98927ba160 Update README 2022-06-16 12:53:29 +02:00
pancake 61251d240f Remove all the cmake references 2022-06-16 12:51:33 +02:00
jjdredd c9caa6dd31 improve build for custom radare2 install prefix 2022-06-16 02:35:29 +02:00
pancake 1c70bb035a Publish windows builds 2022-06-08 13:42:53 +02:00
pancake da28e011a6 Update ci.yml 2022-06-08 08:33:39 +02:00
pancake 683f1547b2 Fix windows CI builds and simplify build matrix
* prefer meson over cmake
2022-06-08 06:06:37 +02:00
pancake d8c4119081 Use meson/ninja for the ubuntu matrix 2022-06-07 22:48:26 +02:00
pancake d44e7202c5 CI fixes and remove the unused meson.py 2022-06-07 22:42:38 +02:00
pancake 6715ad5a71 Fix meson build 2022-06-07 20:22:44 +02:00
pancake 7e7351b673 Release 5.7.0 2022-05-31 16:23:19 +02:00
Aleksey Kislitsa f5fdf6dd55 Some corrections for building in docker and host machine (#80)
* Change docker/Dockerfile, docker/Makefile and docker/build_radare2.sh because docker/Dockerfile-dev and radare2 were deleted
* Change docker/Dockerfile, docker/Makefile and docker/build_radare2.sh, additional changes
* Corrected docker/build_radare2.sh
* In READNME.md add neded packages for building on Debian/Ubuntu
* Was moved docker/build_radare2.sh into root folder,
change incorrect name of pkg-config in README.md,
was deleted docker/build_iaito.sh,
was inlined RUN lines in Docker file
* Added needed for cmake building package It was estranged qttools5-dev into list in README.md
* Building Docker image without additional script
2022-05-20 21:28:31 +02:00
Aleksey Kislitsa e694e635f7 Change docker/Dockerfile, docker/Makefile and docker/build_radare2.sh because docker/Dockerfile-dev and radare2 were deleted (#79) 2022-05-20 09:05:03 +02:00
pancake 9c6d155b17 Another cmake fix 2022-05-17 12:06:48 +02:00
pancake ba2b1be0ed Disable crash report handlers 2022-05-17 11:52:31 +02:00
pancake 9178631f2c Fix macOS deps installation for the CI 2022-05-17 11:52:28 +02:00
pancake 982afc74ab CMake fixes 2022-05-17 11:33:56 +02:00
pancake 1b7ff712bc Rm submodule and s/cutter/iaito the dockerfiles 2022-05-17 11:21:54 +02:00
pancake 2cc47c2afc Use RCore.cmd_str() instead of reimplementing it 2022-05-17 10:11:38 +02:00
pancake 6fd1855f5a Use setConfig() instead of cmdRaw() where possible 2022-05-17 10:06:43 +02:00
pancake c8ff6f790e Update CI scripts and rename batch scripts for preconfigure.. 2022-05-17 08:57:42 +02:00
pancake 87afe62dbc Update README instructions 2022-05-17 08:56:38 +02:00
pancake 611681e337 Remove radare2 submodule 2022-05-17 08:56:22 +02:00
pancake c30acdbd6c Add broken screenshot link 2022-05-16 19:14:25 +02:00
pancake 23cc2ba418 Increase command history entries from 100 to 1000 2022-05-13 18:22:03 +02:00
pancake a7c0d97851 Few rebranding leftovers 2022-05-13 18:21:46 +02:00
pancake cfa8d42427 Add conditional build fixes for r2-5.6.9 2022-05-13 18:21:18 +02:00
pancake 992f2a798e Fix debug builds on macOS 2022-05-13 18:20:15 +02:00
pancake 92017195d5 Upgrade configure with the latest acr and sync version with the r2 one 2022-05-13 18:18:12 +02:00
pancake 2230fd150e Fix build for wip r2-5.6.9 2022-05-12 16:50:14 +02:00
Aleksey Kislitsa 041a1bdeef Modified docker files because Iaito is built as iaito (#77) 2022-05-03 15:16:17 +02:00
pancake b8a42d8811 Fix infinite loop in getBreakpoints 2022-04-16 10:47:11 +02:00
Kaki f449b2df1f Fix null deref in IaitoCore::getBreakpoints (#74)
* Fixed IaitoCore::getBreakpoints
This function was responible for a segfault when loading any Windows binary
2022-04-12 17:53:51 +02:00
Christophe Giboudeaux fd1b8a580f Fix KSyntaxHighlighting includes. (#72)
Mixing Camelcase and standard include wasn't the intended way.
This was fixed in syntax-highlighting 5.91.

Amends 24a2eba2
2022-03-25 09:56:36 +01:00
Michal Ambroz 24a2eba21c workaround missing include in kf5-syntax-highlighting-devel (#71)
In the kf5-syntax-highlighting-devel 5.91.0 the cmake files dropped advertising of the /usr/include/KF5 include directory.
As Iaito is referencing those with <KSyntaxHighlighting/repository.h> relative to /usr/include/KF5 we need to add this include directory in order to be able to compile successfully.
2022-03-03 21:34:41 +01:00
pancake afaa7df55d Mention the --disable-threads hint in the readme to build r2 for iaito 2022-03-03 11:00:03 +01:00
pancake 2e5cb221f5 Remove documentation as its outdated, unused and references cutter 2022-03-03 10:59:00 +01:00
pancake 87ffadd845 Use the latest r2-5.6.4 in the ci builds 2022-03-03 10:57:09 +01:00
pancake 89c9815d73 Minor initialization and filtering fixes 2022-03-03 10:45:43 +01:00
pancake ec03746e73 Fix disasm without operands bug 2022-03-03 10:45:05 +01:00
pancake 0b60cd3e6e Reference .iaitorc instead of .cutterrc 2022-03-03 10:10:15 +01:00
pancake 28a1099603 Fix null derefs when using r2 build without threads 2022-02-06 20:42:53 +01:00
pancake 4fee82575e Fix ut64 format issues 2022-02-06 19:28:00 +01:00
Liquaristo 745edde713 Fix type issues (#65) 2022-01-10 15:08:36 +01:00
pancake 7d09ac6a21 List anal plugs in the arch combo 2021-12-21 23:33:37 +01:00
pancake 622cc7b820 Update the radare2 submodule 2021-12-21 23:10:52 +01:00
pancake 30843136ac Show realSize instead of linearSize in FunctionsWidget 2021-12-21 23:08:26 +01:00
pancake 0528d7fa42 Fix #51 - rowCount bug in imports and relocs widgets 2021-12-16 19:52:53 +01:00
pancake 821ffa8a28 Use r2-5.5.0 builds from the release 2021-11-16 16:16:26 +01:00
pancake 26dc5d077f macOS packaging is now a zip 2021-11-16 15:51:34 +01:00
pancake d55b59fecf Update version to match with r2-5.5.0 2021-11-16 15:28:49 +01:00
pancake c368635b95 Fix build for r2 > 5.5.0 2021-11-16 14:47:42 +01:00
pancake 57ec892ce3 Set RPATH for cmake and qmake 2021-11-08 21:01:13 +01:00
pancake 3a98e2e39d Use rarun for make run 2021-10-06 10:56:25 +02:00
pancake 7fad10bda6 Remove unconfigured coverity scan 2021-08-30 11:27:48 +02:00
pancake 61d3f92c6a Dont skip build when packaging for macOS 2021-08-15 09:55:32 +02:00
pancake f18f73483e Trim spaces from o. 2021-08-14 21:22:50 +02:00
pancake c6497d725c Package the macOS app in a ZIP instead of the deprecated PKG format 2021-08-14 20:32:24 +02:00
pancake f98748ec56 Use o. instead of file.path (#56) 2021-08-14 19:08:38 +02:00
trusted-ws 7516f42fa0 package qt5-default is now obsolete (#52)
https://www.mail-archive.com/[email protected]/msg5902890.html
2021-08-14 18:52:44 +02:00
Marwan Nour 004e01e555 Added instructions for windows release (#55) 2021-08-11 16:39:15 +02:00
pancake 5baddee782 s/Radare/Iaito/ 2021-08-04 12:34:13 +02:00
pancake 054e60d1fc Fix macOS packaging scripts 2021-07-28 10:16:46 +02:00
pancake b1bafef891 Release 5.3.1 (bump version to sync with r2) 2021-07-21 09:17:56 +02:00
pancake 8d83be5bdb Bump version 2021-07-21 09:16:47 +02:00
pancake d8ef031835 brew renaned the qt5 pkg 2021-07-16 12:59:33 +02:00
pancake 247299ab97 Upgrade to 5.3.1 (#48) 2021-07-16 11:12:20 +02:00
pancake d546474470 Update radare2 submodule 2021-07-16 02:13:51 +02:00
pancake 54dc54d591 Update radare2 submodule 2021-05-28 03:25:06 +02:00
pancake bea089d93a Fix #46 - Improve the first paragraph of the REAMDE 2021-05-28 03:15:17 +02:00
pancake 4a8ee1df1a Use asm.cmt.col = 60 by default 2021-04-27 10:19:36 +02:00
pancake 3c0efeeb7e Update translations submodule 2021-04-27 10:14:47 +02:00
pancake 0bdcf1330b Release 5.2.2 - update release scripts to simplify maintainance 2021-04-27 10:13:41 +02:00
pancake 6e669c73df Fix installation and loading translations from system-wide path using make 2021-04-27 10:06:43 +02:00
pancake eacb49c19d Add agave font and don't use files with spaces in the name 2021-04-27 09:35:39 +02:00
pancake f91c721c29 Update metadatas 2021-04-27 09:35:19 +02:00
pancake 359e9e99c2 Fix #40 - setStackSize is only available on Qt >= 5.10 2021-04-27 09:19:34 +02:00
Levente Polyak 84849b76df Fix python bindings compilation after rebranding (#41) 2021-04-27 07:45:35 +02:00
pancake aec953b014 Update r2 submodule 2021-04-21 22:18:36 +02:00
pancake 495cd1a4e0 More CI updates for r2-5.2.1 2021-04-21 22:10:18 +02:00
pancake ce8bbfb897 Add autogen.sh script 2021-04-21 22:09:02 +02:00
pancake e2802599f9 Improve r2-w64 installation script for the CI 2021-04-21 22:04:31 +02:00
pancake 68ff0ad687 Prepare for the 5.2.1 release 2021-04-21 20:46:12 +02:00
pancake 9e42554405 Use the new dbg.wrap 2021-04-21 11:58:59 +02:00
pancake ea975ecdd8 pdc dblfree fix and 520 api compat 2021-04-21 08:28:23 +02:00
pancake e448b3d8b6 Update radare2 submodule 2021-04-21 00:31:12 +02:00
pancake ef913fcc12 Darker green in the navigation bar 2021-04-21 00:26:58 +02:00
pancake face9ca63c Fix for latest RCodeMeta api change in r2-5.2.1 2021-04-21 00:18:21 +02:00
pancake 0aa97752a4 Fix memory leaks by depending on r2-5.2.1 2021-04-19 13:49:26 +02:00
pancake 97bee62c32 Handle null deref after r_codemeta_in 2021-04-18 19:12:53 +02:00
pancake 91b2dcbe84 Minor code cleanup 2021-04-18 17:49:19 +02:00
pancake 4567054dde Add logo with solid background for the README 2021-04-18 13:44:09 +02:00
pancake 16c1f5d928 Enumerate debug IO plugins too 2021-04-18 01:47:59 +02:00
pancake 14afa872e2 Fix loading io plugin list from oLj new output 2021-04-18 01:47:08 +02:00
pancake 827e86b6a6 Fix cutter -> iaito commandline flag reference 2021-04-18 01:46:26 +02:00
defragger 02a130e1c9 Fix #30 - Fix segfault in ImportsModel::rowCount 2021-04-17 09:45:16 +02:00
xambroz 36c245f3cb Some files were renamed only in build scripts (#35)
* Rename Cutter.astylerc to Iaito.astylerc

* Rename CutterConfig.h.meson.in to IaitoConfig.h.meson.in

* Rename CutterSamplePlugin.cpp to IaitoSamplePlugin.cpp

* Rename CutterSamplePlugin.h to IaitoSamplePlugin.h

* Rename CutterSamplePlugin.pro to IaitoSamplePlugin.pro
2021-04-17 08:55:35 +02:00
xambroz 9ce1029970 Add manpage, install appdata.xml (#33) 2021-04-16 22:19:14 +02:00
PHPoenX f4572ebd3a Updated link to issues in debugger (#32) 2021-04-16 20:04:18 +02:00
pancake 5f5ea915c3 Add bluy theme and sort them alphabetically 2021-04-16 19:24:07 +02:00
xambroz c414d25949 Tweak desktop launcher (#31)
* Rename org.radare.r2cutter.appdata.xml to org.radare.iaito.appdata.xml

r2cutter -> iaito

* Rename org.radare.r2cutter.desktop to org.radare.iaito.desktop

r2cutter -> iaito

* version changed to 5.2.0

* The icon installed by meson is the iaito-o

* Update the desktop file with search keywords

Keywords are used for example by the Gnome activities. Now typing r2 in activities would allow finding the iaiato as relevant application.
I have also added the tool to relevant categories for the same reason.
2021-04-16 17:27:58 +02:00
pancake 90745685b8 Fix #27 - Fix inconsistent docklock state on startup 2021-04-16 00:34:52 +02:00
pancake 07407f2603 Update README for debian/ubuntu instructions 2021-04-16 00:34:36 +02:00
pancake e33170f1fe Bump version for 5.2.1 2021-04-15 23:50:46 +02:00
pancake d29ecb9832 Update r2 submodule... is this really used? :D 2021-04-15 17:53:36 +02:00
pancake 5c34c270e8 Simplify the NewFile Dialog a little bit and add dummy IO submenus 2021-04-15 03:12:23 +02:00
pancake 14166f17af Allow to set comment and color and fix flag dialog typos and use C api instead of cmds 2021-04-15 01:18:03 +02:00
pancake 836f06f624 Simplified github issue templates 2021-04-12 11:17:31 +02:00
pancake e296df6661 Release 5.2.0 2021-04-12 01:39:07 +02:00
pancake 81fa1a5f53 Update translations submodule 2021-04-12 01:20:56 +02:00
pancake 05fd2eb752 Add bin.cache in the Initial Options Dialog 2021-04-12 00:28:43 +02:00
pancake 320d63a9a7 Fix double Quit issue 2021-04-12 00:28:33 +02:00
pancake b8040a7c7f Workaround translation issue on macos 2021-04-11 23:41:34 +02:00
pancake e307129c51 Improve light theme tab widget background color 2021-04-11 23:35:43 +02:00
pancake 37611551a6 Force build the translations on install if not found 2021-04-11 23:23:37 +02:00
pancake a60fb8ef89 CI Build issues 2021-04-11 23:04:54 +02:00
pancake 6936121560 More Iaito rebranding and cmake fixes 2021-04-11 22:52:05 +02:00
pancake e1b3d54199 winfix 2021-04-11 22:12:37 +02:00
pancake 037ebe09d2 Use latest 5.2.0 release 2021-04-11 21:56:39 +02:00
pancake 3146a1ec93 Fix build 2021-04-08 15:31:56 +02:00
pancake d6655ee136 Drop the gradient in the midnight QDockWidgets 2021-04-08 04:25:20 +02:00
pancake 4387a28f28 Update the README 2021-04-08 02:29:53 +02:00
pancake 1000025fd1 Dont use the travis, github actions is enough 2021-04-08 02:26:13 +02:00
pancake 46db1266c0 Update README 2021-04-08 02:25:42 +02:00
pancake 217724f3a8 Fix crash and also load locales from qtdir 2021-04-08 02:16:57 +02:00
pancake 5b99f55bd4 Fix submodule path 2021-04-08 02:05:43 +02:00
pancake 6c45fc8897 Update translation submodule 2021-04-08 02:01:48 +02:00
pancake 5b198d7cfe Fix application icon 2021-04-08 01:59:02 +02:00
pancake 1d3bf7ddca Update r2 submodule 2021-04-08 01:53:14 +02:00
pancake 3e6fdd8a18 Add Esperanto, Galician, Basque and Tokipona 2021-04-08 01:48:10 +02:00
pancake 865487d444 Load languages from user's home too 2021-04-08 00:31:39 +02:00
pancake ce820ba391 Use iaito-translations instead of cutter-translations 2021-04-07 23:12:44 +02:00
pancake db8736c102 Enable emu.str by default 2021-04-07 22:57:41 +02:00
pancake 72b89ceecb Add r2git ci jobs 2021-04-07 11:39:04 +02:00
pancake 8ab448ea3e Rebranding from r2cutter back to iaito 2021-04-07 11:28:04 +02:00
pancake c557a4653f Fix brace comment 2021-04-04 18:05:58 +02:00
pancake 625dc13077 Add more r2 themes for light and dark modes 2021-04-04 01:42:49 +02:00
pancake 1eaa9223be Bump version to be in sync with r2 2021-04-04 01:14:51 +02:00
pancake f3cde628f1 Fix re-install in macOS 2021-04-04 01:13:26 +02:00
pancake ca8588191f Add r2retdec decompiler plugin, autodetected from r2 2021-04-04 01:08:42 +02:00
pancake 8400eb4cce Increase stack size on the thread running r2
* Fix crashes when analyzing big functions
2021-04-04 00:58:15 +02:00
xambroz e927ce77fe cutter -> re2cutter renaming (#23) 2021-04-03 02:51:15 +02:00
pancake a373bcbb2e Add support for the 'pdc decompiler' 2021-04-01 03:05:03 +02:00
pancake 061633e157 prj.simple doesnt exist anymore 2021-04-01 02:00:37 +02:00
Begasus 5310b73d01 Fix build for Haiku which doesn't have O_ASYNC yet (#2485) 2021-03-30 03:32:16 +02:00
pancake 368c37d519 Update radare2 module 2021-03-30 02:01:13 +02:00
pancake 5b1ae7f435 Implement R2GhidraCmd decompiler inline plugin
* Uses the pdg command directly
2021-03-30 01:52:51 +02:00
pancake 9a5a63b29b Fix dupe makeWarning symbol 2021-03-30 01:37:14 +02:00
pancake 5e797fa380 Update r2 submodule again 2021-03-30 00:54:38 +02:00
pancake d71e659b0e Fix build with latest r2 from git 2021-03-30 00:54:06 +02:00
pancake 94291239dd Update r2 submodule 2021-03-29 19:19:16 +02:00
pancake b2429b241f Aim to fix the hidden magic behind the silent make calls 2021-03-29 19:18:49 +02:00
xambroz 942219f371 Overview of the Linux package versions (#21) 2021-03-29 18:48:45 +02:00
pancake 3d17c96ddc Remove the buggy transition settings code and fix hang on projects save 2021-03-29 17:29:31 +02:00
pancake 14cbc4448b Fix for the macOS packaging 2021-03-29 16:53:32 +02:00
pancake 0b9dbf2c6d Make improvements 2021-03-29 14:47:00 +02:00
pancakeandpancake 7eccea7693 Fix warning (#18)
Co-authored-by: pancake <[email protected]>
2021-03-29 11:55:23 +02:00
pancakeandpancake caa778b89f Update translations submodule (#16)
Co-authored-by: pancake <[email protected]>
2021-03-29 01:23:01 +02:00
pancake 4505d9c2f2 Fix remaining warnings 2021-03-29 01:20:57 +02:00
pancake d77ae74e96 asm.var.sub -> asm.sub.var 2021-03-29 01:03:42 +02:00
pancake 193320e5dd Fix C++ Warnings 2021-03-29 01:02:07 +02:00
pancake be383c3826 Fix Linux CI build 2021-03-29 00:47:44 +02:00
pancake b68b0feb24 Rollback the crap 2021-03-26 14:26:29 +01:00
pancake a016642441 Safer make check 2021-03-26 12:39:28 +01:00
pancake 0a24a2575e Build and warning fixes 2021-03-26 12:33:56 +01:00
pancake 9b2af5399f More warnings fixed related to references QJsonValue 2021-03-26 03:00:32 +01:00
pancake aa525c04cb Fix all warnings in Cutter.cpp 2021-03-26 02:53:54 +01:00
pancake 9871d3b0fc asm.bb.line -> asm.lines.bb 2021-03-26 02:49:11 +01:00
pancake 85811cb18d Update radare2 submodule 2021-03-26 02:39:08 +01:00
pancake 53df3aeb33 Fix for pkg-config 2021-03-26 02:36:12 +01:00
pancake 01bb0ab306 Initial work towards supporting Qt6 and C++17 2021-03-26 02:36:07 +01:00
xambroz 7496b8255b Unhandled result of the pipe function (#11)
Added handling of the failed call to pipe function.

Related to https://github.com/radareorg/r2cutter/issues/10

[ 58%] Building CXX object CMakeFiles/r2cutter.dir/widgets/ProcessesWidget.cpp.o
/usr/lib64/ccache/g++ -DCUTTER_ENABLE_GRAPHVIZ -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING -DCUTTER_SOURCE_BUILD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -Dr2cutter_EXPORTS -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu/r2cutter_autogen/include -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/core -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/widgets -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/common -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/plugins -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/menus -I/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/. -isystem /usr/include/graphviz -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/capstone -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/KF5 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden   -Wall -Wextra -fPIC -std=gnu++11 -o CMakeFiles/r2cutter.dir/widgets/ProcessesWidget.cpp.o -c /home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/widgets/ProcessesWidget.cpp
/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/widgets/ConsoleWidget.cpp: In member function 'void ConsoleWidget::redirectOutput()':
/home/mambroz/rpmbuild/BUILD/r2cutter-0.1.1/src/widgets/ConsoleWidget.cpp:468:9: warning: ignoring return value of 'int pipe(int*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  468 |     pipe(redirectPipeFds);
      |     ~~~~^~~~~~~~~~~~~~~~~
[ 60%] Building CXX object CMakeFiles/r2cutter.dir/dialogs/MapFileDialog.cpp.o
[ 60%] Building CXX object CMakeFiles/r2cutter.dir/widgets/BacktraceWidget.cpp.o
[ 60%] Building CXX object CMakeFiles/r2cutter.dir/common/CommandTask.cpp.o
2021-03-21 03:01:22 +01:00
xambroz 8cbe8f2975 Avoid warning about uninitialized menu (#12)
Avoid warning message about potentially uninitialized variable "menu".
It is initialized in if/else so just nulling it on the beginning should do the trick.

[ 36%] Building CXX object CMakeFiles/r2cutter.dir/widgets/DisassemblyWidget.cpp.o
/usr/lib64/ccache/g++ -DCUTTER_ENABLE_GRAPHVIZ -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING -DCUTTER_SOURCE_BUILD -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_WIDGETS_LIB -Dr2cutter_EXPORTS -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu -IBUILD/r2cutter-0.1.1/src -IBUILD/r2cutter-0.1.1/x86_64-redhat-linux-gnu/r2cutter_autogen/include -IBUILD/r2cutter-0.1.1/src/core -IBUILD/r2cutter-0.1.1/src/widgets -IBUILD/r2cutter-0.1.1/src/common -IBUILD/r2cutter-0.1.1/src/plugins -IBUILD/r2cutter-0.1.1/src/menus -IBUILD/r2cutter-0.1.1/src/. -isystem /usr/include/graphviz -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/libr -isystem /usr/include/libr/sdb -isystem /usr/include/capstone -isystem /usr/include/KF5/KSyntaxHighlighting -isystem /usr/include/KF5 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fvisibility=hidden   -Wall -Wextra -fPIC -std=gnu++11 -o CMakeFiles/r2cutter.dir/widgets/DisassemblyWidget.cpp.o -c BUILD/r2cutter-0.1.1/src/widgets/DisassemblyWidget.cpp
BUILD/r2cutter-0.1.1/src/menus/DecompilerContextMenu.cpp: In member function 'DecompilerContextMenu::updateTargetMenuActions()':
BUILD/r2cutter-0.1.1/src/menus/DecompilerContextMenu.cpp:575:24: warning: 'menu' may be used uninitialized in this function [-Wmaybe-uninitialized]
  575 |         action->setMenu(menu);
      |         ~~~~~~~~~~~~~~~^~~~~~
2021-03-21 03:01:08 +01:00
pancake 3e34672e7e Fix #10 - check return value of write API call 2021-03-19 10:58:02 +01:00
pancake 7d9729bbff Fix #8 - do not define the same enum twice 2021-03-19 10:54:23 +01:00
pancake 19435220bf Fix #9 - move unused variable into commented code block 2021-03-19 10:50:52 +01:00
pancake 86ee0a9cae Release 0.1.1 - second beta release 2021-02-02 15:48:51 +01:00
pancake b8c74e073d Dont touch the dir.plugins, so system plugins work again 2021-02-02 14:04:22 +01:00
pancake f73ad3216a Dont check version when no gittap available 2021-02-02 13:28:14 +01:00
pancake 8f773e9c14 Remove empty line 2021-02-02 12:58:07 +01:00
pancake baf2c363d5 Fix macOS package versioning 2021-02-01 16:39:50 +01:00
pancake 82b2351954 Fix CI namings and versionings 2021-01-31 02:55:43 +01:00
pancake 82e8060c0e More icon fixes and release initial 0.1.0 for r2-5.1.0 2021-01-31 02:33:43 +01:00
pancake 6faf861938 Update cutter icons and add 1024x1024 r2cutter.png 2021-01-31 02:05:26 +01:00
pancake e68c39bbf9 Fix w64 build and speedup the CI by downloading r2 builds from release page 2021-01-31 01:43:16 +01:00
pancake 20863f29df Add dummy Makefile in src 2021-01-29 01:10:27 +01:00
pancake daafdd27ae Add macos pkg script 2021-01-29 01:07:49 +01:00
pancake 4a3df06429 Fix usage of system r2ghidra and r2dec decompilers 2021-01-28 12:09:49 +01:00
pancake 6726c40fef Fix badge link 2021-01-28 11:19:39 +01:00
pancake 325a3a3384 Integrate acr with cmake and initial cutter-deps plan 2021-01-28 11:15:47 +01:00
pancake 00e91f7984 Update README 2021-01-28 02:19:46 +01:00
pancake b0fe567a22 Initial support for acr/make build 2021-01-28 01:40:02 +01:00
pancake 3df0220985 Fix ubuntu20 build and other build improvements
* Fetch cutter-deps from rizinorg
* Publish the macOS app tarball (dmg is not yet generated in GHA)
* Fix make install in macOS (sh build.sh)
* Use yes | to make it non-interactive in the docker creationg script
2021-01-27 02:13:38 +01:00
pancake 15c261398e Fix build with latest r2 and more rebranding 2021-01-27 00:35:29 +01:00
pancake fe861bd26e Update radare2 submodule 2021-01-27 00:34:27 +01:00
Florian Märkl 14b731ac2a Update .desktop and .appdata.xml contents to r2cutter 2021-01-23 17:59:05 +01:00
Florian Märkl a3b5a37a07 Rename installed files to r2cutter 2021-01-23 17:59:05 +01:00
pancake c25f2264b7 Update icons for the r2cutter rebranding 2021-01-23 02:31:59 +01:00
pancake d754310096 Fix macos CI 2021-01-04 02:02:42 +01:00
pancake 8284f4a01f Update radare2 to latest commit in master 2021-01-04 02:02:42 +01:00
pancake d0d1b06b2d Simplify CI by removing ubuntu16 and adding ubuntu20 2021-01-04 01:45:06 +01:00
pancake 1c9900a3a1 Update the README and CONTRIBUTING files 2021-01-04 01:41:46 +01:00
900 changed files with 70601 additions and 36827 deletions

No files matched your search

-98
View File
@@ -1,98 +0,0 @@
version: '1.12.0-git-{build}'
image: 'Previous Visual Studio 2019'
clone_depth: 1
# Build configuration
configuration:
- Release
# Environment
environment:
NINJA_URL: https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip
VSVARSALLPATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat'
QTPATH: 'cutter-deps\qt'
USE_APPVEYOR_QT: 'false'
matrix:
# Build: qmake vs2017 x86 shared
#- ARCH: x86
# PYTHON: 'C:\Python36'
# QMAKE: 1
# DEPLOY: true
# QTPATH: 'C:\Qt\5.12\msvc2017'
# USE_APPVEYOR_QT: true
# Build: qmake vs2017 x64 shared
- ARCH: x64
PYTHON: 'C:\Python36-x64'
QMAKE: 1
DEPLOY: true
# Build: meson ninja x64 static
- ARCH: x64
PYTHON: 'C:\Python36-x64'
MESON: 1
BACKEND: ninja
DEPLOY: false
install:
- ps: $env:path = ($env:path -split ";").Where({!($_ -like "*Microsoft SQL Server*")}) -join ";"
- cmd: C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && scripts/fetch_deps.sh"
- cmd: set "CUTTER_DEPS_DIR=%APPVEYOR_BUILD_FOLDER%\cutter-deps"
- cmd: set "PATH=%CD%;%PYTHON%;%PATH%"
- cmd: call "%VSVARSALLPATH%" %ARCH%
- cmd: if "%USE_APPVEYOR_QT%" == "false" ( set "QTPATH=%APPVEYOR_BUILD_FOLDER%\%QTPATH%" )
- cmd: set "PATH=%QTPATH%\bin;%PYTHON%\Scripts\;%PATH%"
- cmd: echo %PATH%
- cmd: python -m pip install meson==0.52
- cmd: where meson.exe
- cmd: powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget %NINJA_URL% -OutFile ninja.zip; Expand-Archive .\ninja.zip -DestinationPath ."
# Artifacts
- cmd: set "ARTIFACT_NAME=Cutter-v1.12.0-%ARCH%.Windows"
- cmd: if defined MESON ( set "ARTIFACT_PATH=dist_%ARCH%" ) else ( set "ARTIFACT_PATH=build_%ARCH%\cutter" )
before_build:
- cmd: git submodule update --init
- scripts\prepare_breakpad.bat
# Build config
build_script:
- cmd: if defined QMAKE ( call prepare_r2.bat )
- cmd: if defined QMAKE ( C:\msys64\usr\bin\bash -lc "export PATH=\"/c/msys64/usr/bin:$PATH\" && cd \"$APPVEYOR_BUILD_FOLDER\" && scripts/appveyor_r2ghidra.sh" )
- cmd: if defined QMAKE ( call build.bat CUTTER_APPVEYOR_R2DEC=true CUTTER_R2GHIDRA_STATIC=true R2GHIDRA_SOURCE="%APPVEYOR_BUILD_FOLDER%/r2ghidra" R2GHIDRA_INSTALL_PATH="%APPVEYOR_BUILD_FOLDER%/r2_dist/lib/plugins" CUTTER_ENABLE_CRASH_REPORTS=true CUTTER_ENABLE_PYTHON=true CUTTER_ENABLE_PYTHON_BINDINGS=true CUTTER_DEPS_DIR="%CUTTER_DEPS_DIR%" )
- cmd: if defined MESON ( python meson.py --release --dist=%ARTIFACT_PATH% --backend=%BACKEND% --python )
after_build:
- cmd: if defined QMAKE ( set "PATH=%CD%\r2_dist\bin;%PATH%" && powershell scripts\bundle_r2dec.ps1 "%CD%\%ARTIFACT_PATH%" )
#- cmd: if defined QMAKE ( C:\msys64\usr\bin\bash -lc "export PATH=\"/c/msys64/usr/bin:$PATH\" && cd \"$APPVEYOR_BUILD_FOLDER\" && scripts/appveyor_r2ghidra.sh" )
#- cmd: powershell scripts\bundle_openssl.ps1 %ARCH% "%CD%\%ARTIFACT_PATH%"
- cmd: powershell scripts\bundle_python.ps1 %ARCH% "%CD%\%ARTIFACT_PATH%"
- cmd: xcopy "%CUTTER_DEPS_DIR%\pyside\lib\site-packages" "%ARTIFACT_PATH%\python36\site-packages" /e /i /h
- cmd: copy "%CUTTER_DEPS_DIR%\pyside\bin\shiboken2.abi3.dll" "%ARTIFACT_PATH%\"
- cmd: copy "%CUTTER_DEPS_DIR%\pyside\bin\pyside2.abi3.dll" "%ARTIFACT_PATH%\"
# Tests
test: off
# Artifacts
artifacts:
- path: "%ARTIFACT_PATH%"
name: "%ARTIFACT_NAME%"
deploy:
description: 'Cutter binaries'
provider: GitHub
auth_token:
secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
artifact: "%ARTIFACT_NAME%"
draft: true
prerelease: true
on:
appveyor_repo_tag: true
DEPLOY: true
for:
-
branches:
only:
- master
-
skip_non_tags: true
+120
View File
@@ -0,0 +1,120 @@
# .clang-format for Qt Creator
#
# This is for clang-format >= 5.0.
#
# The configuration below follows the Qt Creator Coding Rules [1] as closely as
# possible. For documentation of the options, see [2].
#
# Use ../../tests/manual/clang-format-for-qtc/test.cpp for documenting problems
# or testing changes.
#
# In case you update this configuration please also update the qtcStyle() in src\plugins\clangformat\clangformatutils.cpp
#
# [1] https://doc-snapshots.qt.io/qtcreator-extending/coding-style.html
# [2] https://clang.llvm.org/docs/ClangFormatStyleOptions.html
#
# yaml-language-server: $schema=https://json.schemastore.org/clang-format.json
#
---
Language: Cpp
AccessModifierOffset: -4
AlignAfterOpenBracket: AlwaysBreak
AlignConsecutiveAssignments: None
AlignConsecutiveDeclarations: None
AlignEscapedNewlines: DontAlign
AlignOperands: Align
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterClass: true
AfterControlStatement: Never
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 100
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- forever # avoids { wrapped to next line
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeCategories:
- Regex: '^<Q.*'
Priority: 200
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentWidth: 4
IndentWrappedFunctionNames: false
# InsertBraces: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
# Do not add QT_BEGIN_NAMESPACE/QT_END_NAMESPACE as this will indent lines in between.
MacroBlockBegin: ""
MacroBlockEnd: ""
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 88
PenaltyBreakBeforeFirstCallParameter: 300
PenaltyBreakComment: 500
PenaltyBreakFirstLessLess: 400
PenaltyBreakString: 600
PenaltyExcessCharacter: 50
PenaltyReturnTypeOnItsOwnLine: 300
PointerAlignment: Right
ReflowComments: false
SortIncludes: CaseSensitive
SortUsingDeclarations: true
SpaceAfterCStyleCast: true
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: Never
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++17
TabWidth: 4
UseTab: Never
+12 -29
View File
@@ -4,37 +4,20 @@ about: Create a report to help us improve
---
**Environment information**
* Operating System:
* Cutter version:
* Obtained from:
- [x] Built from source
- [ ] Downloaded release from Cutter website or GitHub
- [ ] Distribution repository
* File format:
## Environment
**Describe the bug**
```sh
# copypaste this script into your shell and replace it with the output
date
r2 -v
iaito -v
uname -ms
```
<!-- A clear and concise description of what the bug is. -->
## Description
**To Reproduce**
<!-- Explain what's the issue and what would you expect to see -->
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
## Test
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
**Screenshots**
<!-- If applicable, add screenshots to help explain your problem. -->
**Additional context**
<!-- Add any other context about the problem here. -->
<!-- Steps to reproduce the issue and provide files/links/images/.. -->
+5 -5
View File
@@ -2,9 +2,9 @@ blank_issues_enabled: false
contact_links:
- name: Questions Telegram
url: https://t.me/r2cutter
about: Please ask questions about Cutter here or one of the other community channels, not in the issue tracker.
url: https://t.me/radare
about: Please ask questions about Iaito in the radare telegram or IRC chat
- name: Questions IRC
url: https://webchat.freenode.net/#cutter
about: "#cutter on irc.freenode.net"
- name: Questions Discord
url: https://discord.gg/MgEdxrMnqx
about: "Official Discord server"
+2 -15
View File
@@ -4,19 +4,6 @@ about: Suggest an idea for this project
---
**Is your feature request related to a problem? Please describe.**
**Feature Request Description**
<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
**Describe the solution you'd like**
<!-- A clear and concise description of what you want to happen.
For UI requests, don't hesitate to post some draws. -->
**Describe alternatives you've considered**
<!-- A clear and concise description of any alternative solutions or features you've considered. -->
**Additional context**
<!-- Add any other context or screenshots about the feature request here. -->
<!-- Describe your feature request for iaito only using ascii and jpegs only -->
-23
View File
@@ -1,23 +0,0 @@
<!-- Filling this template is mandatory -->
**Your checklist for this pull request**
- [ ] I've read the [guidelines for contributing](https://cutter.re/docs/contributing/code/getting-started.html) to this repository
- [ ] I made sure to follow the project's [coding style](https://cutter.re/docs/contributing/code/development-guidelines.html)
- [ ] I've updated the [documentation](https://cutter.re/docs/user-docs.html) with the relevant information (if needed)
**Detailed description**
<!-- Explain the **details** for making this change. Is a new feature implemented? What existing problem does the pull request solve? How does the pull request solve these issues? Please provide enough information so that others can review your pull request. -->
**Test plan (required)**
<!-- What steps should the reviewer take to test your pull request? Demonstrate that the code is solid. Example: The exact actions you made and their outcome. Add screenshots/videos if the pull request changes UI. This is your time to re-check that everything works and that you covered all the edge cases -->
<!-- **Code formatting**
Make sure you ran astyle on your code before making the PR. Check our contribution guidelines here: https://cutter.re/docs/code.html -->
**Closing issues**
<!-- put "closes #XXXX" in your comment to auto-close the issue that your PR fixes (if such). -->
+6
View File
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
-193
View File
@@ -1,193 +0,0 @@
name: Cutter CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-16.04, macos-latest, windows-latest]
python-version: [3.7.x]
system-deps: [false]
cc-override: [default]
cxx-override: [default]
include:
- os: ubuntu-16.04
python-version: 3.5.10
system-deps: true
cc-override: '/usr/bin/gcc-5'
cxx-override: '/usr/bin/g++-5'
# Prevent one job from pausing the rest
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
submodules: true # 'recursive' 'true' or 'false'
persist-credentials: false
- name: apt dependencies
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get install libgraphviz-dev mesa-common-dev
if [[ "${{ matrix.os }}" = "ubuntu-16.04" ]]
then
sudo apt-get install ninja-build/xenial-backports
if [[ "${{ matrix.system-deps }}" = "true" ]]
then
sudo apt-get install cmake
sudo apt-get install --allow-downgrades \
g++-5=5.4.\* \
gcc-5=5.4.\* \
gcc-5-base=5.4.\* \
libstdc++-5-dev=5.4.\* \
cpp-5=5.4.\* \
libgcc-5-dev=5.4.\* \
libasan2=5.4.\* \
libmpx0=5.4.\*
fi
# make sure cmake that was just installed is at the front of path before
# additional software installed by GitHub
echo /usr/bin >> $GITHUB_PATH
else
sudo apt-get install ninja-build
fi
if [[ "${{ matrix.system-deps }}" = "true" ]]
then
sudo apt-get install qt5-default libqt5svg5-dev qttools5-dev qttools5-dev-tools
fi
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: homebrew dependencies
if: contains(matrix.os, 'macos')
run: |
cd scripts
rm '/usr/local/bin/2to3' # symlink to some kind of existing python2.7 installation conflicts with brew python3 which gets installed as indirect dependency
brew update --preinstall # temporary workaround for https://github.com/Homebrew/homebrew-bundle/issues/751
brew bundle
brew install coreutils
brew install pkg-config
- name: py dependencies
run: |
pip install meson
- name: cmake ubuntu
if: contains(matrix.os, 'ubuntu')
run: |
if [[ "${{ matrix.system-deps }}" = "false" ]]
then
scripts/fetch_deps.sh
source cutter-deps/env.sh
export PKG_CONFIG_PATH="$CUTTER_DEPS_PYTHON_PREFIX/lib/pkgconfig:${PKG_CONFIG_PATH:-}"
export LD_LIBRARY_PATH="`llvm-config --libdir`:$LD_LIBRARY_PATH"
fi
set -euo pipefail #TODO: move to top once cutter-deps doesn't fail
if [[ "${{ matrix.cc-override }}" != "default" ]]
then
export CC="${{matrix.cc-override}}"
export CXX="${{matrix.cxx-override}}"
fi
source scripts/prepare_breakpad_linux.sh
export PKG_CONFIG_PATH="$CUSTOM_BREAKPAD_PREFIX/lib/pkgconfig:${PKG_CONFIG_PATH:-}" #
mkdir build
cd build
cmake --version
if [[ "${{ matrix.system-deps }}" = "false" ]]
then
cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCUTTER_ENABLE_PYTHON=ON \
-DPYTHON_LIBRARY="$CUTTER_DEPS_PYTHON_PREFIX/lib/libpython3.6m.so.1.0" \
-DPYTHON_INCLUDE_DIR="$CUTTER_DEPS_PYTHON_PREFIX/include/python3.6m" \
-DPYTHON_EXECUTABLE="$CUTTER_DEPS_PYTHON_PREFIX/bin/python3" \
-DCUTTER_ENABLE_PYTHON_BINDINGS=OFF \
-DCUTTER_ENABLE_CRASH_REPORTS=ON \
-DCUTTER_USE_BUNDLED_RADARE2=ON \
../src
else
cmake \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCUTTER_USE_BUNDLED_RADARE2=ON \
../src
fi
ninja
- name: cmake macos
shell: bash
if: contains(matrix.os, 'macos')
run: |
scripts/fetch_deps.sh
source cutter-deps/env.sh
set -euo pipefail
export PATH=/usr/local/opt/llvm/bin:$PATH
source scripts/prepare_breakpad_macos.sh
mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_LIBRARY="$CUTTER_DEPS_PYTHON_PREFIX/lib/libpython3.6m.dylib" \
-DPYTHON_INCLUDE_DIR="$CUTTER_DEPS_PYTHON_PREFIX/include/python3.6m" \
-DPYTHON_EXECUTABLE="$CUTTER_DEPS_PYTHON_PREFIX/bin/python3" \
-DCUTTER_ENABLE_PYTHON=ON \
-DCUTTER_ENABLE_PYTHON_BINDINGS=ON \
-DCUTTER_ENABLE_CRASH_REPORTS=ON \
-DCUTTER_USE_BUNDLED_RADARE2=ON \
-DCUTTER_ENABLE_PACKAGING=ON \
-DCUTTER_PACKAGE_DEPENDENCIES=ON \
-DCUTTER_ENABLE_DEPENDENCY_DOWNLOADS=ON \
-DCUTTER_PACKAGE_RZ_GHIDRA=ON \
-DCMAKE_FRAMEWORK_PATH="$BREAKPAD_FRAMEWORK_DIR" \
.. && \
make -j4;
make package
export CUTTER_VERSION=$(python3 ../scripts/get_version.py)
echo PACKAGE_NAME=Cutter-${CUTTER_VERSION}-Darwin.dmg >> $GITHUB_ENV
- name: windows dependencies
if: contains(matrix.os, 'windows-latest')
shell: bash
run: |
pip install ninja
scripts/fetch_deps.sh
choco install winflexbison3
- name: windows cmake
if: contains(matrix.os, 'windows-latest')
shell: cmd
run: |
set ARCH=x64
set CUTTER_DEPS=%CD%\cutter-deps
set PATH=%CD%\cutter-deps\qt\bin;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
call scripts\prepare_breakpad.bat
cd
mkdir build
cd build
set PACKAGE_NAME=cutter-git-x64.Windows
cmake ^
-DCMAKE_BUILD_TYPE=Release ^
-DCUTTER_USE_BUNDLED_RADARE2=ON ^
-DCUTTER_ENABLE_PYTHON=ON ^
-DCUTTER_ENABLE_PYTHON_BINDINGS=ON ^
-DCUTTER_PACKAGE_DEPENDENCIES=ON ^
-DCUTTER_PACKAGE_R2GHIDRA=ON ^
-DCUTTER_PACKAGE_R2DEC=ON ^
-DCUTTER_ENABLE_DEPENDENCY_DOWNLOADS=ON ^
-DCUTTER_ENABLE_CRASH_REPORTS=ON ^
-DCMAKE_PREFIX_PATH="%CUTTER_DEPS%\pyside" ^
-DCPACK_PACKAGE_FILE_NAME=%PACKAGE_NAME% ^
-G Ninja ^
../src
cmake --build . --config Release
cmake --build . --config Release --target package
echo PACKAGE_NAME=%PACKAGE_NAME%.zip >> %GITHUB_ENV%
- uses: actions/upload-artifact@v2
if: env.PACKAGE_NAME != null
with:
name: ${{ env.PACKAGE_NAME }}
path: build/${{ env.PACKAGE_NAME }}
+553
View File
@@ -0,0 +1,553 @@
name: iaito CI
env:
R2V: 6.2.6
R2GHIDRA_VERSION: 6.2.6
QT_MAC_INSTALL_VERSION: 6.11.*
QT_WIN_INSTALL_VERSION: 6.10.*
on:
workflow_dispatch:
inputs:
release_tag:
description: Existing version tag to build and publish
required: true
type: string
push:
branches:
- master
pull_request:
branches:
- master
jobs:
source:
runs-on: ubuntu-24.04
outputs:
sha: ${{ steps.source.outputs.sha }}
r2: ${{ steps.source.outputs.R2V }}
r2ghidra: ${{ steps.source.outputs.R2GHIDRA_VERSION }}
qt_mac: ${{ steps.source.outputs.QT_MAC_INSTALL_VERSION }}
qt_win: ${{ steps.source.outputs.QT_WIN_INSTALL_VERSION }}
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.release_tag && format('refs/tags/{0}', inputs.release_tag) || github.sha }}
persist-credentials: false
- name: Resolve build source and dependencies
id: source
env:
RELEASE_TAG: ${{ inputs.release_tag }}
shell: bash
run: |
if [ -n "$RELEASE_TAG" ]; then
[[ "$RELEASE_TAG" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]
test "$(./configure -qV)" = "$RELEASE_TAG"
fi
echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
python3 - <<'PYTHON'
import os
import re
from pathlib import Path
workflow = Path('.github/workflows/ci.yml').read_text()
keys = ('R2V', 'R2GHIDRA_VERSION', 'QT_MAC_INSTALL_VERSION', 'QT_WIN_INSTALL_VERSION')
with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
for key in keys:
value = os.environ[key]
if os.environ['RELEASE_TAG']:
match = re.search(r'^ ' + key + r': ([0-9.*]+)$', workflow, re.M)
if not match:
raise SystemExit(f'Missing dependency version: {key}')
value = match.group(1)
print(f'{key}={value}', file=output)
PYTHON
acr-linux-r2git:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
submodules: false # 'recursive' 'true' or 'false'
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: 3.12.x
- name: apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgraphviz-dev mesa-common-dev ninja-build meson libqt5svg5-dev qttools5-dev qttools5-dev-tools qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
- name: install r2
run: git clone --depth=1 https://github.com/radareorg/radare2 r2git && CFLAGS=-O0 r2git/sys/install.sh
- name: build iaito
run: |
./configure --prefix=/usr
make -j4
- name: command-line checks
run: python3 tests/commandline/test_commandline.py build/iaito
- name: packaging
run: make -j -C dist/debian
indent-check:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: ubuntu-24.04
continue-on-error: true
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: install clang-format
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends clang-format-20
- name: make indent
run: make indent-host && git diff --exit-code
acr-linux:
needs: source
env:
R2V: ${{ needs.source.outputs.r2 }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
ref: ${{ needs.source.outputs.sha }}
submodules: false # 'recursive' 'true' or 'false'
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: 3.12.x
- name: apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgraphviz-dev mesa-common-dev ninja-build qt6-base-dev qt6-declarative-dev libqt6svg6-dev qt6-l10n-tools
echo /usr/lib/qt6/bin >> $GITHUB_PATH
- name: install r2
run: |
wget -q https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2_${{env.R2V}}_amd64.deb
wget -q https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2-dev_${{env.R2V}}_amd64.deb
sudo dpkg -i *.deb
- name: configure iaito
run: ./configure --prefix=/usr --with-qmake6
- name: build iaito
run: make -j4
- name: command-line checks
if: ${{ hashFiles('tests/commandline/test_commandline.py') != '' }}
run: python3 tests/commandline/test_commandline.py build/iaito
- name: packaging
run: make -C dist/debian
- uses: actions/upload-artifact@v7
with:
name: iaito-amd64.deb
path: dist/debian/*/*.deb
acr-linux-nodebugger:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
submodules: false # 'recursive' 'true' or 'false'
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: 3.12.x
- name: apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgraphviz-dev mesa-common-dev ninja-build qt6-base-dev qt6-declarative-dev libqt6svg6-dev qt6-l10n-tools
echo /usr/lib/qt6/bin >> $GITHUB_PATH
- name: install r2
run: |
wget -q https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2_${{env.R2V}}_amd64.deb
wget -q https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2-dev_${{env.R2V}}_amd64.deb
sudo dpkg -i *.deb
- name: configure iaito
run: ./configure --prefix=/usr --with-qmake6 --without-debugger
- name: build iaito
run: make -j4
- name: command-line checks
run: python3 tests/commandline/test_commandline.py build/iaito
acr-macos:
needs: source
env:
R2V: ${{ needs.source.outputs.r2 }}
R2GHIDRA_VERSION: ${{ needs.source.outputs.r2ghidra }}
QT_MAC_INSTALL_VERSION: ${{ needs.source.outputs.qt_mac }}
QT_WIN_INSTALL_VERSION: ${{ needs.source.outputs.qt_win }}
strategy:
fail-fast: false
matrix:
include:
- arch: arm64
runs-on: macos-latest
- arch: x64
runs-on: macos-15-intel
arch_alt: x86_64
name: acr-macos-${{ matrix.arch }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v7
with:
ref: ${{ needs.source.outputs.sha }}
submodules: false # 'recursive' 'true' or 'false'
persist-credentials: false
- uses: actions/setup-python@v7
with:
python-version: 3.12.x
- name: uname
run: uname -a
- name: install dependencies
run: pip3 install meson ninja
- name: install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{env.QT_MAC_INSTALL_VERSION}}
- name: download radare components
working-directory: dist/macos
env:
GH_TOKEN: ${{github.token}}
run: |
validate_download() {
case "$2" in
tar.gz) tar -tzf "$1" >/dev/null 2>&1 ;;
zip) unzip -tq "$1" >/dev/null 2>&1 ;;
*) test -s "$1" ;;
esac
}
download() {
local output="$1"
local url="$2"
local type="$3"
local attempt
for ((attempt = 1; attempt <= 3; attempt++)); do
rm -f "${output}.tmp"
if curl --fail --location --silent --show-error \
--connect-timeout 30 --max-time 300 --output "${output}.tmp" "$url" \
&& validate_download "${output}.tmp" "$type"; then
mv "${output}.tmp" "$output"
return 0
fi
if [ "$attempt" -lt 3 ]; then
echo "Download of ${output} failed (attempt ${attempt}/3); retrying in 10s"
sleep 10
fi
done
echo "::error::Unable to download a valid ${output} after 3 attempts"
return 1
}
r2ai_version="$(gh api /repos/radareorg/r2ai/releases/latest --jq .tag_name)"
download radare2.pkg "https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2-${{matrix.arch}}-${{env.R2V}}.pkg" pkg
download r2ai.tar.gz "https://github.com/radareorg/r2ai/archive/refs/tags/${r2ai_version}.tar.gz" tar.gz
download r2ghidra.zip "https://github.com/radareorg/r2ghidra/releases/download/${{env.R2GHIDRA_VERSION}}/r2ghidra-${{env.R2GHIDRA_VERSION}}-macos-${{matrix.arch_alt||matrix.arch}}.zip" zip
download r2ghidra_sleigh.zip "https://github.com/radareorg/r2ghidra/releases/download/${{env.R2GHIDRA_VERSION}}/r2ghidra_sleigh-${{env.R2GHIDRA_VERSION}}.zip" zip
make unpack-comps
- name: install r2
run: sudo installer -pkg dist/macos/radare2.pkg -target /
- name: build iaito
run: |
./configure
make -j4 -C dist/macos app
- name: ad-hoc sign
run: codesign --force --deep -s - dist/macos/disk/iaito.app
- name: packaging
run: make -C dist/macos zip
- uses: actions/upload-artifact@v7
with:
name: iaito-macos-${{ matrix.arch }}
path: dist/macos/iaito.zip
meson:
if: ${{ github.event_name != 'workflow_dispatch' }}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
with:
submodules: false # 'recursive' 'true' or 'false'
persist-credentials: false
- name: apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgraphviz-dev mesa-common-dev ninja-build libqt5svg5-dev qttools5-dev qttools5-dev-tools qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
- name: install r2
run: |
wget -q https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2_${{env.R2V}}_amd64.deb
wget -q https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2-dev_${{env.R2V}}_amd64.deb
sudo dpkg -i *.deb
- uses: actions/setup-python@v7
with:
python-version: 3.12.x
- name: meson+ninja ubuntu
run: |
pip install meson
meson setup build src
ninja -C build -j4
w64-meson:
needs: source
env:
R2V: ${{ needs.source.outputs.r2 }}
QT_WIN_INSTALL_VERSION: ${{ needs.source.outputs.qt_win }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ needs.source.outputs.sha }}
submodules: false
persist-credentials: false
- name: Preparing msvc toolchain
uses: TheMrMilchmann/setup-msvc-dev@v4
with:
arch: x64
- name: install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{env.QT_WIN_INSTALL_VERSION}}
- name: install dependencies
shell: cmd
run: pip install ninja "meson==1.10.2"
- name: install r2 (preconfigure)
shell: bash
run: |
curl -L -o r2.zip https://github.com/radareorg/radare2/releases/download/${{env.R2V}}/radare2-${{env.R2V}}-w64.zip
7z x r2.zip
mv radare2-${{env.R2V}}-w64 radare2
# XXX workaround for r2-6.2.4 headers not being msvc c++ friendly (fixed in r2 master)
sed -i 's/(RStrs) { NULL, NULL }/r_strs_new (NULL, NULL)/' radare2/include/libr/r_cmd.h
echo "%CD%\radare2\bin" >> $GITHUB_PATH
- name: configure
shell: cmd
run: configure.bat
- name: make
shell: cmd
env:
ARCH: x64
run: make.bat -Dwith_qt6=true
- name: dist
shell: cmd
run: 7z a iaito.zip iaito
- uses: actions/upload-artifact@v7
with:
name: iaito-w64.exe
path: iaito\iaito.exe
- uses: actions/upload-artifact@v7
with:
name: iaito-w64.zip
path: iaito.zip
check_release:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/master') }}
outputs:
is_release: ${{ steps.release.outputs.is }}
tag_name: ${{ steps.release.outputs.tag }}
needs:
- source
- acr-linux
- acr-macos
- w64-meson
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ needs.source.outputs.sha }}
fetch-depth: 0 # Download all git history and tags
- name: Check if is a release
run: git describe --exact-match --tags HEAD | awk 'BEGIN{tag="-";r="no"}/^[0-9]+\.[0-9]+/{tag=$0;r="yes"};END{print "is="r;print "tag="tag}' >> ${GITHUB_OUTPUT}
id: release
macos-sign:
if: ${{ needs.check_release.outputs.is_release == 'yes' }}
needs:
- check_release
runs-on: macos-latest
environment: release
# Environment secrets for signing:
# APPLE_DEVELOPER_CERTIFICATE_P12_BASE64:
# Base64 of the p12 export (cert+private key), the certificate must be named
# "Developer ID Application: DEVELOPER_NAME (TEAM_ID)"
# APPLE_DEVELOPER_CERTIFICATE_PASSWORD: Random password used to encrypt the exported P12
# Environment secrets for notarization:
# APPLE_DEVELOPER_ID: email of the developer
# APPLE_TEAM_ID: Team ID (can be extracted from the certificate name too)
# APPLE_APP_SPECIFIC_PASSWORD: https://support.apple.com/en-us/102654
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: refs/tags/${{ needs.check_release.outputs.tag_name }}
- name: Download artifacts
uses: actions/download-artifact@v8
with:
pattern: iaito-macos-*
path: dist/artifacts
- name: Install Apple Certificate
env:
CERTIFICATE_BASE64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
CERTIFICATE_PASSWORD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
KEYCHAIN_PASSWORD: "keychainpass-${{ github.run_id }}"
run: |
# Create keychain
security create-keychain -p "${KEYCHAIN_PASSWORD}" release.keychain
security default-keychain -s release.keychain
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" release.keychain
security set-keychain-settings -t 3600 -u release.keychain
# Import certificate
echo "$CERTIFICATE_BASE64" | base64 --decode > certificate.p12
security import certificate.p12 -k release.keychain -P "${CERTIFICATE_PASSWORD}" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k "${KEYCHAIN_PASSWORD}" release.keychain
# Check if the certificate was imported correctly and find its identity
security find-identity -v -p codesigning release.keychain
# Clean up
rm certificate.p12
- name: Sign and package the App Bundle
run: |
# Find the Developer ID Application certificate identity
IDENTITY=$(security find-identity -v -p codesigning | awk '/Developer ID Application/{print $2;exit}')
if [ -z "$IDENTITY" ]; then
echo "Error: No Developer ID Application certificate found in keychain"
exit 1
fi
# Sign and package for all architectures
for arch in arm64 x64; do
echo "[${arch}] Extracting build..."
mkdir -p dist/macos/disk
ditto -x -k dist/artifacts/iaito-macos-${arch}/iaito.zip dist/macos/disk/
echo "[${arch}] Signing app bundle..."
codesign --force --deep --options runtime --entitlements "dist/macos/iaito.entitlements" --sign "$IDENTITY" dist/macos/disk/iaito.app
codesign --verify --verbose dist/macos/disk/iaito.app
echo "[${arch}] Packaging into DMG..."
rm -v dist/macos/disk/READ*.txt # no workaround needed
ln -fs /Applications dist/macos/disk/
(cd dist/macos; hdiutil create -format UDZO -fs APFS -volname iaito -srcfolder disk iaito)
mv -v dist/macos/iaito.dmg "iaito-${arch}.dmg"
rm -fR dist/macos/disk
echo "[${arch}] Signing DMG..."
codesign --force --sign "$IDENTITY" --timestamp "iaito-${arch}.dmg"
done
- name: Notarize DMG
env:
APPLE_ID: ${{ secrets.APPLE_DEVELOPER_ID }}
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APP_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
run: |
for arch in arm64 x64; do
echo "[${arch}] Notary DMG..."
xcrun notarytool submit "iaito-${arch}.dmg" --apple-id "$APPLE_ID" --team-id "$TEAM_ID" --password "$APP_PASSWORD" --wait
xcrun stapler staple "iaito-${arch}.dmg"
done
- uses: actions/upload-artifact@v7
with:
name: iaito-arm64.dmg
path: iaito-arm64.dmg
- uses: actions/upload-artifact@v7
with:
name: iaito-x64.dmg
path: iaito-x64.dmg
- name: Remove keychain
if: always()
run: security delete-keychain release.keychain
release:
permissions:
contents: write
if: ${{ needs.check_release.outputs.is_release == 'yes' }}
needs:
- macos-sign
- check_release
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: refs/tags/${{ needs.check_release.outputs.tag_name }}
fetch-depth: 0 # Download all git history and tags
- name: Extract version
run: echo "string=`./configure -qV`" >> $GITHUB_OUTPUT
id: version
- name: Prepare release notes
env:
RELEASE_TAG: ${{ needs.check_release.outputs.tag_name }}
run: |
previous=$(git describe --tags --abbrev=0 "${RELEASE_TAG}^")
./scripts/release-notes.sh "$previous" "$RELEASE_TAG" | tee ./RELEASE_NOTES.md
- name: Download artifacts
uses: actions/download-artifact@v8
with:
path: dist/artifacts
- name: Display structure of downloaded files
run: find dist/artifacts
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.check_release.outputs.tag_name }}
release_name: ${{ steps.version.outputs.string }}
body_path: ./RELEASE_NOTES.md
draft: true
prerelease: false
- name: Upload Linux asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/iaito-amd64.deb/iaito/iaito_${{ steps.version.outputs.string }}_amd64.deb
asset_name: iaito_${{ steps.version.outputs.string }}_amd64.deb
asset_content_type: application/vnd.debian.binary-package
- name: Upload macOS x64 asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/iaito-x64.dmg/iaito-x64.dmg
asset_name: iaito_${{ steps.version.outputs.string }}_x64.dmg
asset_content_type: application/vnd.debian.binary-package
- name: Upload macOS arm64 asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/iaito-arm64.dmg/iaito-arm64.dmg
asset_name: iaito_${{ steps.version.outputs.string }}_arm64.dmg
asset_content_type: application/vnd.debian.binary-package
- name: Upload Windows QtDeploy asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/iaito-w64.zip/iaito.zip
asset_name: iaito-${{ steps.version.outputs.string }}-w64.zip
asset_content_type: application/zip
- name: Upload Windows executable
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/artifacts/iaito-w64.exe/iaito.exe
asset_name: iaito-${{ steps.version.outputs.string }}.exe
asset_content_type: application/zip
- name: Publish complete release
env:
GH_TOKEN: ${{ github.token }}
RELEASE_ID: ${{ steps.create_release.outputs.id }}
run: |
gh api --method PATCH "repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}" \
-F draft=false -f make_latest=legacy --jq .html_url
-65
View File
@@ -1,65 +0,0 @@
name: coverity-scan
on:
schedule:
- cron: '0 9 * * 1,5' # Bi-weekly at 09:00 UTC on Monday and Thursday
jobs:
latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- uses: actions/setup-python@v1
with:
python-version: 3.7.x
- name: Download Coverity Build Tool
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=radareorg%2Fcutter" -O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Fixed world writable dirs
run: |
chmod go-w $HOME
sudo chmod -R go-w /usr/share
- name: apt dependencies
run: sudo apt-get install ninja-build libgraphviz-dev mesa-common-dev
- name: py dependencies
run: |
pip install meson
- name: CMake
run: |
scripts/fetch_deps.sh
source cutter-deps/env.sh
export LD_LIBRARY_PATH="`llvm-config --libdir`:$LD_LIBRARY_PATH"
mkdir build
cd build
cmake -DCUTTER_USE_BUNDLED_RADARE2=ON ../src
- name: Build with cov-build
run: |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
cd build
cov-build --dir cov-int make
- name: Submit the result to Coverity Scan
run: |
cd build
tar czvf cutter.tgz cov-int
curl \
--form project=radareorg-cutter \
--form token=$TOKEN \
--form [email protected] \
--form [email protected] \
--form version=trunk \
--form description="Cutter" \
https://scan.coverity.com/builds?project=radareorg%2Fcutter
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
+23
View File
@@ -0,0 +1,23 @@
on:
pull_request: {}
push:
branches:
- main
- master
paths:
- .github/workflows/semgrep.yml
schedule:
# random HH:MM to avoid a load spike on GitHub Actions at 00:00
- cron: 45 3 * * *
name: Semgrep
jobs:
semgrep:
name: Scan
runs-on: ubuntu-24.04
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
container:
image: returntocorp/semgrep
steps:
- uses: actions/checkout@v7
- run: semgrep ci
+109 -96
View File
@@ -1,96 +1,109 @@
# Binaries
AStyle*
# OSX files
*.DS_Store
.AppleDouble
.LSOverride
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib
# Qt files
*.qmake.cache
*.qmake.stash
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
qrc_*.cpp
moc_*.h
ui_*.h
build*/
cmake-build-*/
/src-build/
# Build folders
Debug
Release
# QtCreator
*.autosave
*.qmlproject.user
*.qmlproject.user.*
CMakeLists.txt.user
# CLion
.idea
# Vim
*.swp
*~
# Git mergetool
~.orig
# CMake Files:
src/*_automoc.cpp
*CMakeCache.txt*
*cmake_install.cmake*
src/CMakeFiles/*
# Prepare_r2
ninja.exe
r2_dist_x86/
r2_dist_x64/
r2_dist/
*.pdb
# Mesonbuild
src/subprojects/
# Python
__pycache__
/python/
# Other
compile_commands.json
.ccls-cache
docs/source/_build
# vscode
/.vscode/*
!/.vscode/settings.json
!/.vscode/extensions.json
# Visual Studio CMake
src/out
.vs
# cutter-deps
/cutter-deps
/breakpad
# astyle backup .orig files
*.orig
# Binaries
AStyle*
./config.mk
config.mk
# Generated configuration header (qmake / Meson)
IaitoConfig.h
# OSX files
*.DS_Store
.AppleDouble
.LSOverride
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib
# Qt files
*.qmake.cache
*.qmake.stash
src/Makefile
*.pro.user
*.pro.user.*
*.qbs.user
*.qbs.user.*
*.moc
moc_*.cpp
qrc_*.cpp
moc_*.h
ui_*.h
build*/
cmake-build-*/
/src-build
# Build folders
Debug
Release
# QtCreator
*.autosave
*.qmlproject.user
*.qmlproject.user.*
CMakeLists.txt.user
# CLion
.idea
# Vim
*.swp
*~
# Git mergetool
~.orig
# CMake Files:
src/*_automoc.cpp
*CMakeCache.txt*
*cmake_install.cmake*
src/CMakeFiles/*
# Prepare_r2
ninja.exe
r2_dist_x86/
r2_dist_x64/
r2_dist/
*.pdb
# Mesonbuild
src/subprojects/
# Python
__pycache__
/python/
# Other
compile_commands.json
.ccls-cache
docs/source/_build
# vscode
/.vscode/*
!/.vscode/settings.json
!/.vscode/extensions.json
# Visual Studio CMake
src/out
.vs
# astyle backup .orig files
*.orig
# Translations
src/translations
# macOS package
/dist/macos/radare2.pkg
/dist/macos/radare2-unpkg
/dist/macos/disk
/dist/macos/extra
/dist/macos/*.dmg
/dist/macos/*.zip
/dist/macos/*.tar.gz
-6
View File
@@ -1,6 +0,0 @@
[submodule "radare2"]
path = radare2
url = https://github.com/radareorg/radare2
[submodule "src/translations"]
path = src/translations
url = https://github.com/radareorg/cutter-translations
-297
View File
@@ -1,297 +0,0 @@
language: cpp
cache: ccache
branches:
only:
- master
- debug
- /^v\d.*$/
- /^deploy-test(-.*)?$/
matrix:
include:
- name: Linux QMake
os: linux
dist: xenial
env: BUILD_SYSTEM=qmake
addons:
apt:
packages:
- mesa-common-dev
- libgl1-mesa-glx
- libgl1-mesa-dev
- libxkbcommon-x11-dev
- ninja-build/xenial-backports
- name: Linux CMake
os: linux
env: BUILD_SYSTEM=cmake_nodep
before_install:
- ls $(pyenv root)/versions
- pyenv global 3.7
- pip3 install meson
addons:
apt:
packages:
- mesa-common-dev
- ninja-build
- libgraphviz-dev
- qt5-default
- libqt5svg5-dev
- qttools5-dev
- name: Linux CMake + Deploy
os: linux
env: BUILD_SYSTEM=cmake DEPLOY=1
dist: xenial
addons:
apt:
packages:
- mesa-common-dev
- libgl1-mesa-glx
- libgl1-mesa-dev
- libxkbcommon-x11-dev
- ninja-build/xenial-backports
#- name: Linux Ubuntu 16.04 # test that Cutter can be built on an old distro using system libraries
# os: linux
# env: BUILD_SYSTEM=cmake_nodep PATH="/usr/bin:$PATH"
# dist: xenial
# addons:
# apt:
# packages:
# - ninja-build
# - libgraphviz-dev
# - qt5-default
# - libqt5svg5-dev
# - qttools5-dev
# - qttools5-dev-tools
# - cmake
# before_install:
# - pyenv install 3.5.2
# - pyenv global 3.5.2
# - pip install meson==0.52.1
- name: macOS QMake + Deploy
os: osx
osx_image: xcode11
env: BUILD_SYSTEM=qmake DEPLOY=1
before_install: ~
- name: macOS CMake
os: osx
osx_image: xcode11
env: BUILD_SYSTEM=cmake
before_install: ~
addons:
homebrew:
brewfile: scripts/Brewfile
update: true # updating brew to get slightly newer meson, 0.54 doesn't work on macOS.
- name: Documentation + Translations + Deploy
os: linux
cache: ~
addons:
apt:
packages:
- doxygen
- libgraphviz-dev
before_install:
- pyenv global 3.7
- pip3 install -U sphinx
- pip3 install -U breathe
- pip3 install -U sphinx-rtd-theme
- pip3 install -U recommonmark
install: ~
before_script: ~
after_success: ~
script:
- cd docs
- make html
before_deploy:
- cd "$TRAVIS_BUILD_DIR"
- openssl aes-256-cbc -K $encrypted_bd0ed4c1fd75_key -iv $encrypted_bd0ed4c1fd75_iv -in scripts/deploy_docs_rsa.enc -out scripts/deploy_docs_rsa -d
- openssl aes-256-cbc -K $encrypted_df6d16737705c_key -iv $encrypted_df6d16737705c_iv -in scripts/deploy_translations_rsa.enc -out scripts/deploy_translations_rsa -d
- chmod 600 scripts/deploy_docs_rsa
- chmod 600 scripts/deploy_translations_rsa
- export GIT_SSH_COMMAND="/usr/bin/ssh -i $TRAVIS_BUILD_DIR/scripts/deploy_docs_rsa"
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
deploy:
skip_cleanup: true
provider: script
script: bash -c "./scripts/deploy_docs.sh; ./scripts/deploy_translations.sh"
on:
repo: radareorg/cutter
branch: translate
sudo: required
dist: bionic
addons:
homebrew:
brewfile: scripts/Brewfile
# update: true
before_install:
- ls $(pyenv root)/versions
- pyenv global 3.7.1
- pip3 install meson
install:
- if [[ "$BUILD_SYSTEM" != "cmake_nodep" ]]; then
scripts/fetch_deps.sh;
source cutter-deps/env.sh;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PATH=/usr/local/opt/llvm/bin:$PATH;
source scripts/prepare_breakpad_macos.sh;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export LD_LIBRARY_PATH="`llvm-config --libdir`:$LD_LIBRARY_PATH";
source scripts/prepare_breakpad_linux.sh;
fi
before_script:
- cd radare2
- if [[ "$BUILD_SYSTEM" == "qmake" ]] || ([[ "$BUILD_SYSTEM" == "cmake" ]] && [[ "$TRAVIS_OS_NAME" == "linux" ]]) ; then
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
INSTALL_TARGET=install sys/install.sh /usr;
else
LDFLAGS=-headerpad_max_install_names INSTALL_TARGET=install sys/install.sh;
fi
fi
- cd ..
script:
- mkdir build
- cd build
- export PKG_CONFIG_PATH="$CUSTOM_BREAKPAD_PREFIX/lib/pkgconfig:$CUSTOM_PYTHON_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$BUILD_SYSTEM" == "qmake" ]]; then
qmake
CUTTER_ENABLE_PYTHON=true
CUTTER_ENABLE_PYTHON_BINDINGS=true
CUTTER_ENABLE_CRASH_REPORTS=true
PREFIX=/usr
../src &&
make -j4;
elif [[ "$BUILD_SYSTEM" == "cmake" ]]; then
cmake
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_PREFIX_PATH="$Qt5_ROOT"
-DPYTHON_LIBRARY="$CUTTER_DEPS_PYTHON_PREFIX/lib/libpython3.6m.so.1.0"
-DPYTHON_INCLUDE_DIR="$CUTTER_DEPS_PYTHON_PREFIX/include/python3.6m"
-DPYTHON_EXECUTABLE="$CUTTER_DEPS_PYTHON_PREFIX/bin/python3"
-DCUTTER_ENABLE_PYTHON=ON
-DCUTTER_ENABLE_PYTHON_BINDINGS=ON
-DCUTTER_ENABLE_CRASH_REPORTS=ON
-DCUTTER_USE_BUNDLED_RADARE2=OFF
-DCUTTER_APPIMAGE_BUILD=ON
-DCMAKE_INSTALL_PREFIX=appdir/usr
../src &&
make -j4;
elif [[ "$BUILD_SYSTEM" == "cmake_nodep" ]]; then
cmake
-DCMAKE_BUILD_TYPE=Release
-DCUTTER_USE_BUNDLED_RADARE2=ON
../src &&
make -j4;
fi
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
if [[ "$BUILD_SYSTEM" == "qmake" ]]; then
qmake
CUTTER_ENABLE_PYTHON=true
CUTTER_ENABLE_PYTHON_BINDINGS=true
SHIBOKEN_EXTRA_OPTIONS=-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
CUTTER_BUNDLE_R2_APPBUNDLE=true
CUTTER_ENABLE_CRASH_REPORTS=true
PYTHON_FRAMEWORK_DIR=$CUTTER_DEPS_PYTHON_FRAMEWORK_DIR
BREAKPAD_FRAMEWORK_DIR=$BREAKPAD_FRAMEWORK_DIR
../src &&
make -j4;
elif [[ "$BUILD_SYSTEM" == "cmake" ]]; then
cmake
-DCMAKE_BUILD_TYPE=Release
-DPYTHON_LIBRARY="$CUTTER_DEPS_PYTHON_PREFIX/lib/libpython3.6m.dylib"
-DPYTHON_INCLUDE_DIR="$CUTTER_DEPS_PYTHON_PREFIX/include/python3.6m"
-DPYTHON_EXECUTABLE="$CUTTER_DEPS_PYTHON_PREFIX/bin/python3"
-DCUTTER_ENABLE_PYTHON=ON
-DCUTTER_ENABLE_PYTHON_BINDINGS=ON
-DSHIBOKEN_EXTRA_OPTIONS=-isystem/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
-DCUTTER_ENABLE_CRASH_REPORTS=ON
-DCUTTER_USE_BUNDLED_RADARE2=ON
-DBREAKPAD_FRAMEWORK_DIR="$BREAKPAD_FRAMEWORK_DIR"
../src &&
make -j4;
fi
fi
after_success:
# Do the release
- export CUTTER_VERSION=$(python ../scripts/get_version.py)
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
lrelease ../src/Cutter.pro &&
mkdir -p Cutter.app/Contents/Resources/translations &&
cp ../src/translations/*.qm Cutter.app/Contents/Resources/translations/ &&
macdeployqt Cutter.app -executable=Cutter.app/Contents/MacOS/Cutter -libpath="../Frameworks" &&
macdeployqt Cutter.app -executable=Cutter.app/Contents/MacOS/Cutter -libpath="../Frameworks" &&
cp -a "$QTDIR/lib/QtDBus.framework" "$QTDIR/lib/QtPrintSupport.framework" Cutter.app/Contents/Frameworks &&
cp -a "$BREAKPAD_FRAMEWORK_DIR/Breakpad.framework" Cutter.app/Contents/Frameworks &&
"$TRAVIS_BUILD_DIR/scripts/appbundle_embed_python.sh" "$CUTTER_DEPS_PYTHON_FRAMEWORK_DIR/Python.framework" Cutter.app Cutter.app/Contents/MacOS/Cutter &&
mv Cutter.app/Contents/MacOS/Cutter Cutter.app/Contents/MacOS/Cutter.bin &&
cp ../src/macos/Cutter.sh Cutter.app/Contents/MacOS/Cutter &&
chmod +x Cutter.app/Contents/MacOS/Cutter &&
mkdir -p Cutter.app/Contents/Resources/r2/share &&
cp -a /usr/local/share/radare2 Cutter.app/Contents/Resources/r2/share/ &&
"$TRAVIS_BUILD_DIR/scripts/r2ghidra.sh" -DCMAKE_INSTALL_PREFIX="`pwd`/Cutter.app/Contents/Resources/r2" -DBUILD_CUTTER_PLUGIN=ON -DCUTTER_INSTALL_PLUGDIR="`pwd`/Cutter.app/Contents/Resources/plugins/native" -DCUTTER_SOURCE_DIR="$TRAVIS_BUILD_DIR" &&
"$TRAVIS_BUILD_DIR/scripts/r2dec.sh" --prefix="`pwd`/Cutter.app/Contents/Resources/r2" &&
mkdir image && cp -a Cutter.app image/ &&
export VOL_NAME="Cutter v${CUTTER_VERSION}" &&
export DMG_TMP_FILE="Cutter-v$CUTTER_VERSION-x64.macOS-tmp.dmg" &&
export DMG_FILE="Cutter-v$CUTTER_VERSION-x64.macOS.dmg" &&
export SIZE=`du -sh "image" | sed 's/\([0-9\.]*\)M\(.*\)/\1/'` &&
export SIZE=`echo "${SIZE} + 10.0" | bc | awk '{print int($1+0.5)}'` &&
hdiutil create -srcfolder image -volname "${VOL_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW -size ${SIZE}M "$DMG_TMP_FILE" &&
export DEVICE=$(hdiutil attach -readwrite -noverify "${DMG_TMP_FILE}" | egrep '^/dev/' | sed 1q | awk '{print $1}') &&
sleep 2 &&
../scripts/prepare_package_ui_macos.sh "Cutter" "${PWD}/../src/macos/cutter_mac_app.png" "${VOL_NAME}" &&
hdiutil detach "${DEVICE}" &&
hdiutil convert "${DMG_TMP_FILE}" -format UDZO -imagekey zlib-level=9 -o "${DMG_FILE}" &&
export FILE_TO_UPLOAD="$DMG_FILE"
; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ $DEPLOY == 1 ]]; then
export VERSION=$CUTTER_VERSION &&
make install &&
cp -r /usr/share/radare2 appdir/usr/share/ &&
"$TRAVIS_BUILD_DIR/scripts/appimage_embed_python.sh" appdir &&
"$TRAVIS_BUILD_DIR/scripts/r2ghidra.sh" -DCMAKE_INSTALL_PREFIX="`pwd`/appdir/usr" -DBUILD_CUTTER_PLUGIN=ON -DCUTTER_SOURCE_DIR="$TRAVIS_BUILD_DIR" &&
"$TRAVIS_BUILD_DIR/scripts/r2dec.sh" --prefix=`pwd`/appdir/usr &&
wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage" &&
chmod a+x linuxdeployqt*.AppImage &&
rm -fv "$TRAVIS_BUILD_DIR/cutter-deps/qt/plugins/imageformats/libqjp2.so" &&
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -executable=./appdir/usr/bin/python3 -bundle-non-qt-libs -no-strip -exclude-libs=libnss3.so,libnssutil3.so,libqjp2.so -ignore-glob=usr/lib/python3.6/**/* -verbose=2 &&
./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -executable=./appdir/usr/bin/python3 -appimage -no-strip -exclude-libs=libnss3.so,libnssutil3.so,libqjp2.so -ignore-glob=usr/lib/python3.6/**/* -verbose=2 &&
find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq &&
export APPIMAGE_FILE="Cutter-v$CUTTER_VERSION-x64.Linux.AppImage" &&
mv Cutter-*-x86_64.AppImage "$APPIMAGE_FILE" &&
export FILE_TO_UPLOAD="$APPIMAGE_FILE"
; fi
deploy:
skip_cleanup: true
provider: releases
draft: true
prerelease: true
tag_name: $TRAVIS_TAG
api_key:
secure: ZXuSX8JXyL0HlJvSIda3ftMkvYsrxoWDcWm2LxO+f0uNFghCHNnISuH/btdipn2mjCBaBQl6/1IK5cg/AZ5OSkiaVsJJqY8kkPsZvR8K+k4oarsr2ApetlLZiZWtydC3J+UyNhsgCt4iuYPsvusANFPZBpVmqT+A5CHS7aPIqP00awbkJYG1uOENe2XVZ0vyotBqU0E7A9f8UO5ps0+qysS8W+NDB+CGLgKLeBfCk3U+IYKGYXcv66xCmSSZ5f7IVIXEjG4voFHGp9XLRY2R/iJgiKQKDbu519vUB3iKPzmLTB/Q9bNz4VMZCREa4SHaLDen730fMHbfm6ZhGZDzXg1DgZoh6RHptWf0WjcHTr1ch8ajpnBMxh/qmoRpaS00FJQMraMT3Il38ekYd+hOhsP58Bj1Db2vjBKopGEHGmVyFQZKuynrdKmpmY+kRNUT3QerIsiAHwHV2QXnMARHYXJrM0T7LNACa2mhiwQD2vNIqLRieIbHbSWgDUrTVTDeII23AAHCzD0YxcCAjSExjun/rc9dJjevgCoBpTM/NHPLCW4big1myx+vRQGPNdlf+dI7igm6bPVWB7znp5uXlI8q5irvqTVtRSvKbcaeDWOz/ki7QgOzaxmGFtaw30hxeY0wFlnSMXc8m42udWLkp/l0b4L0hcoaMTc1TvVU0i4=
file:
- "${FILE_TO_UPLOAD}"
on:
tags: true
condition: $DEPLOY = 1
-7
View File
@@ -1,7 +0,0 @@
{
"recommendations": [
"ms-vscode.cpptools",
"ms-vscode.cmake-tools",
"twxs.cmake"
]
}
-6
View File
@@ -1,6 +0,0 @@
{
"cmake.sourceDirectory": "${workspaceFolder}/src",
"cmake.configureSettings": {
"CUTTER_USE_BUNDLED_RADARE2": "ON"
}
}
+72
View File
@@ -0,0 +1,72 @@
# Agentic Coding Guidelines for the iaito project
## Overview
iaito is the official Qt-based GUI for radare2. It uses qmake for building and requires radare2 and Qt5/6.
## Locations
- Source code is in `./src/` (widgets, dialogs, menus, common, core, plugins)
- Qt project file: `./src/Iaito.pro`
- Plugin interface: `./src/plugins/IaitoPlugin.h`
- Sample plugins: `./src/plugins/sample-cpp/` and `./src/plugins/sample-python/`
- UI forms: `./src/dialogs/*.ui` and `./src/widgets/*.ui`
- Resources: `./src/resources.qrc`, `./src/themes/`
## Formatting Style
- Follow C++ / Qt Creator coding style (see `.clang-format`)
- Indent with **4 spaces** (no tabs)
- Column limit: 100 characters
- Use `make fmt` to format the whole project source
## Coding Rules
- C++20 standard
- Code must be portable across windows, macos and linux
- Use Qt signals/slots for communication between components
- Widgets inherit from `IaitoDockWidget` or `AddressableDockWidget`
- Access radare2 via the `Core()` singleton (defined in `core/Iaito.h`)
- Use `CutterCore::cmd()` and `CutterCore::cmdj()` for r2 commands
## Actions
- Configure: `./configure`
- Build: `make -j8 > /dev/null`
- Never run qmake or compilers directly
- Limit to 8 jobs to avoid resource exhaustion
- Redirect stdout to /dev/null to reduce noise
- Run: `make run`
- Clean: `make clean`
- Install to home: `make user-install`
- Build r2 plugin: `make plugin`
## Dependencies
Requires radare2 installed system-wide:
```sh
git clone https://github.com/radareorg/radare2 && radare2/sys/install.sh
```
Qt5 packages (Debian/Ubuntu):
```sh
sudo apt install qttools5-dev qtbase5-dev libqt5svg5-dev
```
## Adding Widgets
1. Create `.h`, `.cpp`, and `.ui` files in `src/widgets/`
2. Add to `SOURCES`, `HEADERS`, `FORMS` in `src/Iaito.pro`
3. Register in `core/MainWindow.cpp`
## Adding Plugins
- C++ plugins: see `src/plugins/sample-cpp/`
- Python plugins: see `src/plugins/sample-python/`
- Implement `IaitoPlugin` interface from `plugins/IaitoPlugin.h`
## Debugging
- Run with: `R2_DEBUG=1 make run`
- Debug with gdb: `make gdb`
- Debug with lldb: `make lldb`
+20 -15
View File
@@ -1,25 +1,30 @@
# Contributing to Cutter
# Contributing to iaito
There are different ways you can help contributing to Cutter:
Iaito is not in active development, the current focus of the project is in simplicity, reduce
tech debt by removing superfluous, anoying or mainly unused dependencies like python support
or plugins, breakpad, the cmake build system, crash reports or auto-updates features, as long as
the project is under low maintainance mode is good to remove stuff that distract the attention
from the core which is the one that should be handling all that stuff. Iaito focus on exposing
the capabilities of r2 instead of duplicating efforts in a GUI.
There are different ways you can help contributing to Iaito:
## Opening an issue
Make a clear description of the bug/feature, use screenshots, send binaries, etc.
This will help us improve the software for you.
You can create an issue by clicking on [this link](https://github.com/radareorg/cutter/issues/new/choose).
You can create an issue by clicking on [this link](https://github.com/radareorg/iaito/issues/new/choose).
## Contributing to the code
## Submit a Pull Request
Note that cutter is still under development and many parts of the code are to be improved.
The best way is to check the opened issues [here](https://github.com/radareorg/cutter/issues) or discuss with radareorg team.
Please follow our contribution guidelines: https://cutter.re/docs/contributing.html
If you are feeling brave, create a patch by editing the files in github web interface by pressing the pencil
button or fork the repository, create a branch and submit your changes as a pull request.
## Contributing to the documentation
The documentation is something important for newcomers. As of today the documentation can be found [here](https://cutter.re/docs/) and it stands in the [docs](https://github.com/radareorg/cutter/tree/master/docs) folder.
The API Reference is automatically generated from the source code, so it is strongly advised to document your code.
Check issues marked as "Documentation" on our issues [list](https://github.com/radareorg/cutter/issues?q=is%3Aissue+is%3Aopen+label%3ADocumentation).
Feel free to use the radare discord, telegram or irc chats to discuss your ideas, proposals or changes
## Translations
You can help Cutter by adding translations to the project! We use the [Crowdin](https://crowdin.com/project/cutter) platform to help us share translations. Feel free to contribute and add translations to the project. If you need to add a language, ask any radareorg developer.
Translation files are downloaded from the [Crowdin](https://crowdin.com/project/iaito) platform, where many
users can help to review and maintain different languages.
## Backporting
It is somewhat desired to backport features or changes already available in Cutter.
+184
View File
@@ -0,0 +1,184 @@
-include config.mk
ifeq ($(shell uname),Darwin)
BIN=build/iaito.app/Contents/MacOS/iaito
else
BIN=build/iaito
endif
QMAKE_FLAGS+=-config release
#install_name_tool -change /path/to/Qt/lib/QtCore.framework/Versions/4.0/QtCore
# @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore
# plugandpaint.app/Contents/plugins/libpnp_basictools.dylib
ifeq ($(WANT_PYTHON_BINDINGS),1)
QMAKE_FLAGS+=IAITO_ENABLE_PYTHON_BINDINGS=true
endif
ifeq ($(WANT_DEBUGGER),0)
QMAKE_FLAGS+=IAITO_ENABLE_DEBUGGER=false
else
QMAKE_FLAGS+=IAITO_ENABLE_DEBUGGER=true
endif
ifeq ($(WANT_CRASH_REPORTS),1)
QMAKE_FLAGS+=IAITO_ENABLE_CRASH_REPORTS=true
endif
QMAKE_FLAGS+=PREFIX=$(PREFIX)
INDENT_IMAGE_NAME ?= clang-format-image
INDENT_IMAGE_TAG ?= llvm20
INDENT_IMAGE := $(INDENT_IMAGE_NAME):$(INDENT_IMAGE_TAG)
INDENT_FILES := $(shell find src \( -name '*.cpp' -o -name '*.h' \))
CLANG_FORMAT ?= clang-format-20
all: iaito
CXX?=g++
reset:
rm -rf ~/.config/radareorg/iaito.conf
QTLIBS=$(shell grep "^LIBS" build/Makefile | cut -d = -f 2-)
R2LIBS=$(shell pkg-config --cflags --libs r_core)
R2_LIBEXT=$(shell r2 -H R2_LIBEXT)
R2_USER_PLUGINS=$(shell r2 -H R2_USER_PLUGINS)
plugin core_plugin: iaito
SUBLIBS=true $(CXX) build/*.o src/CorePlugin.cpp -shared -fPIC $(QTLIBS) $(R2LIBS) -o build/CorePlugin.$(R2_LIBEXT)
mkdir -p $(R2_USER_PLUGINS)
rm -f $(R2_USER_PLUGINS)/IaitoPlugin.$(R2_LIBEXT)
cp -f build/CorePlugin.$(R2_LIBEXT) $(R2_USER_PLUGINS)/IaitoPlugin.$(R2_LIBEXT)
asan:
export CXXFLAGS=-fsanitize=address ; \
export CFLAGS=-fsanitize=address ; \
export LDFLAGS=-fsanitize=address ; \
$(MAKE) build && $(MAKE) -C build -j4
clean:
rm -f src/ui_*.h
rm -f src/moc_*
rm -rf build
dist:
ifeq ($(shell uname),Darwin)
$(MAKE) -C dist/macos
else
$(MAKE) -C dist/debian
endif
mrproper: clean
git clean -xdf
.PHONY: install run user-install dist macos clean mrproper install-translations
.PHONY: dockindent dockindent-image indent indent-host
.PHONY: install-deeplink uninstall-deeplink
# force qt5 build when QtCreator is installed in user's home
ifeq ($(shell test -x ~/Qt/5.*/clang_64/bin/qmake || echo err),)
QMAKE=~/Qt/5.*/clang_64/bin/qmake
endif
iaito: build
$(MAKE) -C build
build:
mkdir -p build
cd build && $(QMAKE) ../src/Iaito.pro $(QMAKE_FLAGS)
install-man:
mkdir -p "${DESTDIR}${MANDIR}/man1"
for FILE in src/*.1 ; do ${INSTALL_MAN} "$$FILE" "${DESTDIR}${MANDIR}/man1" ; done
install: build
ifeq ($(shell uname),Darwin)
rm -rf $(DESTDIR)/Applications/iaito.app
mkdir -p $(DESTDIR)/Applications
cp -rf build/iaito.app $(DESTDIR)/Applications/iaito.app
mkdir -p $(DESTDIR)/$(PREFIX)/bin
ln -fs '/Applications/iaito.app/Contents/MacOS/iaito' $(DESTDIR)/$(PREFIX)'/bin/iaito'
else
$(MAKE) -C build install INSTALL_ROOT=$(DESTDIR)
# Refresh the desktop DB so the .desktop MimeType registers iaito://
-update-desktop-database "$(DESTDIR)$(PREFIX)/share/applications" 2>/dev/null
endif
$(MAKE) install-man
uninstall:
ifeq ($(shell uname),Darwin)
rm -rf $(DESTDIR)/Applications/iaito.app
rm -rf "$(DESTDIR)/$(PREFIX)/bin/iaito"
else
rm -rf "$(DESTDIR)/$(PREFIX)/share/iaito"
rm -rf "$(DESTDIR)/$(PREFIX)/bin/iaito"
endif
rm -f "${DESTDIR}$(MANDIR)/man1/iaito.1"
-$(MAKE) uninstall-deeplink
user-install: build
ifeq ($(shell uname),Darwin)
rm -rf ${HOME}/Applications/iaito.app
mkdir -p ${HOME}/Applications
cp -rf build/iaito.app ${HOME}/Applications/iaito.app
else
$(MAKE) -C build install INSTALL_ROOT=/ PREFIX=${HOME}/.local
endif
$(MAKE) install-man DESTDIR=/ PREFIX=${HOME}/.local MANDIR=${HOME}/.local/share/man
$(MAKE) install-deeplink
user-uninstall:
$(MAKE) uninstall DESTDIR=/ PREFIX=${HOME}/.local MANDIR=${HOME}/.local/share/man
ifneq ($(shell uname),Darwin)
run: install-desktop-user
endif
run:
rarun2 libpath=$(shell r2 -H R2_LIBDIR) program=$(BIN)
install-desktop-user:
@mkdir -p $(HOME)/.local/share/applications
@mkdir -p $(HOME)/.local/share/icons/hicolor/scalable/apps
@cp -f src/org.radare.iaito.desktop $(HOME)/.local/share/applications/org.radare.iaito.desktop
@cp -f src/img/org.radare.iaito.svg $(HOME)/.local/share/icons/hicolor/scalable/apps/org.radare.iaito.svg
@$(MAKE) install-deeplink
# Register/unregister the iaito:// deep link URI scheme handler
install-deeplink:
ifeq ($(shell uname),Darwin)
sh scripts/deeplink/register.sh "$(DESTDIR)/Applications/iaito.app"
else
sh scripts/deeplink/register.sh
endif
uninstall-deeplink:
sh scripts/deeplink/unregister.sh
gdb:
gdb --args $(BIN)
lldb:
lldb -- $(BIN)
src/translations/README.md:
git clone https://github.com/radareorg/iaito-translations.git src/translations
install-translations: src/translations/README.md
$(MAKE) -C src/translations install PREFIX="$(DESTDIR)/$(PREFIX)"
user-install-translations: src/translations/README.md
$(MAKE) -C src/translations user-install
dockindent:
$(MAKE) dockindent-image
docker run --rm -v "$$PWD:/project" $(INDENT_IMAGE) -i $(INDENT_FILES)
dockindent-image:
docker image inspect $(INDENT_IMAGE) >/dev/null 2>&1 || \
$(MAKE) -C scripts/indent IMAGE_NAME=$(INDENT_IMAGE_NAME) IMAGE_TAG=$(INDENT_IMAGE_TAG)
fmt format indent:
$(MAKE) dockindent
indent-host:
$(CLANG_FORMAT) --version | grep 'version 20.'
$(CLANG_FORMAT) -i $(INDENT_FILES)
+134 -40
View File
@@ -1,49 +1,143 @@
<img width="150" height="150" align="left" style="float: left; margin: 0 10px 0 0;" alt="Cutter logo" src="https://raw.githubusercontent.com/radareorg/cutter/master/src/img/cutter.svg?sanitize=true">
# iaito: use radare2 with one hand!
# Cutter
iaito is the official graphical interface for radare2, a libre reverse engineering framework.
Cutter is a free and open-source reverse engineering framework powered by [radare2](https://github.com/radareorg/radare2) . Its goal is making an advanced, customizable and FOSS reverse-engineering platform while keeping the user experience at mind. Cutter is created by reverse engineers for reverse engineers.
<img width="150" height="150" align="left" style="float: left; margin: 0 30px 0 0;" alt="Iaito logo" src="https://raw.githubusercontent.com/radareorg/iaito/master/src/img/iaito.svg?sanitize=true">
[![Build Status](https://travis-ci.com/radareorg/cutter.svg?branch=master)](https://travis-ci.com/radareorg/cutter)
[![Build status](https://ci.appveyor.com/api/projects/status/s9rkx1dn3uy4bfdx/branch/master?svg=true)](https://ci.appveyor.com/project/radareorg/cutter/branch/master)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/radareorg/cutter.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/radareorg/cutter/alerts/)
* Based on radare2 and Qt-5/6
* Iaito was the original name before being forked as Cutter.
* Use all your favourite r2 plugins and scripts (nothing is specific to iaito)
* Focus on simplicity, parity with commands, features, keybindings
* Forensics, bindiffing, binary patching, .. not just a static disassembler
![Screenshot](https://raw.githubusercontent.com/radareorg/cutter/master/docs/source/images/screenshot.png)
[![Crowdin](https://badges.crowdin.net/iaito/localized.svg)](https://crowdin.com/project/iaito)
[![iaito CI](https://github.com/radareorg/iaito/workflows/iaito%20CI/badge.svg)](https://github.com/radareorg/iaito/actions)
## Learn more at [https://cutter.re](https://cutter.re).
## Downloading a release
Cutter is available for all platforms (Linux, macOS, Windows).
You can download the latest release [here](https://github.com/radareorg/cutter/releases).
* macOS: Download the latest `.dmg` file or use [Homebrew Cask](https://github.com/Homebrew/homebrew-cask) `brew cask install cutter`.
* Windows: Download the latest Zip archive.
* Linux: Download the latest AppImage file. Then just make it executable and run it:
* `chmod +x <appimage_file>`
* `./<appimage_file>`
## Building from sources
To build Cutter on your local machine, please follow this guide: [Building from source](https://cutter.re/docs/building.html)
## Docker
To deploy *cutter* using a pre-built `Dockerfile`, it's possible to use the [provided configuration](docker). The corresponding `README.md` file also contains instructions on how to get started using the docker image with minimal effort.
## Documentation
You can find our documentation in our [website](https://cutter.re/docs/).
## Plugins
Cutter supports both Python and Native C++ plugins. Want to extend Cutter with Plugins? Read the [Plugins](https://cutter.re/docs/plugins) section on our documentation.
### Official and Community Plugins
Our community built many plugins and useful scripts for Cutter such as the native integration of Ghidra decompiler or the plugin to visualize DynamoRIO code coverage. You can find more plugins in the [following list](https://github.com/radareorg/cutter-plugins). Don't hesitate to extend it with your own plugins and scripts for Cutter.
![Screenshot](https://raw.githubusercontent.com/radareorg/iaito/master/screenshots/macos-panels.png)
## Help
The best place to obtain help from *Cutter* developers and community is to contact us on:
Get help, updates, meet the community or discuss about development in these channels:
- **Telegram:** https://t.me/r2cutter
- **IRC:** #cutter on irc.freenode.net
- **Twitter:** [@r2gui](https://twitter.com/r2gui)
- **Discord:** [https://radare.org/discord](https://radare.org/discord)
- **Telegram:** https://t.me/radare
- **Mastodon:** [@radareorg](https://infosec.exchange/@radareorg)
- **Translations:** [crowdin](https://crowdin.com/project/iaito)!
## Installation
There are automated CI builds and [releases](https://github.com/radareorg/iaito/releases) of iaito for Linux, macOS and Windows.
On WSL or Linux you can use these steps to install it with Flatpak:
```sh
sudo flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install flathub org.radare.iaito
flatpak run org.radare.iaito
```
On macOS, you may want to fix the signature
```sh
sudo xattr -c /Applications/iaito.app
sudo codesign --force --deep --sign - /Applications/iaito.app
```
<a href='https://flathub.org/apps/details/org.radare.iaito'><img width='120' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-en.png'/></a>
## Source Builds
### Dependencies
iaito requires [radare2](https://github.com/radareorg/radare2) and qt5 (or qt6):
```sh
$ git clone https://github.com/radareorg/radare2 && radare2/sys/install.sh
```
Install QT on macOS like this:
```sh
brew install qt@5
echo 'export PATH="/opt/homebrew/opt/qt@5/bin:$PATH"' >> ~/.profile
```
On Ubuntu/Debian
```sh
sudo apt install qttools5-dev qttools5-dev-tools qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools libqt5svg5-dev make pkg-config build-essential
```
For QT6:
```sh
sudo apt install qt6-svg-dev
```
### Compilation
```sh
./configure
make
make run
```
On macOS, `make run` launches the app from `build/iaito.app` without installing it.
Registering the `iaito://` URI handler is optional; see [deep links](doc/deeplinks.md#macos).
To install the app in your home:
```sh
make install
```
### Building iaito as an r2 plugin
It is also possible to launch iaito from the r2 shell reusing the Core instance:
```
make plugin
```
The previous command will build iaito, the iaito plugin and copy it it into your home plugin directory.
```
$ r2 /bin/ls
> iaito
...
```
### Translations (Optional)
Note: The flatpak/flathub version already ships the translations as an optional extension.
To install translations please download latest version from [iaito-translations](https://github.com/radareorg/iaito-translations) repo.
To install in your home directory, run the following:
```sh
$ git clone https://github.com/radareorg/iaito-translations.git
$ cd iaito-translations
$ make user-install
```
Alternatively, it this project makefile can be used to install them:
```sh
$ make user-install-translations
OR
$ make install-translations # to install to system
```
### Binaries
Most distros may Checkout the [Releases](https://github.com/radareorg/iaito/releases) page to download the build for Linux, macOS or Windows, and read the notes in case of problems!
As shown below, most distros are packaging iaito already, pick the build you like the most!
[![Linux packages](https://repology.org/badge/vertical-allrepos/iaito.svg?columns=4)](https://repology.org/project/iaito/versions)
Snap:
[![iaito snap](https://snapcraft.io/iaito/badge.svg)](https://snapcraft.io/iaito)
-23
View File
@@ -1,23 +0,0 @@
# Security Policy
## Supported Versions
| Version | Supported |
| ---------------- | ------------------ |
| latest-release | :white_check_mark: |
| * | :x: |
## Reporting a Vulnerability
Security issues in the Cutter repository should be reported by email to security@cutter.re. Your email will be delivered to a small security team that will handle the report. Your email will be acknowledged within 48 hours, and you'll receive a more detailed response to your email within 72 hours indicating the next steps in handling your report.
For your convenience, we accept reports written in one of the languages listed on our [security.txt](https://cutter.re/.well-known/security.txt) page, but we prefer reports in English.
If you have not received a reply to your email within 48 hours, or have not heard from the security team for the past week, there are a few steps you can take (in order):
- Directly contact [Itay Cohen](https://www.megabeets.net/about.html#contact) from the Security Team
- Inform the team over the [public chats](https://cutter.re/#community) that you sent a message regarding a security issue.
**Important:** Don't disclose any information regarding the issue itself in the public chats.
Please note that the Cutter Security team isn't handling security issues on the radare2 repository.
Executable
+46
View File
@@ -0,0 +1,46 @@
#!/bin/sh
#
# Look for the 'acr' tool here: https://github.com/radare/acr
# Clone last version of ACR from here:
# git clone https://github.com/radare/acr
#
# -- pancake
[ -z "$EDITOR" ] && EDITOR=vim
r2pm -h >/dev/null 2>&1
if [ $? = 0 ]; then
echo "Installing the last version of 'acr'..."
r2pm -i acr > /dev/null
r2pm -r acr -h > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Running 'acr -p'..."
r2pm -r acr -p
else
echo "Cannot find 'acr' in PATH"
fi
else
echo "Running acr..."
acr -p
fi
. ./configure
sed \
-e "s,^IAITO_VERSION_MAJOR.*,IAITO_VERSION_MAJOR = ${VERSION_MAJOR}," \
-e "s,^IAITO_VERSION_MINOR.*,IAITO_VERSION_MINOR = ${VERSION_MINOR}," \
-e "s,^IAITO_VERSION_PATCH.*,IAITO_VERSION_PATCH = ${VERSION_PATCH}," \
< src/Iaito.pro > src/Iaito.pro.sed
mv src/Iaito.pro.sed src/Iaito.pro
${EDITOR} .github/workflows/ci.yml
echo
echo "Press enter and add a new changelog entry for the new Flatpak version"
read A
${EDITOR} src/org.radare.iaito.appdata.xml
#V=`./configure -qV | cut -d - -f -1`
# meson rewrite kwargs set project / version "$V"
# if [ -n "$1" ]; then
# echo "./configure $*"
# ./configure $*
#fi
-46
View File
@@ -1,46 +0,0 @@
@ECHO off
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEEXTENSIONS
IF "%VisualStudioVersion%" == "14.0" ( IF NOT DEFINED Platform SET "Platform=X86" )
FOR /F %%i IN ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i
powershell -c "if ('%PLATFORM%' -notin ('x86', 'x64')) {Exit 1}"
IF !ERRORLEVEL! NEQ 0 (
ECHO Unknown platform: %PLATFORM%
EXIT /B 1
)
SET "R2DIST=r2_dist"
SET "BUILDDIR=build_%PLATFORM%"
SET "BREAKPAD_SOURCE_DIR=%CD%\src\breakpad\src\src"
ECHO Preparing directory
RMDIR /S /Q %BUILDDIR%
MKDIR %BUILDDIR%
ECHO Prepare translations
FOR %%i in (src\translations\*.ts) DO lrelease %%i
CD %BUILDDIR%
IF NOT DEFINED CUTTER_ENABLE_CRASH_REPORTS (
SET "CUTTER_ENABLE_CRASH_REPORTS=false"
)
ECHO Building cutter
qmake BREAKPAD_SOURCE_DIR=%BREAKPAD_SOURCE_DIR% CUTTER_ENABLE_CRASH_REPORTS=%CUTTER_ENABLE_CRASH_REPORTS% %* ..\src\cutter.pro -config release
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
nmake
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
ECHO Deploying cutter
MKDIR cutter
COPY release\cutter.exe cutter\cutter.exe
XCOPY /S /I ..\%R2DIST%\share cutter\share
XCOPY /S /I ..\%R2DIST%\lib cutter\lib
DEL cutter\lib\*.lib
COPY ..\%R2DIST%\bin\*.dll cutter\
windeployqt cutter\cutter.exe
FOR %%i in (..\src\translations\*.qm) DO MOVE "%%~fi" cutter\translations
ENDLOCAL
-133
View File
@@ -1,133 +0,0 @@
#!/bin/sh
# This script is a work in progress
#### Constants ####
ERR=0
#### User variables ####
BUILD="$(pwd)/build"
QMAKE_CONF=$*
ROOT_DIR=$(pwd)
check_r2() {
r2 -v >/dev/null 2>&1
if [ $? = 0 ]; then
R2COMMIT=$(r2 -v | tail -n1 | sed "s,commit: \\(.*\\) build.*,\\1,")
SUBMODULE=$(git submodule | grep "radare2" | awk '{print $1}')
if [ "$R2COMMIT" = "$SUBMODULE" ]; then
return 0
fi
fi
return 1
}
find_qmake() {
qmakepath=$(command -v qmake-qt5)
if [ -z "$qmakepath" ]; then
qmakepath=$(command -v qmake)
fi
if [ -z "$qmakepath" ]; then
echo "You need qmake to build Cutter."
echo "Please make sure qmake is in your PATH environment variable."
exit 1
fi
echo "$qmakepath"
}
find_lrelease() {
lreleasepath=$(command -v lrelease-qt5)
if [ -z "$lreleasepath" ]; then
lreleasepath=$(command -v lrelease)
fi
if [ -z "$lreleasepath" ]; then
echo "You need lrelease to build Cutter."
echo "Please make sure lrelease is in your PATH environment variable."
exit 1
fi
echo "$lreleasepath"
}
find_gmake() {
gmakepath=$(command -v gmake)
if [ -z "$gmakepath" ]; then
gmakepath=$(command -v make)
fi
${gmakepath} --help 2>&1 | grep -q gnu
if [ $? != 0 ]; then
echo "You need GNU make to build Cutter."
echo "Please make sure gmake is in your PATH environment variable."
exit 1
fi
echo "$gmakepath"
}
prepare_breakpad() {
OS="$(uname -s)"
if [ -z "$OS" ]; then
echo "Could not identify OS, OSTYPE var is empty. You can try to disable breakpad to avoid this error."
exit 1
fi
if [ "$OS" = "Linux" ]; then
. $ROOT_DIR/scripts/prepare_breakpad_linux.sh
export PKG_CONFIG_PATH="$CUSTOM_BREAKPAD_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
elif [ "$OS" = "Darwin" ]; then
. $ROOT_DIR/scripts/prepare_breakpad_macos.sh
fi
}
# Build radare2
check_r2
if [ $? -eq 1 ]; then
printf "A (new?) version of radare2 will be installed. Do you agree? [Y/n] "
read -r answer
if [ -z "$answer" ] || [ "$answer" = "Y" ] || [ "$answer" = "y" ]; then
R2PREFIX=${1:-"/usr"}
git submodule init && git submodule update
cd radare2 || exit 1
./sys/install.sh "$R2PREFIX"
cd ..
else
echo "Sorry but this script won't work otherwise. Read the README."
exit 1
fi
else
echo "Correct radare2 version found, skipping..."
fi
# Create translations
$(find_lrelease) ./src/Cutter.pro
# Build
if [ "${QMAKE_CONF#*CUTTER_ENABLE_CRASH_REPORTS=true}" != "$QMAKE_CONF" ]; then
prepare_breakpad
fi
mkdir -p "$BUILD"
cd "$BUILD" || exit 1
$(find_qmake) ../src/Cutter.pro "$QMAKE_CONF"
$(find_gmake) -j4
ERR=$((ERR+$?))
# Move translations
mkdir -p "$(pwd)/translations"
find "$ROOT_DIR/src/translations" -maxdepth 1 -type f | grep "cutter_..\.qm" | while read -r SRC_FILE; do
mv "$SRC_FILE" "$(pwd)/translations"
done
# Finish
if [ ${ERR} -gt 0 ]; then
echo "Something went wrong!"
else
echo "Build complete."
printf "This build of Cutter will be installed. Do you agree? [Y/n] "
read -r answer
if [ -z "$answer" ] || [ "$answer" = "Y" ] || [ "$answer" = "y" ]; then
$(find_gmake) install
else
echo "Binary available at $BUILD/Cutter"
fi
fi
cd ..
+10
View File
@@ -0,0 +1,10 @@
PREFIX=@PREFIX@
QMAKE=@QMAKE_BIN@
WANT_CRASH_REPORTS=@WANT_CRASH_REPORTS@
WANT_DEBUGGER=@WANT_DEBUGGER@
DESTDIR?=
MANDIR=@MANDIR@
INSTALL=@INSTALL@
INSTALL_MAN=@INSTALL_MAN@
Vendored Executable
+561
View File
@@ -0,0 +1,561 @@
#!/bin/sh
# This script was automatically generated by ACR v2.2.8
# @author: pancake <nopcode.org>
# @url: http://www.nopcode.org
# @repo: git clone https://github.com/radare/acr
[ -z "${AWK}" ] && AWK=awk
do_remove() {
if [ "${ACR_RMFILES}" ]; then
printf "cleaning temporally files... "
rm -f ${ACR_RMFILES}
echo "done"
fi
}
control_c() {
printf "\n\n^C control-c : script execution interrupted.\n"
do_remove
exit 1
}
trap control_c 2
WANT_QMAKE6=0
WANT_CRASH_REPORTS=0
WANT_DEBUGGER=1
split_host() {
S="$"
while : ; do
ENVWORDS="${ENVWORDS} $1_CPU $1_OS"
STR=`eval "echo ${S}$1"`
SPLIT_CPU="`echo "$STR" | cut -d - -f 1`"
SPLIT_OS="`echo "$STR" | $AWK -F - '{
if ($2=="unknown"){
if (NF<3) { print $2; } else { print $3; }
} else {
if ($2=="linux") { print $2; } else
if (NF<3) { print $2; } else { print $3; }
}
}'`"
eval "$1_CPU=\"$SPLIT_CPU\""
eval "$1_OS=\"$SPLIT_OS\""
shift
[ -z "$1" ] && break
done
}
QUIET=0
be_quiet() {
QUIET=1
}
VPATH=`dirname ${0}`
if [ "${VPATH}" = "." ]; then
WODIS=current
else
if [ "${VPATH}" = "${PWD}" ]; then
VPATH=.
WODIS=current
else
WODIS=crosspath
CURDIR=$PWD
cd $VPATH
VPATH="${PWD}/"
cd $CURDIR
fi
fi
guess_os() {
if [ -e "${VPATH}/config.guess" ]; then
sh ${VPATH}/config.guess
return
fi
CPU="`uname -m | tr 'A-Z' 'a-z' | sed -e 's, ,,g' | cut -d - -f 1`"
OS="`uname -s|tr A-Z a-z`"
uname -r | grep -qE "(Microsoft|WSL)" 2>/dev/null && OS="wsl"
GNU="`uname --help 2>&1 | grep gnu`"
[ "${GNU}" ] && OS="${OS}-gnu"
# normalize CPU
case "${CPU}" in
ppc*|powermac*|powermacintosh*|powerpc*)
if echo "${CPU}" | grep -q '64'; then
CPU=powerpc64
else
CPU=powerpc
fi
;;
*) ;;
esac
VENDOR="unknown"
if [ "${OS}" = "darwin" ]; then
VENDOR=apple
fi
echo "${CPU}-${VENDOR}-${OS}"
}
SEARCHPATH="/usr /usr/local /usr/pkg /sw"
: ${PREFIX:=/usr/local}
CROSSBUILD=0
BUILD=`guess_os`
HOST="${BUILD}"
TARGET="${HOST}"
ETCDIR="/etc"
SYSCONFDIR=""
DESCRIPTION=""
create_environ() {
: ${EPREFIX:="${PREFIX}"}
: ${SPREFIX:="${PREFIX}"}
: ${BINDIR:="${SPREFIX}/bin"}
: ${SBINDIR:="${PREFIX}/sbin"}
: ${ETCDIR:="${SPREFIX}/etc"}
: ${LIBDIR:="${SPREFIX}/lib"}
: ${PKGCFG_LIBDIR:='${exec_prefix}/lib'}
: ${PKGCFG_INCDIR:='${prefix}/include'}
: ${LIBEXECDIR:="${SPREFIX}/libexec"}
: ${INCLUDEDIR:="${SPREFIX}/include"}
: ${DATADIR:="${SPREFIX}/share"}
: ${INFODIR:="${DATADIR}/info"}
: ${MANDIR:="${DATADIR}/man"}
: ${DOCDIR:="${DATADIR}/doc/iaito"}
: ${LOCALSTATEDIR:="${SPREFIX}/var"}
for A in `echo ${PATH} | sed -e 's,:, ,g'` ; do
[ -e "$A"/ginstall ] && : ${INSTALL:="$A"/ginstall} && break
[ -e "$A"/install ] && : ${INSTALL:="$A"/install} && break
done
: ${INSTALL_DIR:=${INSTALL} -d}
: ${INSTALL_DATA:=${INSTALL} -m 644}
: ${INSTALL_SCRIPT:=${INSTALL} -m 755}
: ${INSTALL_PROGRAM:=${INSTALL} -m 755}
: ${INSTALL_PROGRAM_STRIP:=${INSTALL} -m 755 -s}
: ${INSTALL_MAN:=${INSTALL} -m 444}
: ${INSTALL_LIB:=${INSTALL} -m 755 -c}
PKGNAME='iaito' ; VERSION='6.2.6' ; VERSION_MAJOR=6; VERSION_MINOR=2; VERSION_PATCH=6; VERSION_NUMBER=60206; CONTACT_MAIL="[email protected]" ; CONTACT_NAME="pancake" ; CONTACT="pancake <[email protected]>" ;
}
show_usage() {
cat <<EOF2
'configure' configures iaito-6.2.6 to adapt to many kinds of systems.
Usage: ./configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
-r, --report show what libs/programs require to work
-q, --quiet be quiet, less verbose (see ./configure -qV)
-V, --version display version information and exit
Installation directories:
--exec-prefix=EPREFIX install arch-dependent files in EPREFIX [PREFIX]
--prefix=PREFIX install arch-independent files in PREFIX [/usr/local]
--sandbox=SPREFIX sandbox prefix directory: SPREFIX [PREFIX]
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--datadir=DIR read-only architecture-independent data [PREFIX/share]
--docdir=DIR documentation directory [DATADIR/doc/iaito]
--includedir=DIR C header files [PREFIX/include]
--infodir=DIR info documentation [DATADIR/info]
--libexecdir=DIR program executables [EPREFIX/libexec]
--libdir=DIR object code libraries [EPREFIX/lib]
--libpath=DIR set rpath/libname-path to linker
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--mandir=DIR man documentation [DATADIR/man]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--etcdir=DIR same as --sysconfdir (/etc)
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
--target=TARGET configure for building compilers for TARGET [HOST]
EOF2
printf "
Optional Features:
--with-qmake6 ignore qmake in path when qmake6 is found
--with-crash-reports handle crashes nicely
--without-debugger native support for debugging
"
printf "
Some influential environment variables:
CXX C++ compiler command
CXXFLAGS C++ compiler flags
"
printf "
Report bugs to: pancake <[email protected]>"
echo ""
exit 0
}
take_environ() {
: ${SH:=/bin/sh}
: ${CPP:=cpp}
: ${CXX:=c++}
: ${PREFIX:=/usr/local/}
}
ochof() {
[ "$QUIET" = 1 ] && return
printf "$*"
}
ocho() {
[ "$QUIET" = 1 ] && return
echo "$*"
}
show_version() {
if [ "$QUIET" = 1 ]; then
echo "6.2.6"
exit 0
fi
echo "iaito-6.2.6 configuration script done with acr v2.2.8.
The 'Free Software Foundation' message is only for autodetection.
Originally written by pancake <nopcode.org>."
exit 0
}
parse_options() {
flag=`echo $1| cut -d = -f 1`
value=`echo $1| $AWK 'BEGIN{FS="=";}{print $2}'`
flag2=`echo $flag|cut -f2- -d -| sed -e 's,-,_,g' -e 's,^_,,g'|tr '[a-z]' '[A-Z]'`
if [ "${TARGET_OS}" = "darwin" ]; then
LIBPATH=-Wl,-install_name,
else
LIBPATH=-Wl,-R
fi
case $flag in
-h|--help|--hel|--h|--he|-help)
show_usage ; ;;
-qV|-quiet-version|--quiet-version)
be_quiet
show_version ; ;;
-q|-quiet|--quiet)
be_quiet ; ;;
-V|-version|--version)
show_version ; ;;
-r|--r|--report)
echo "PKGNAME: iaito"
echo "VERSION: 6.2.6"
echo "AUTHOR: pancake"
echo "EMAIL: [email protected]"
echo "LANGS: c++"
echo "PKGCONFIG: r_core"
echo "FLAGS: --with-qmake6 --with-crash-reports --without-debugger"
exit 0
;;
--cache-file)
# ignored: acr have no cache
;;
--build)
BUILD="$value"; split_host BUILD ; ;;
--host)
CROSSBUILD=1 # XXX
HOST="$value"; split_host HOST ; ;;
--target)
TARGET="$value"; split_host TARGET ; ;;
--prefix)
PREFIX="$value"; ;;
--exec-prefix)
EPREFIX="$value"; ;;
--sandbox|--sprefix)
SPREFIX="$value"; ;;
--bindir)
BINDIR="$value"; ;;
--sbindir)
SBINDIR="$value"; ;;
--libexecdir)
LIBEXECDIR="$value"; ;;
--docdir)
DOCDIR="$value"; ;;
--datadir)
DATADIR="$value"; ;;
--sysconfdir)
SYSCONFDIR="$value"
ETCDIR="$value"; ;;
--etcdir)
SYSCONFDIR="$value"
ETCDIR="$value"; ;;
--sharedstatedir)
SHAREDSTATEDIR="$value"; ;;
--localstatedir)
LOCALSTATEDIR="$value"; ;;
--libdir)
LIBDIR="$value"
PKGCFG_LIBDIR="$value"; ;;
--libpath)
LDFLAGS="${LDFLAGS} ${LIBPATH}$value"; ;;
--includedir)
PKGCFG_INCDIR="$value"
INCLUDEDIR="$value"; CFLAGS="${CFLAGS} -I$value"; ;;
--infodir)
INFODIR="$value"; ;;
--mandir)
MANDIR="$value"; ;;
"--with-qmake6") WANT_QMAKE6="1"; ;;
"--with-crash-reports") WANT_CRASH_REPORTS="1"; ;;
"--without-debugger") WANT_DEBUGGER="0"; ;;
*) if [ "$value" ]; then eval "`echo $flag2=$value`" ;
else echo ; echo "WARNING: Unknown flag '$flag'." >&2 ; echo ; fi ;;
esac
}
# MAIN #
take_environ
split_host BUILD HOST TARGET
[ -z "$ACRHOOK" ] && ACRHOOK=./configure.hook
[ -e "$ACRHOOK" ] && . ${ACRHOOK}
while : ; do
[ -z "$1" ] && break
parse_options "$1"
shift
done
ENVWORDS="MANDIR DESCRIPTION INFODIR LIBDIR INCLUDEDIR LOCALSTATEDIR ETCDIR SYSCONFDIR DATADIR DOCDIR LIBEXECDIR SBINDIR BINDIR EPREFIX PREFIX SPREFIX TARGET HOST BUILD INSTALL INSTALL_LIB INSTALL_MAN INSTALL_PROGRAM INSTALL_PROGRAM_STRIP INSTALL_DIR INSTALL_SCRIPT INSTALL_DATA HOST_OS HOST_CPU BUILD_OS BUILD_CPU TARGET_OS TARGET_CPU VERSION VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_NUMBER PKGCFG_LIBDIR PKGCFG_INCDIR PKGNAME VPATH CONTACT CONTACT_NAME CONTACT_MAIL CXX CXXFLAGS LDFLAGS HAVE_LANG_CXX CPP PKGCONFIG HAVE_R2 R2 R2_CFLAGS R2_LDFLAGS HAVE_PKGCFG_R_CORE HAVE_QMAKE QMAKE HAVE_QMAKE6 QMAKE6 WANT_QMAKE6 QMAKE_BIN WANT_CRASH_REPORTS WANT_DEBUGGER"
create_environ
ocho "checking build system type... ${BUILD}"
ocho "checking host system type... ${HOST}"
ocho "checking target system type... ${TARGET}"
[ "${CROSSBUILD}" = 1 ] && echo "using crosscompilation mode."
#split_host BUILD HOST TARGET
[ -n "${prefix}" ] && PREFIX="${prefix}"
ocho "checking for working directories... ${WODIS}"
ocho "using prefix '${PREFIX}'"
ACR_RMFILES=" test.c test.cxx a.out a.exe"
COMPILER=CXX
HAVE_LANG_CXX=1
ochof "checking for c++ compiler... "
if [ "${CROSSBUILD}" = 1 ]; then
(command -v ${HOST}-${CXX} 2>&1 >/dev/null)
if [ "$?" = 0 ]; then CXX="${HOST}-${CXX}"; fi
fi
echo "#include <iostream>" > test.cxx
echo "int main(){ std::cout << 1; return 0;}" >> test.cxx
(exec ${CXX} ${CXXFLAGS} ${LDFLAGS} test.cxx -lstdc++ >/dev/null 2>&1)
if [ $? = 0 ]; then echo ${CXX}; else
HAVE_LANG_CXX=0
echo no
echo "ERROR: ${CXX} cannot create executables" >&2 ;
do_remove
exit 1
fi
ochof "checking for cpp... "
if [ "${CROSSBUILD}" = 1 ]; then
(exec ${HOST}-${CPP} --help >/dev/null 2>&1)
[ $? = 0 ] && CPP="${HOST}-${CPP}"
fi
(echo "int main(int ac, char **av){return 0;}" | ${CPP} >/dev/null 2>&1)
if [ 0 = 0 ]; then echo ${CPP}; else
echo "ERROR: ${CPP} cannot parse sources"; fi
ochof "checking for pkg-config... "
ENVWORDS="${ENVWORDS} HAVE_PKGCONFIG"
if [ -n "$PKGCONFIG" ]; then
if [ -x "$PKGCONFIG" ]; then
_HAVE_PKGCONFIG="${PKGCONFIG}"
else
ocho "PKGCONFIG env is not executable"
PKGCONFIG=""
fi
else
IFS=:
for A in ${PATH} ; do
if [ -x "${A}/pkg-config" ]; then
PKGCONFIG="${A}/pkg-config"
elif [ -x "${A}/pkgconf" ]; then
PKGCONFIG="${A}/pkgconf"
else
continue
fi
break
done
unset IFS
fi
if [ -n "${PKGCONFIG}" ]; then
ocho ${PKGCONFIG}
HAVE_PKGCONFIG=1
else
HAVE_PKGCONFIG=0
echo "Cannot find pkg-config or pkgconf in PATH" >&2
exit 1
ocho no; fi
ochof "checking for r2... "
if [ -x "${R2}" ]; then
FIND=${R2}
else
FIND=""
IFS=:
for A in ${PATH} ; do
if [ -x "${A}/r2" ]; then
FIND="${A}/r2"
break;
fi
done
unset IFS
fi
if [ -n "${FIND}" ]; then
ocho ${FIND};
HAVE_R2=1
R2=${FIND}
else
HAVE_R2=0
R2=r2
if [ "" = 1 ]; then
echo "Cannot find r2" >&2
else
echo no
fi
echo "error: This program is required." >&2
exit 1 ; fi
if [ -z "${PKGCONFIG}" ]; then pkg-config --version >/dev/null 2>&1 ; if [ 0 = 0 ]; then PKGCONFIG=pkg-config ; else PKGCONFIG=pkgconf ; fi; fi
type ${PKGCONFIG} > /dev/null 2>&1 || echo "ERROR: Cannot find valid PKGCONFIG, pkg-config or pkgconf in PATH"
echo 'Using PKGCONFIG: '${PKGCONFIG}
printf 'checking pkg-config flags for r_core... '
tmp=`${PKGCONFIG} --cflags r_core 2>/dev/null`
if [ $? != 0 ]; then echo no ; HAVE_PKGCFG_R_CORE=0;
R2_CFLAGS='';R2_LDFLAGS='';
echo 'This package is required'
exit 1
else
R2_CFLAGS=$tmp;
tmp=`${PKGCONFIG} --libs r_core 2>/dev/null`
if [ $? = 0 ]; then
echo yes; HAVE_PKGCFG_R_CORE=1;
R2_LDFLAGS=$tmp; fi; fi
ochof "checking for qmake... "
if [ -x "${QMAKE}" ]; then
FIND=${QMAKE}
else
FIND=""
IFS=:
for A in ${PATH} ; do
if [ -x "${A}/qmake" ]; then
FIND="${A}/qmake"
break;
fi
done
unset IFS
fi
if [ -n "${FIND}" ]; then
ocho ${FIND};
HAVE_QMAKE=1
QMAKE=${FIND}
else
HAVE_QMAKE=0
QMAKE=qmake
if [ "" = 1 ]; then
echo "Cannot find qmake" >&2
else
echo no
fi ; fi
ochof "checking for qmake6... "
if [ -x "${QMAKE6}" ]; then
FIND=${QMAKE6}
else
FIND=""
IFS=:
for A in ${PATH} ; do
if [ -x "${A}/qmake6" ]; then
FIND="${A}/qmake6"
break;
fi
done
unset IFS
fi
if [ -n "${FIND}" ]; then
ocho ${FIND};
HAVE_QMAKE6=1
QMAKE6=${FIND}
else
HAVE_QMAKE6=0
QMAKE6=qmake6
if [ "" = 1 ]; then
echo "Cannot find qmake6" >&2
else
echo no
fi ; fi
if [ "$WANT_QMAKE6" = "1" ]; then
if [ "$HAVE_QMAKE6" = "1" ]; then
QMAKE_BIN="${QMAKE6}"
else
case "$undefined_variable" in 0|"") echo ; echo "ERROR: Missing qmake6" >&2 ; echo ; exit 1 ;; esac; fi
else
if [ "$HAVE_QMAKE" = "1" ]; then
QMAKE_BIN="${QMAKE}"; fi; fi
if [ "$QMAKE_BIN" = """" ]; then
case "$undefined_variable" in 0|"") echo ; echo "ERROR: Missing qmake" >&2 ; echo ; exit 1 ;; esac; fi
WANT_CRASH_REPORTS="0"
SEDFLAGS=" -e '"
COUNT=0
for A in ${ENVWORDS} ; do
[ "${A}" = VPATH ] && continue
[ "${A}" = srcdir ] && continue
eval "VAR=\$${A}"
case "" in
mingw*|cygwin*|msys*)
VAR="`echo ${VAR} | sed -e 's/\\/\\\\/g' -e 's/\,/\\\,/g'`"
;;
*)
VAR="`echo ${VAR} | sed -e 's/\,/\\\,/g'`"
;;
esac
[ $COUNT = 10 ] && COUNT=0 && SEDFLAGS="${SEDFLAGS}' -e '"
COUNT=$(($COUNT+1))
SEDFLAGS="${SEDFLAGS}s,@${A}@,${VAR},g;"
done
SEDFLAGS="${SEDFLAGS}'"
for A in config.mk ; do # SUBDIRS
if [ -f "${VPATH}/${A}.acr" ]; then
SD_TARGET=${A}
else
if [ -d "${VPATH}/${A}" ]; then
SD_TARGET=${A}/Makefile
mkdir -p ${A}
else
echo "ERROR: Cannot find ${VPATH}/${A}.acr" >&2
exit 1
fi
fi
ocho "creating ${SD_TARGET}"
[ "${VPATH}" != '.' ] && mkdir -p $(echo ${A} | sed -e "s,/`basename ${A}`$,,g")
cat ${VPATH}/${SD_TARGET}.acr | \
eval sed -e "s,@VPATH@,${VPATH}/${A},g" ${SEDFLAGS} > ${SD_TARGET}.tmp
for A in ${ENVWORDS}; do
VALUE=`eval echo "$"${A}`
if [ "$VALUE" = 0 ]; then ## FALSE
MARK="##${A}##"
if [ -n "`grep \"${MARK}\" ${SD_TARGET}.tmp`" ]; then
mv ${SD_TARGET}.tmp ${SD_TARGET}.tmp2
cat ${SD_TARGET}.tmp2 | MARK=$MARK $AWK 'BEGIN{a=0;}{if($1==ENVIRON["MARK"]){if(a)a=0;else a=1}else{if(!a)print;}}' > ${SD_TARGET}.tmp
fi
fi
done
mv ${SD_TARGET}.tmp ${SD_TARGET} && rm -f ${SD_TARGET}.tmp2
if [ ! $? = 0 ]; then echo Cannot write target file ; control_c ; fi
done
do_remove
if [ "$QUIET" = 0 ]; then
echo
echo "Final report:"
for A in R2 QMAKE_BIN ; do
eval VAL="\$${A}"
[ -z "${VAL}" ] && VAL="\"\""
echo " - ${A} = ${VAL}"
done
fi
+40
View File
@@ -0,0 +1,40 @@
PKGNAME iaito
VERSION 6.2.6
CONTACT pancake ; [email protected]
LANG_CXX!
USE_PKGCONFIG!
CHKPRG! R2 r2
PKGCFG! R2_CFLAGS R2_LDFLAGS r_core
CHKPRG QMAKE qmake
CHKPRG QMAKE6 qmake6
(( CHKPRG! LRELEASE lrelease ))
ARG_WITH WANT_QMAKE6 qmake6 ignore qmake in path when qmake6 is found ;
IFEQ WANT_QMAKE6 1 ; {
IFEQ HAVE_QMAKE6 1 ; {
QMAKE_BIN = ${QMAKE6} ;
}{
DIENOW Missing qmake6 ;
}
}{
IFEQ HAVE_QMAKE 1 ; {
QMAKE_BIN = ${QMAKE} ;
}
}
IFEQ QMAKE_BIN "" ; {
DIENOW Missing qmake ;
}
WANT_CRASH_REPORTS = 0 ;
ARG_WITH WANT_CRASH_REPORTS crash-reports handle crashes nicely ;
ARG_WITHOUT WANT_DEBUGGER debugger native support for debugging ;
SUBDIRS config.mk ;
REPORT R2 QMAKE_BIN ;
+37
View File
@@ -0,0 +1,37 @@
@ECHO off
SETLOCAL ENABLEDELAYEDEXPANSION
SETLOCAL ENABLEEXTENSIONS
IF "%VisualStudioVersion%" == "14.0" ( IF NOT DEFINED Platform SET "Platform=X86" )
FOR /F %%i IN ('powershell -c "\"%Platform%\".toLower()"') DO SET PLATFORM=%%i
powershell -c "if ('%PLATFORM%' -notin ('x86', 'x64')) {Exit 1}"
IF !ERRORLEVEL! NEQ 0 (
ECHO Unknown platform: %PLATFORM%
EXIT /B 1
)
SET "R2DIR=radare2"
SET "BUILDDIR=build_%PLATFORM%"
ECHO Prepare translations
IF NOT EXIST "src\translations\NUL" (
git clone https://github.com/radareorg/iaito-translations.git src/translations
)
FOR %%i in (src\translations\*.ts) DO lrelease %%i
ECHO Preparing directory
rem MOVE radare2 %R2DIR%
IF NOT EXIST %BUILDDIR% (
MKDIR %BUILDDIR%
)
CD %BUILDDIR%
IF NOT DEFINED IAITO_ENABLE_CRASH_REPORTS (
SET "IAITO_ENABLE_CRASH_REPORTS=false"
)
ECHO Building iaito
qmake BREAKPAD_SOURCE_DIR=%BREAKPAD_SOURCE_DIR% IAITO_ENABLE_CRASH_REPORTS=%IAITO_ENABLE_CRASH_REPORTS% %* ..\src\iaito.pro -config release
COPY iaito_resource.rc ..\src
IF !ERRORLEVEL! NEQ 0 EXIT /B 1
-138
View File
@@ -1,138 +0,0 @@
set(CUTTER_DEPS "${CMAKE_CURRENT_SOURCE_DIR}/../cutter-deps")
unset(RZ_GHIDRA_PREFIX_PATH)
################################################
# Windows
################################################
if(WIN32)
set(CPACK_GENERATOR "ZIP")
set(RIZIN_INSTALL_PLUGDIR "lib/plugins")
if (CUTTER_PACKAGE_DEPENDENCIES)
if (CUTTER_ENABLE_PYTHON)
if (CUTTER_ENABLE_DEPENDENCY_DOWNLOADS)
set(CPACK_INSTALL_SCRIPTS ${CMAKE_CURRENT_SOURCE_DIR}/WindowsBundlePython.cmake)
endif()
find_package(PythonInterp REQUIRED)
install(DIRECTORY ${CUTTER_DEPS}/pyside/lib/site-packages DESTINATION "python${PYTHON_VERSION_MAJOR}${PYTHON_VERSION_MINOR}")
install(FILES ${CUTTER_DEPS}/pyside/bin/shiboken2.abi3.dll ${CUTTER_DEPS}/pyside/bin/pyside2.abi3.dll DESTINATION .)
endif()
install(SCRIPT WindowsBundleQt.cmake)
endif()
if (CUTTER_PACKAGE_R2DEC AND CUTTER_ENABLE_DEPENDENCY_DOWNLOADS)
install(CODE "
set(ENV{RZ_ALT_SRC_DIR} 1)
set(ENV{PATH} \"\${CMAKE_INSTALL_PREFIX};\$ENV{PATH}\")
execute_process(COMMAND powershell \"${CMAKE_CURRENT_SOURCE_DIR}/bundle_r2dec.ps1\" \"\${CMAKE_INSTALL_PREFIX}\"
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
RESULT_VARIABLE SCRIPT_RESULT)
if (SCRIPT_RESULT)
message(FATAL_ERROR \"Failed to package r2dec\")
endif()
")
endif()
endif()
################################################
# macOS
################################################
if(APPLE)
set(CPACK_GENERATOR "Bundle")
set(CPACK_BUNDLE_NAME "Cutter")
set(ICON "Cutter")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/macos/Info.plist.in" "${CMAKE_CURRENT_BINARY_DIR}/macos/Info.plist")
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_BINARY_DIR}/macos/Info.plist")
set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/macos/cutter.icns")
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_CURRENT_SOURCE_DIR}/macos/cutter_mac_app.png")
set(CPACK_DMG_DS_STORE "${CMAKE_CURRENT_SOURCE_DIR}/macos/DS_Store_ForDMGBackground")
find_program(MACDEPLOYQT_PATH macdeployqt HINTS "${Qt5_DIR}/../../../bin")
if(NOT MACDEPLOYQT_PATH)
message(FATAL_ERROR "Failed to find macdeployqt")
endif()
unset(ADJUST_RIZIN_LIBS)
foreach(_lib ${RZ_LIBS})
list(APPEND ADJUST_RIZIN_LIBS "${RIZIN_INSTALL_DIR}/lib/lib${_lib}.dylib")
endforeach()
if(CUTTER_PACKAGE_DEPENDENCIES AND CUTTER_ENABLE_PYTHON)
set(EMBED_PYTHON_SH "${CMAKE_CURRENT_SOURCE_DIR}/appbundle_embed_python.sh")
set(PYTHON_FRAMEWORK_DIR "${CUTTER_DEPS}/python/Python.framework")
set(PYSIDE_PREFIX "${CUTTER_DEPS}/pyside")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/MacOSBundlePython.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/MacOSBundlePython.cmake" @ONLY)
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/MacOSBundlePython.cmake")
endif()
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/MacOSSetupBundle.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/MacOSSetupBundle.cmake" @ONLY)
install(SCRIPT "${CMAKE_CURRENT_BINARY_DIR}/MacOSSetupBundle.cmake")
get_filename_component(QT_PREFIX "${MACDEPLOYQT_PATH}/../.." ABSOLUTE)
list(APPEND RZ_GHIDRA_PREFIX_PATH "${QT_PREFIX}")
set(RIZIN_INSTALL_PLUGDIR "share/rizin/plugins") # escaped backslash on purpose, should be evaluated later
endif()
################################################
# rz-ghidra
################################################
if(CUTTER_PACKAGE_RZ_GHIDRA)
if(CUTTER_ENABLE_DEPENDENCY_DOWNLOADS)
# Currently using external project only for downloading source
# It neeeds to link against compiled cutter so for now build it using custom install script.
# That way rz-ghidra build process is the same as with any other external plugin built against
# installed Cutter.
ExternalProject_Add(rz-ghidra
GIT_REPOSITORY https://github.com/rizinorg/rz-ghidra
GIT_TAG master
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)
endif()
if (WIN32)
set (GHIDRA_OPTIONS "
\"-DRIZIN_INSTALL_PLUGDIR=\${CMAKE_INSTALL_PREFIX}/${RIZIN_INSTALL_PLUGDIR}\"
-DCUTTER_INSTALL_PLUGDIR=plugins/native")
elseif (APPLE)
set (GHIDRA_OPTIONS "
\"-DRIZIN_INSTALL_PLUGDIR=\${CMAKE_INSTALL_PREFIX}/${RIZIN_INSTALL_PLUGDIR}\"
-DCUTTER_INSTALL_PLUGDIR=plugins/native")
else()
set (GHIDRA_OPTIONS "")
endif()
install(CODE "
execute_process(
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/rz-ghidra-prefix/src/rz-ghidra-build
RESULT_VARIABLE SCRIPT_RESULT
COMMAND \${CMAKE_COMMAND}
../rz-ghidra
-DCMAKE_BUILD_TYPE=Release
\"-DCMAKE_PREFIX_PATH=\${CMAKE_INSTALL_PREFIX};\${CMAKE_INSTALL_PREFIX}/include/librz;\${CMAKE_INSTALL_PREFIX}/include/librz/sdb;${RZ_GHIDRA_PREFIX_PATH}\"
-DCMAKE_INSTALL_PREFIX=\${CMAKE_INSTALL_PREFIX}
${GHIDRA_OPTIONS}
-DBUILD_CUTTER_PLUGIN=ON
-DBUILD_SLEIGH_PLUGIN=OFF
-G Ninja
)
if (SCRIPT_RESULT)
message(FATAL_ERROR \"Failed to configure rz-ghidra\")
endif()
execute_process(WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/rz-ghidra-prefix/src/rz-ghidra-build
RESULT_VARIABLE SCRIPT_RESULT
COMMAND \${CMAKE_COMMAND} --build . --target install
)
if (SCRIPT_RESULT)
message(FATAL_ERROR \"Failed to install rz-ghidra plugin\")
endif()
")
endif()
include(CPack)
-20
View File
@@ -1,20 +0,0 @@
set(EMBED_PYTHON_SH "@EMBED_PYTHON_SH@")
set(PYTHON_FRAMEWORK_DIR "@PYTHON_FRAMEWORK_DIR@")
set(PYSIDE_PREFIX "@PYSIDE_PREFIX@")
get_filename_component(BUNDLE_PATH "${CMAKE_INSTALL_PREFIX}/../.." ABSOLUTE)
set(ENV{PKG_CONFIG_PATH} "${PYSIDE_PREFIX}/lib/pkgconfig:$ENV{PKG_CONFIG_PATH}")
# TODO: instead of calling a shellscript, implement the whole thing in cmake
execute_process(COMMAND
"${EMBED_PYTHON_SH}"
"${PYTHON_FRAMEWORK_DIR}"
"${BUNDLE_PATH}"
"${BUNDLE_PATH}/Contents/MacOS/Cutter"
RESULT_VARIABLE SCRIPT_RESULT)
if(SCRIPT_RESULT)
message(FATAL_ERROR "Failed to bundle python")
endif()
+8 -15
View File
@@ -3,10 +3,9 @@ include(BundleUtilities)
set(MACDEPLOYQT_PATH "@MACDEPLOYQT_PATH@")
set(INFO_PLIST_PATH "@CPACK_BUNDLE_PLIST@")
set(ADJUST_RIZIN_LIBS "@ADJUST_RIZIN_LIBS@")
set(CUTTER_ENABLE_CRASH_REPORTS "@CUTTER_ENABLE_CRASH_REPORTS@")
set(IAITO_ENABLE_CRASH_REPORTS "@IAITO_ENABLE_CRASH_REPORTS@")
set(Breakpad_LINK_LIBRARIES "@Breakpad_LINK_LIBRARIES@")
set(CUTTER_PACKAGE_DEPENDENCIES "@CUTTER_PACKAGE_DEPENDENCIES@")
set(CUTTER_ENABLE_PYTHON "@CUTTER_ENABLE_PYTHON@")
set(IAITO_PACKAGE_DEPENDENCIES "@IAITO_PACKAGE_DEPENDENCIES@")
macro(run_or_die)
execute_process(${ARGV} RESULT_VARIABLE PROC_RESULT)
@@ -36,10 +35,10 @@ endforeach()
foreach(_lib ${ADJUST_RIZIN_LIBS})
get_filename_component(_lib "${_lib}" REALPATH)
get_filename_component(_name "${_lib}" NAME)
# Cutter reference to lib
# Iaito reference to lib
run_or_die(COMMAND install_name_tool
-change "${_lib}" "@rpath/${_name}"
"${EXECUTABLE_DIR}/Cutter")
"${EXECUTABLE_DIR}/Iaito")
# lib LC_ID_DYLIB
run_or_die(COMMAND install_name_tool
-id "@rpath/${_name}"
@@ -57,21 +56,15 @@ endforeach()
# Add rpaths because macdeployqt fails to do that properly
run_or_die(COMMAND install_name_tool
-add_rpath "@executable_path/../Frameworks"
"${EXECUTABLE_DIR}/Cutter")
"${EXECUTABLE_DIR}/Iaito")
run_or_die(COMMAND install_name_tool
-add_rpath "@executable_path/../Resources/lib"
"${EXECUTABLE_DIR}/Cutter")
"${EXECUTABLE_DIR}/Iaito")
set(MACDEPLOYQT_COMMAND "${MACDEPLOYQT_PATH}" "${BUNDLE_PATH}" "-verbose=2" "-libpath=${CMAKE_INSTALL_PREFIX}/lib")
message("Running macdeployqt \"${MACDEPLOYQT_COMMAND}\"")
run_or_die(COMMAND ${MACDEPLOYQT_COMMAND}) # First run
if (CUTTER_PACKAGE_DEPENDENCIES AND CUTTER_ENABLE_PYTHON)
file(REAL_PATH "${FRAMEWORK_DIR}/Python.framework/Python" _python_lib_path)
message("Python lib ${_python_lib_path}")
list(APPEND MACDEPLOYQT_COMMAND "-executable=${_python_lib_path}")
endif()
# Qt plugins are not getting deployed on first macdeployqt run. Runing twice helps.
# If python is added as additional executable in first run it also breaks plugin copying.
# Qt plugins are not getting deployed on first macdeployqt run. Running twice helps.
run_or_die(COMMAND ${MACDEPLOYQT_COMMAND}) # Second run
# Clean up the mess that macdeployqt made (duplicate rz libs, we only want the ones in the prefix)
@@ -81,7 +74,7 @@ foreach(_lib ${ADJUST_RIZIN_LIBS})
file(REMOVE "${BUNDLE_PATH}/Contents/Frameworks/${_name}")
endforeach()
if (CUTTER_ENABLE_CRASH_REPORTS)
if (IAITO_ENABLE_CRASH_REPORTS)
message("Copying Breakpad ${Breakpad_LINK_LIBRARIES}")
set(_breakpad_lib "Versions/A/Breakpad")
copy_resolved_framework_into_bundle("${Breakpad_LINK_LIBRARIES}/${_breakpad_lib}" "${FRAMEWORK_DIR}/Breakpad.framework/${_breakpad_lib}")
+11
View File
@@ -0,0 +1,11 @@
NAME=iaito
SECTION=editors
PRIORITY=optional
DEPENDS=$(shell ../getpkgversions.sh radare2), libqt6core6 (>= 6.2.4), libqt6gui6 (>= 6.2.4), libqt6widgets6 (>= 6.2.4), libqt6network6 (>= 6.2.4), libqt6svg6 (>= 6.2.4), libqt6svgwidgets6 (>= 6.2.4), qt6-qpa-plugins (>= 6.2.4)
MAINTAINER=pancake <[email protected]>
ARCH?=amd64
VERSION=$(shell ../../../configure -qV)
ifeq ($(VERSION),)
error:
@echo Cannot retrieve version number from r2
endif
+8
View File
@@ -0,0 +1,8 @@
all:
make -C iaito
clean:
make -C iaito clean
mrproper:
make -C iaito mrproper
+137
View File
@@ -0,0 +1,137 @@
# Create .deb without using dpkg tools.
#
# Author: Tim Wegener <[email protected]>
#
# Use 'include deb_hand.mak' after defining the user variables in a local
# makefile.
#
# The 'data' rule must be customised in the local make file.
# This rule should make a 'data' directory containing the full file
# layout of the installed package.
#
# This makefile will create a debian-binary file a control directory and a
# a build directory in the current directory.
# Do 'make clobber' to remove these generated files.
#
# Destination:
# PACKAGE_DIR - directory where package (and support files) will be built
# defaults to the current directory
#
# Sources:
# SOURCE_DIR - directory containing files to be packaged
# ICON_SOURCE - 26x26 icon file for maemo
# DESCR - description with summary on first line
# preinst, postinst, prerm, postrm - optional control shell scripts
# These fields are used to build the control file:
# PACKAGE =
# VERSION =
# ARCH =
# SECTION =
# PRIORITY =
# MAINTAINER =
# DEPENDS =
#
# SOURCE_DIR =
# ICON_SOURCE =
# (ICON_SOURCE is optional)
# *** NO USER CHANGES REQUIRED BEYOND THIS POINT ***
ifeq ($(shell uname),Darwin)
MD5SUM=md5
else
MD5SUM=md5sum
endif
GAWK=awk
PACKAGE_DIR?=$(shell pwd)
ifeq (${PACKAGE_DIR},)
all:
@echo Invalid package directory
false
endif
CONTROL_EXTRAS ?= ${wildcard preinst postinst prerm postrm}
${PACKAGE_DIR}/control: ${PACKAGE_DIR}/data ${CONTROL_EXTRAS} DESCR \
${ICON_SOURCE}
#rm -rf $@
mkdir -p $@
ifneq (${CONTROL_EXTRAS},)
cp ${CONTROL_EXTRAS} $@
endif
# Make control file.
echo "Package: ${PACKAGE}" > $@/control
echo "Version: ${VERSION}" >> $@/control
echo "Section: ${SECTION}" >> $@/control
echo "Priority: ${PRIORITY}" >> $@/control
echo "Architecture: ${ARCH}" >> $@/control
ifneq (${DEPENDS},)
echo "Depends: ${DEPENDS}" >> $@/control
endif
echo "Installed-Size: ${shell du -s ${PACKAGE_DIR}/data|cut -f1}" \
>> $@/control
echo "Maintainer: ${MAINTAINER}" >> $@/control
printf "Description:" >> $@/control
cat DESCR | ${GAWK} '{print " "$$0;}' >> $@/control
#ifneq (${ICON_SOURCE},)
# echo "Maemo-Icon-26:" >> $@/control
# base64 ${ICON_SOURCE} | ${GAWK} '{print " "$$0;}' >> $@/control
#endif
# Make md5sums.
cd ${PACKAGE_DIR}/data && find . -type f -exec ${MD5SUM} {} \; \
| sed -e 's| \./| |' \
> $@/md5sums
${PACKAGE_DIR}/debian-binary:
echo "2.0" > $@
${PACKAGE_DIR}/clean:
rm -rf ${PACKAGE_DIR}/data ${PACKAGE_DIR}/control ${PACKAGE_DIR}/build *.deb
${PACKAGE_DIR}/build: ${PACKAGE_DIR}/debian-binary ${PACKAGE_DIR}/control \
${PACKAGE_DIR}/data
rm -rf $@
mkdir $@
cp ${PACKAGE_DIR}/debian-binary $@/
cd ${PACKAGE_DIR}/control && tar cJvf $@/control.tar.xz *
cd ${PACKAGE_DIR}/data && \
COPY_EXTENDED_ATTRIBUTES_DISABLE=true \
COPYFILE_DISABLE=true \
tar cpJvf $@/data.tar.xz ./*
# Convert GNU ar to BSD ar that debian requires.
# Note: Order of files within ar archive is important!
${PACKAGE_DIR}/${PACKAGE}_${VERSION}_${ARCH}.deb: ${PACKAGE_DIR}/build
${AR} -rc $@ $</debian-binary $</control.tar.xz $</data.tar.xz
#sed -e 's|^\([^/]\+\)/ \(.*\)|\1 \2|g' $@tmp > $@fail
#rm -f $@tmp
#mv $@fail $@
.PHONY: data
data: ${PACKAGE_DIR}/data
.PHONY: control
control: ${PACKAGE_DIR}/control
.PHONY: build
build: ${PACKAGE_DIR}/build
.PHONY: clean
clean: ${PACKAGE_DIR}/clean
rm -f debian-binary
.PHONY: mrproper
mrproper: clean
echo ${PACKAGE_DIR}
rm -rf root
.PHONY: deb
deb: ${PACKAGE_DIR}/${PACKAGE}_${VERSION}_${ARCH}.deb
clobber::
rm -rf ${PACKAGE_DIR}/debian_binary ${PACKAGE_DIR}/control \
${PACKAGE_DIR}/data ${PACKAGE_DIR}/build
push:
scp *.deb radare.org:/srv/http/radareorg/cydia/debs
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
for pkg in "$@"
do
VERSION=$(apt show $pkg 2> /dev/null | grep -F "Version: " | sed -e 's/Version:\s\([[[:digit:]\.]\+\).*/\1/')
if [ $pkg != $1 ]; then
echo -n ", "
fi
echo -n "$pkg (>= $VERSION)"
done
+3
View File
@@ -0,0 +1,3 @@
PACKAGE=iaito
include ../CONFIG
+2
View File
@@ -0,0 +1,2 @@
QT frontend for radare2
This is the continuation of Iaito after the project forked out so it keeps using radare2 as backend.
+24
View File
@@ -0,0 +1,24 @@
PACKAGE_DIR=$(shell pwd)
include ./CONFIG
SUDO=fakeroot
SUDO=sudo
SUDO=
all:
$(SUDO) rm -rf control data
$(MAKE) clean
$(MAKE) root
mkdir -p data
cp -aRf root/* data
rm -rf data$(LIBDIR)/pkgconfig
# rm -rf data$(LIBDIR)/*.a
# rm -rf data$(INCLUDEDIR)
$(MAKE) control
$(MAKE) deb
root:
cd ../../.. && $(MAKE) && $(MAKE) install install-translations PREFIX=/usr DESTDIR=/tmp/iaito-deb
mv /tmp/iaito-deb root
include ../deb_hand.mak
+87
View File
@@ -0,0 +1,87 @@
.PHONY: all app dmg zip unpack-comps clean mrproper
all: clean app dmg
app: disk/iaito.app
dmg: iaito.dmg
zip: iaito.zip
unpack-comps: radare2-unpkg extra/r2ai extra/r2ghidra extra/r2ghidra_sleigh
disk/iaito.app: ../../build/iaito.app unpack-comps
mkdir disk
# Copy base bundle app
cp -a ../../build/iaito.app disk/
# Copy r2 binary plugins
mkdir -p disk/iaito.app/Contents/PlugIns/radare2
install -p -m 0755 \
extra/r2ghidra/core_ghidra.dylib \
disk/iaito.app/Contents/PlugIns/radare2/
# Copy r2 pkg files and update linking path for all binary files
scripts/embed-radare2.sh radare2-unpkg disk/iaito.app
# Copy r2 non-binary plugins
install -p -m 0644 \
extra/r2ai/decai/decai.r2.js \
disk/iaito.app/Contents/Resources/radare2/lib/radare2/last/
cp -a extra/r2ghidra_sleigh \
disk/iaito.app/Contents/Resources/radare2/share/
# Copy QT frameworks
macdeployqt disk/iaito.app -verbose=2
iaito.dmg: disk/iaito.app
cp doc/README.txt disk/READ_THIS_FIRST.txt
ln -fs /Applications disk/
hdiutil create -format UDZO -fs APFS -volname iaito -srcfolder disk iaito
iaito.zip:
cp doc/README.txt disk/READ_THIS_FIRST.txt
ditto -c -k --rsrc --extattr --sequesterRsrc disk iaito.zip
radare2-unpkg: radare2.pkg
pkgutil --expand-full $< $@
touch $@
radare2.pkg:
echo "Download first radare2.pkg from https://github.com/radareorg/radare2/releases"
@false
r2ai.tar.gz:
echo "Download first r2ai.tar.gz (source) from https://github.com/radareorg/r2ai/releases"
@false
extra/r2ai: r2ai.tar.gz
mkdir -p extra
rm -rf extra/r2ai extra/r2ai-* extra/radareorg-r2ai-*
tar -f $< -xzC extra/
cd extra && mv *r2ai-* r2ai
touch $@
r2ghidra.zip:
echo "Download first r2ghidra.zip (binary) from https://github.com/radareorg/r2ghidra/releases"
@false
extra/r2ghidra: r2ghidra.zip
mkdir -p extra
rm -rf extra/r2ghidra extra/r2ghidra-*-macos-*
unzip $< -d extra/
cd extra && mv r2ghidra-*-macos-* r2ghidra
touch $@
r2ghidra_sleigh.zip:
echo "Download first r2ghidra_sleigh.zip from https://github.com/radareorg/r2ghidra/releases"
@false
extra/r2ghidra_sleigh: r2ghidra_sleigh.zip
mkdir -p extra
rm -rf extra/r2ghidra_sleigh*
unzip $< -d extra/
cd extra && mv r2ghidra_sleigh-* r2ghidra_sleigh
touch $@
../../build/iaito.app:
echo "Building iaito..."
$(MAKE) -C ../.. QMAKE_FLAGS=IAITO_BUNDLE_R2_APPBUNDLE=true
clean:
rm -rf radare2-unpkg disk iaito.dmg
mrproper: clean
rm -rf radare2.pkg r2ai.tar.gz r2ghidra*.zip extra
+7
View File
@@ -0,0 +1,7 @@
IMPORTANT!
To install iaito you can drag and drop the application to /Applications.
But then you are required to run this commands from Terminal before you can execute for the first time.
sudo xattr -c /Applications/iaito.app
sudo codesign --force --deep --sign - /Applications/iaito.app
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.debugger</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-jit</key>
<true/>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
</dict>
</plist>
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
CMD=$(basename "$0")
APPDIR=$(cd "$(dirname "$0")/../../../.."; pwd)
R2_BINDIR="${APPDIR}/Contents/Helpers"
R2_LIBDIR="${APPDIR}/Contents/Frameworks"
R2_PREFIX="${APPDIR}/Contents/Resources/radare2"
XDG_CACHE_HOME="${HOME}/Library/Caches/radareorg/iaito"
XDG_CONFIG_HOME="${HOME}/Library/Preferences/radareorg/iaito"
XDG_DATA_HOME="${HOME}/Library/Application Support/radareorg/iaito"
export R2_BINDIR
export R2_LIBDIR
export R2_PREFIX
export XDG_CACHE_HOME
export XDG_CONFIG_HOME
export XDG_DATA_HOME
exec "${R2_BINDIR}/${CMD}" "$@"
+75
View File
@@ -0,0 +1,75 @@
#!/bin/sh -e
R2PKGDIR="$1"
APPDIR="$2"
SCRIPTS="$(dirname "$0")"
R2DIR="${R2PKGDIR}/Payload/usr/local"
R2V=$(readlink "${R2DIR}/lib/radare2/last")
fix_binary() {
FILE=$1
PREFIX=$2
shift 2
echo "Change library paths for \"$FILE\"..."
ARGS=$(otool -L "$FILE" | awk 'BEGIN{ORS=" "}/\/usr\/local\/lib\/libr_/{dst=$1; sub(/\/usr\/local\/lib/,"'"$PREFIX"'", dst); print "-change "$1" "dst}')
if [ -n "$ARGS" -o -n "$1" ]; then
echo " install_name_tool $@ $ARGS \"$FILE\""
install_name_tool $@ $ARGS "$FILE"
fi
}
mkdir -p \
"${APPDIR}/Contents/Helpers" \
"${APPDIR}/Contents/Frameworks" \
"${APPDIR}/Contents/PlugIns/radare2" \
"${APPDIR}/Contents/Resources/radare2/bin" \
"${APPDIR}/Contents/Resources/radare2/lib/radare2/${R2V}/"
cp -a "${R2DIR}/bin/"* "${APPDIR}/Contents/Helpers/"
cp -a "${R2DIR}/lib/radare2/${R2V}/"*.dylib "${APPDIR}/Contents/PlugIns/radare2/"
cp -a "${R2DIR}/lib/"*.dylib "${APPDIR}/Contents/Frameworks/"
cp -a "${R2DIR}/include" "${APPDIR}/Contents/Resources/radare2/"
cp -a "${R2DIR}/share" "${APPDIR}/Contents/Resources/radare2/"
#cp -a "${R2DIR}/lib/pkgconfig" "${APPDIR}/Contents/Resources/radare2/lib/"
cp -p "${SCRIPTS}/command.sh" "${APPDIR}/Contents/Resources/radare2/bin/radare2"
cp -a "${R2DIR}/lib/radare2/last" "${APPDIR}/Contents/Resources/radare2/lib/radare2/"
#cp -a "${R2DIR}/lib/radare2/${R2V}/"*.js "${APPDIR}/Contents/Resources/radare2/lib/radare2/${R2V}/"
# Move all non-binary files outside Helpers folder
mv "${APPDIR}/Contents/Helpers/clang-format-radare2" "${APPDIR}/Contents/Resources/radare2/bin/"
(
cd "${APPDIR}/Contents/MacOS"
fix_binary "iaito" "@rpath"
)
(
cd "${APPDIR}/Contents/Helpers"
for c in *; do
[ -L "$c" ] || fix_binary "$c" "@rpath" -add_rpath "@executable_path/../Frameworks"
[ "$c" != "radare2" ] && ln -s radare2 "../Resources/radare2/bin/$c"
done
)
(
LIBS=$(cd "${R2DIR}/lib"; ls *.dylib)
cd "${APPDIR}/Contents/Frameworks"
for c in $LIBS; do
[ -L "$c" ] || fix_binary "$c" "@loader_path" -id "@rpath/$c"
c2=$c # Resolve upto 2 link levels
[ -L "$c2" ] && c2=$(readlink "$c2")
[ -L "$c2" ] && c2=$(readlink "$c2")
ln -s "../../../Frameworks/$c2" "../Resources/radare2/lib/$c"
done
)
(
cd "${APPDIR}/Contents/PlugIns/radare2"
for c in *.dylib; do
[ -L "$c" ] || fix_binary "$c" "@rpath" -add_rpath "@loader_path/../../Frameworks" -id "$c"
ln -s "../../../../../PlugIns/radare2/$c" "../../Resources/radare2/lib/radare2/${R2V}/$c"
done
# Required for plugins rpath when loaded from Resources
ln -s "../../../Frameworks" "../../Resources/radare2/lib/Frameworks"
)
+50
View File
@@ -0,0 +1,50 @@
# Data Analysis
Open **View → Data → Analysis**. The dock is hidden in the default layout and when
first added to an older saved layout. Hidden docks do not sample data. **Zoom** is
also available under **View → Data**.
- **Algorithms** enables multiple byte metrics. Hover over a named legend entry
for its definition; click it to edit its color or visibility. Clicking the legend
does not remove the series.
- **Options → Resolution (buckets)** selects 32, 64, 128, 256, 512, 1024, 2048 or
4096 buckets. Lower values give coarser graphs and less work. The default is 1024.
- **Options** also controls lines, filled lines or vertical bars, separate tracks,
greyscale/rainbow/theme colors, custom colors, and structural markers.
- Click the graph to seek. Drag to select bytes. Wheel or `+`/`-` zooms;
Shift+wheel or the arrow keys pans. `Home` fits all data, and `Esc` clears selection.
- The bottom entropy overview shows the complete address span. Drag its window
to pan, drag its edges to resize the range, or double-click to fit all data.
- **Range** fits the current section, segment, map, block or selection.
**Edit range** accepts radare2 expressions and inclusive endpoints.
- **Follow** keeps the current seek address visible. Offset synchronization and
the global address-selection synchronization setting control integration with
disassembly and hexdump widgets.
- **Find marker** searches sections, segments, maps, flags (including search hits)
and comments. The graph context menu provides comments, flags and “Show in”.
Hover details appear after the pointer rests for 650 ms.
- Hexdump selections, sections and segments have direct analysis actions.
Other addressable widgets can use **Show in → Data Analysis**.
The graph uses the current radare2 address space: virtual addresses with `io.va`
enabled, otherwise physical offsets in the active descriptor. Gaps and failed reads
do not contribute invented bytes. Each bucket reads at most 4096 bytes from centered
windows in readable spans. Tooltips, the status line and exported CSV report how
many bytes were actually read. Zoom in for complete coverage of a region. Entropy
is measured per bucket, so very small buckets have a lower attainable entropy.
Multiple overlaid series use a normalized percentage scale. Entropy's native scale
is 0–8 bits/byte, unique bytes 0–256, and mean byte 0–255. A single series or separate
tracks uses its native scale. CSV exports normalized values plus exact bucket bounds
and coverage. Display settings are saved with the layout.
Other widgets can call `MainWindow::showDataAnalysis(start, end)` or
`DataAnalysisWidget::showRange(start, end)` with **inclusive** endpoints. Internally,
`DataAnalysis::Range` and graph signals use half-open ranges.
Run the focused tests with:
```sh
make -C tests/dataanalysis -j8 > /dev/null
QT_QPA_PLATFORM=offscreen tests/dataanalysis/build/test_dataanalysis
```
+264
View File
@@ -0,0 +1,264 @@
Iaito Deep Links
================
Iaito registers the `iaito://` URI scheme so binaries, projects, samples and raw
bytes can be referenced with stable, shareable links that open a specific
location and view. Clicking such a link (from a browser, file manager, chat
client, terminal, etc.) launches Iaito and navigates straight to the target.
The implementation lives in a single, self-contained pair of files,
`src/common/DeepLink.{h,cpp}`, so it is easy to find, maintain and remove.
URI format
----------
```
iaito://<handler>/<payload>?<query>
```
There are exactly four top-level handlers:
| Handler | Payload | Opens |
|----------------|------------------|------------------------------------------|
| `file` | absolute path | a file from disk |
| `project` | project name | a saved radare2/iaito project |
| `sha256` | 64 hex chars | a locally registered sample by its hash |
| `bytes` | hex byte string | an in-memory buffer built from raw bytes |
Only **absolute paths** are accepted for `file`.
As a convenience, if the host part of the URI is empty the absolute path is
treated as a `file` reference:
```
iaito:///bin/ls is the same as iaito://file/bin/ls
```
Examples:
```
iaito://file/tmp/a.out
iaito://project/r2
iaito://sha256/0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef
iaito://bytes/554889e54883ec10
```
Query parameters
----------------
Parameters are passed as standard URL query parameters (`?a=1&b=2`), not as
`#fragments`. Unknown parameters are ignored, so the format can be extended in
the future without breaking existing links.
### Navigation
| Param | Meaning |
|---------|------------------------------------------------------------------------|
| `addr` | Any expression radare2 can resolve via `s <expr>` |
| `view` | The panel to raise after opening |
| `size` | Region length / block size (integer, decimal or `0x` hex) |
`addr` accepts anything radare2 understands:
```
addr=0x401000
addr=sym.main
addr=entry0
addr=str.Hello
```
`view` may be one of:
```
disasm graph hex decompiler
strings imports exports functions
```
`disasm`, `graph`, `hex` and `decompiler` open/raise the corresponding memory
widget; the other names raise the matching tool panel by name.
`size` sets the current block size (radare2 `b`), e.g. `size=64` or `size=0x100`.
### Analysis (mostly for `bytes` and raw/unknown binaries)
| Param | Examples |
|----------|-----------------------------------------------------|
| `arch` | `x86`, `arm`, `arm64`, `mips`, `riscv`, `ppc` |
| `bits` | `16`, `32`, `64` |
| `endian` | `little`, `big` |
| `cpu` | `generic`, `cortex`, `avr`, `68000`, `v850` |
| `os` | `linux`, `darwin`, `windows`, `ios`, `android` |
| `base` | base/map address, e.g. `0`, `0x1000`, `0x401000` |
For `bytes` links Iaito builds an in-memory `malloc://` buffer, writes the
provided bytes into it and configures the session accordingly:
| Query param | radare2 config |
|-------------|----------------|
| `arch` | `asm.arch` |
| `bits` | `asm.bits` |
| `endian` | `cfg.bigendian`|
| `cpu` | `asm.cpu` |
| `os` | `asm.os` |
| `base` | `bin.baddr` |
Examples
--------
Open a file and jump to an address:
```
iaito://file/tmp/a.out?addr=0x401000
```
Open a project and show the graph view at `main`:
```
iaito://project/r2?addr=sym.main&view=graph
```
Open a sample by SHA256 and show the decompiler:
```
iaito://sha256/<hash>?addr=sym.main&view=decompiler
```
Open a sample by SHA256 and select a region in the hex view:
```
iaito://sha256/<hash>?addr=0x401000&size=0x100&view=hex
```
Disassemble raw x86-64 shellcode:
```
iaito://bytes/554889e54883ec10?arch=x86&bits=64&view=disasm
```
Disassemble little-endian ARM code:
```
iaito://bytes/e92d4800e8bd8800?arch=arm&bits=32&endian=little
```
Analyze a raw big-endian MIPS firmware blob mapped at a base address:
```
iaito://bytes/<hex>?arch=mips&bits=32&endian=big&base=0x80000000
```
Open bytes and jump to an offset in the hex view:
```
iaito://bytes/<hex>?arch=x86&bits=64&addr=0x10&view=hex
```
SHA256 samples database
------------------------
`sha256` links resolve a hash to a local file through Iaito's samples database,
which maps the SHA256 of every binary it has seen to its path on disk. Files are
registered automatically when opened and can be managed from the *Sha256* tab in
the New File dialog. If the hash is unknown, Iaito shows a dialog explaining how
to register it; downloading unknown samples is out of scope.
See [sha256.md](sha256.md) for the on-disk layout, hashing, how to populate the
database, and the configurable online lookup URL.
Registering the URI handler
---------------------------
The `iaito://` scheme must be associated with the Iaito executable at the OS
level. This happens automatically with the standard install targets, and can
also be run on its own.
### Make targets
```
make install-deeplink # register iaito:// for the current user
make uninstall-deeplink # remove the association
```
`make user-install` registers the handler as part of installation, and
`make uninstall` / `make user-uninstall` removes it. A system-wide
`make install` refreshes the desktop database so the `.desktop` MimeType
association is picked up.
### Linux
Registration relies on the desktop entry `src/org.radare.iaito.desktop`, which
declares:
```
Exec=iaito %u
MimeType=x-scheme-handler/iaito;
```
`scripts/deeplink/register.sh` runs `xdg-mime default` and
`update-desktop-database`; `scripts/deeplink/unregister.sh` removes the
association from `~/.config/mimeapps.list`.
### macOS
The app bundle declares the scheme in `Info.plist` via `CFBundleURLTypes`
(`CFBundleURLSchemes = iaito`). LaunchServices registers it automatically when
the bundle is installed; `scripts/deeplink/register.sh` forces a refresh with
`lsregister -f <iaito.app>`. The handler is dropped when the bundle is removed.
`make run` launches the build without registering the URI handler. To optionally
register the local bundle without installing it, run:
```sh
sh scripts/deeplink/register.sh "$PWD/build/iaito.app"
```
### Windows
`scripts/deeplink/register.bat` writes the `HKCU\Software\Classes\iaito` keys
(including `URL Protocol` and `shell\open\command`) and
`scripts/deeplink/unregister.bat` deletes them. Pass the path to `iaito.exe` as
the first argument:
```
scripts\deeplink\register.bat "C:\Program Files\iaito\iaito.exe"
scripts\deeplink\unregister.bat
```
Using deep links from the UI
----------------------------
Every code view and listing exposes a **Copy deep link** action that builds a
link to the current address:
- Disassembly, decompiler and graph context menus (under *Copy* -> *Deep link*),
embedding the matching `view=` value (`disasm`, `decompiler`, `graph`).
- Hexdump context menu (*Copy* -> *Deep link*, `view=hex`).
- The listing widgets (functions, symbols, imports, exports, strings, relocs,
sections, ...) via the *Copy deep link* entry in their context menu.
When triggered, a dialog asks how the open file should be referenced: by loaded
project name, by `sha256`, or by absolute `file` path. The resulting URI is
placed on the clipboard, ready to paste into a report or a comment.
Links pasted into comments are rendered as clickable text in the disassembly and
decompiler views: hovering shows a pointing-hand cursor and a left click follows
the link. A link that points back into the file already open navigates in place
(seek + view switch) instead of reopening the binary.
Notes
-----
- `addr` is resolved through radare2's `s` command, so it accepts the full range
of radare2 address expressions (flags, symbols, math, etc.).
- `size` is always resolved to a number before use, so it cannot inject
additional radare2 commands.
- Query parameters are preferred over `#fragments`; future parameters can be
added without changing the URI format.
- The four handlers (`file`, `project`, `sha256`, `bytes`) are intentionally the
only top-level entry points.
+94
View File
@@ -0,0 +1,94 @@
Iaito SHA256 Samples Database
=============================
Iaito keeps a local database that maps the SHA256 of every binary it has seen to
its path on disk. It powers `iaito://sha256/<hash>` deep links (see
[deeplinks.md](deeplinks.md)) and the *Sha256* tab in the New File dialog, and it
lets you look a sample up online (VirusTotal by default).
The implementation lives in `src/common/SamplesDB.{h,cpp}`.
On-disk layout
--------------
The database lives under Iaito's application data directory
(`QStandardPaths::AppDataLocation`, e.g. `~/.local/share/radareorg/iaito/samples/`
on Linux).
To scale to large collections without a single huge index file, entries are
sharded git/rainbow-table style across two hash-prefix directory levels. The
leaf is a plain text bucket file holding one `"<sha256> <absolute-path>"` entry
per line:
```
samples/<h0:2>/<h2:4>/<h0:4>
samples/53/a9/53a9 -> 53a9c0557a948069...172161625 /samples/a.out
53a9ffeede... /samples/b.bin
```
- The two directory levels are the first two and next two hex characters of the
hash, giving up to 65536 buckets so no single directory grows unbounded.
- The leaf bucket file is named after the 4-character prefix and contains all
entries sharing it, hash and absolute path separated by a single space.
- Lookups read just one bucket file; the whole database is only walked when the
*Sha256* tab lists every entry.
When the same hash is registered again with a different path, the latest path
wins (one path per hash).
Hashing
-------
`SamplesDB::sha256File()` computes the digest with radare2's `r_muta` SHA256
session API, reading the file in fixed-size blocks. Memory stays bounded
regardless of file size, so even multi-gigabyte files hash safely without being
loaded into memory at once.
Populating the database
-----------------------
- **Automatically** — every file you open in Iaito is registered (sha256 -> path)
once it finishes loading, from `MainWindow::finalizeOpen()`. Hashing runs on a
background thread so the UI stays responsive on large files. Live debug
sessions and non-file targets (`malloc://`, `dbg://`, ...) are skipped, as are
paths that no longer exist.
- **Manually** — the *Sha256* tab in the New File dialog lets you:
- **Scan folder…** — recursively register every file under a chosen directory
(runs in the background).
- **Filter** — the input field filters the list by file name or hash as you
type.
- **On disk** — a column shows whether each registered file still exists.
- **Open** — open the selected sample (also on double-click).
- **Lookup** — open the configured lookup URL for the selected hash.
- **Delete** — remove the selected entry from the database (the file is left
untouched).
- **Right-click** — *Copy path*, *Copy hash*, *Open containing folder*,
*Open in lookup URL*, *Remove from database*.
Online lookup URL
-----------------
The *Lookup* button and the *Open in lookup URL* context action open a base URL
with the selected file's SHA256 appended. The base URL defaults to VirusTotal:
```
https://www.virustotal.com/gui/file/<sha256>
```
It is configurable in *Settings -> Samples* (stored as `sha256.lookupBaseUrl`),
where a *Reset* button restores the VirusTotal default. This lets you point the
lookup at any service that resolves a file by its SHA256.
Deep link resolution
---------------------
`iaito://sha256/<hash>` looks the hash up in the database and opens the mapped
file if it still exists, applying any `addr`/`view`/`size` parameters. If the
hash is unknown, Iaito shows a dialog explaining how to register it. Downloading
unknown samples is intentionally out of scope.
+30
View File
@@ -0,0 +1,30 @@
# Structures in the hexdump
Open the hexdump sidebar's **Structures** tab, choose an r2 type, enter an address
or expression, and press **Inspect**. **At cursor** uses the first selected byte
or the current cursor. You can also right-click the hexdump and choose **Inspect
structure here**; a type already linked to that address is selected automatically.
The tree shows each field's declared type, value, address, and size. Expand nested
structures, unions, arrays, and pointers to explore them. Selecting a field selects
its bytes in the hexdump. Field colors match the byte highlights. The inspected
structure stays anchored while you navigate, and **Refresh** preserves expanded
fields and the selected row while rereading memory and type definitions.
Types come from r2's type database, including imported C definitions and typedefs.
The tree uses stored member offsets and the current `asm.bits` and `cfg.bigendian`
settings. Large arrays are divided into expandable groups. Unmapped pointers and
recursive references stop expansion; invalid or overflowing layouts are reported.
Array expressions such as `uint16_t[16]` can be inspected directly.
**Pin type** creates an r2 type link (`tl`) at the inspected address. The pinned
address list also includes existing type links and command annotations (`Cr`) from
the current r2 session. Define a named typedef before pinning an array expression.
**Pin command…** stores a command at the address using the selected byte range or
the chosen type's size. Double-click a pin to navigate to its address. Select a
command pin and press **Run command** to display its output. **Unpin** removes only
the selected type link or command annotation. Pins use r2's existing project data
and are saved with the project. iaito also writes `iaito-memory-pins.json` inside the
project directory to preserve types and pins omitted by some r2 binary project versions;
keep that companion file when copying a project.
-7
View File
@@ -1,7 +0,0 @@
sudo: required
services:
- docker
script:
- docker build -t radareorg/cutter .
+41 -41
View File
@@ -1,56 +1,56 @@
FROM alpine:latest AS builder
LABEL maintainer "Philipp Schmied <ps1337@mailbox.org>"
LABEL maintainer "pancake <pancake@nopcode.org>"
# Prevent build fails because of interactive scripts when compiling
ENV DEBIAN_FRONTEND noninteractive
# Dependencies
# Dependencies and get, compile and test Iaito from master branch
RUN apk add --no-cache \
bash \
build-base \
cmake \
curl \
git \
linux-headers \
pkgconfig \
python3-dev \
qt5-qtbase \
qt5-qtsvg-dev \
qt5-qttools-dev \
unzip \
wget
# Get, compile and test Cutter from master branch
RUN git clone --recurse-submodules https://github.com/radareorg/cutter.git /opt/cutter
RUN cd /opt/cutter && \
bash build.sh && \
bash -c 'if [[ ! -x "/opt/cutter/build/Cutter" ]]; then exit -1; fi'
bash \
build-base \
meson \
ninja \
curl \
git \
linux-headers \
pkgconfig \
patch \
python3-dev \
qt5-qtbase \
qt5-qtsvg-dev \
qt5-qttools-dev \
qtchooser \
qt5-qtbase-dev \
unzip \
zip \
wget && \
git clone https://github.com/radareorg/iaito.git /opt/iaito && \
git clone --recurse-submodules https://github.com/radareorg/radare2 /opt/radare2 && \
cd /opt/radare2 && ./sys/install.sh /usr && \
cd /opt/iaito && sh configure && make
FROM alpine:latest AS runner
# Add the dependencies we need for running
RUN apk add --no-cache \
bash \
libuuid \
make \
python3 \
qt5-qtbase \
shadow \
su-exec
# Get the compiled Cutter, r2 libs and bins from the builder
COPY --from=builder /opt/cutter /opt/cutter
# Get the compiled Iaito, r2 libs and bins from the builder
COPY --from=builder /opt/iaito /opt/iaito
COPY --from=builder /opt/radare2 /opt/radare2
COPY --from=builder /usr/lib /usr/lib
COPY --from=builder /usr/share/radare2 /usr/share/radare2
RUN cd /opt/cutter/radare2/binr && \
# Add the dependencies we need for running
RUN apk add --no-cache \
bash \
libuuid \
make \
python3 \
qt5-qtbase \
shadow \
su-exec && \
cd /opt/radare2/binr && \
make install && \
make symstall install-symlink
# Add r2 user
RUN useradd r2
# Prepare files to mount configurations later on
RUN mkdir /var/sharedFolder && \
make symstall install-symlink && \
useradd r2 && \
mkdir /var/sharedFolder && \
mkdir -p /home/r2/.config/radare2 && \
touch /home/r2/.radare2rc && \
chown -R r2:r2 /var/sharedFolder && \
-70
View File
@@ -1,70 +0,0 @@
FROM alpine:latest AS builder
LABEL maintainer "Philipp Schmied <[email protected]>"
# Prevent build fails because of interactive scripts when compiling
ENV DEBIAN_FRONTEND noninteractive
# Dependencies
RUN apk add --no-cache \
bash \
cmake \
curl \
g++ \
gcc \
git \
linux-headers \
make \
pkgconfig \
python3-dev \
qt5-qtbase \
qt5-qtsvg-dev \
qt5-qttools-dev \
unzip \
wget
# install radare2 first
COPY docker/build_radare2.sh /opt/cutter/
COPY radare2 /opt/cutter/radare2
WORKDIR /opt/cutter
RUN bash build_radare2.sh
COPY docker/build_cutter.sh /opt/cutter/
COPY scripts /opt/cutter/scripts
COPY src /opt/cutter/src
RUN bash build_cutter.sh && \
bash -c 'if [[ ! -x "/opt/cutter/build/Cutter" ]]; then exit -1; fi'
FROM alpine:latest AS runner
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
# Add the dependencies we need for running
RUN apk add --no-cache \
bash \
libuuid \
make \
python3 \
qt5-qtbase \
shadow \
su-exec
# Add r2 user
RUN useradd r2
# Prepare files to mount configurations later on
RUN mkdir /var/sharedFolder && \
mkdir -p /home/r2/.config/radare2 && \
touch /home/r2/.radare2rc && \
chown -R r2:r2 /var/sharedFolder && \
chown -R r2:r2 /home/r2/
COPY ./docker/entrypoint.sh /usr/local/bin/entrypoint.sh
# Get the compiled Cutter, r2 libs and bins from the builder
COPY --from=builder /opt/cutter /opt/cutter
COPY --from=builder /usr/lib /usr/lib
COPY --from=builder /usr/share/radare2 /usr/share/radare2
WORKDIR /opt/cutter/radare2/binr
RUN make install && \
make symstall install-symlink
+6 -8
View File
@@ -14,10 +14,8 @@ ifdef BINARY
endif
VERSION ?= latest
IMAGE_NAME ?= radareorg/cutter
CONTAINER_NAME ?= cutter
LOCAL_DEV ?= n
IMAGE_NAME ?= radareorg/iaito
CONTAINER_NAME ?= iaito
# This will output the help for each task
# thanks to https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
@@ -30,14 +28,14 @@ help: ## This help
# Build the container
build: ## Build the container
sudo docker build --rm -t $(IMAGE_NAME) $(if $(LOCAL_DEV) == 'y',-f ./Dockerfile-dev ../,.)
sudo docker build --network=host --rm -t $(IMAGE_NAME) .
build-nc: ## Build the container without caching
sudo docker build --rm --no-cache -t $(IMAGE_NAME) $(if $(LOCAL_DEV) == 'y',-f ./Dockerfile-dev ../,.)
sudo docker build --network=host --rm --no-cache -t $(IMAGE_NAME) .
run: ## Run container
XSOCK=/tmp/.X11-unix && \
XAUTH=$(shell mktemp /tmp/r2cutter_tmp.XXX.xauth) && \
XAUTH=$(shell mktemp /tmp/iaito_tmp.XXX.xauth) && \
xauth nlist $$DISPLAY | sed -e 's/^..../ffff/' | xauth -f $$XAUTH nmerge - && \
chmod 644 $$XAUTH && \
touch $(DIR)/radare2rc && \
@@ -60,7 +58,7 @@ run: ## Run container
$(IMAGE_NAME):$(VERSION) $(RUNFLAGS) && \
rm $$XAUTH
get: ## Get the latest Cutter image
get: ## Get the latest Iaito image
sudo docker pull $(IMAGE_NAME):$(VERSION)
stop: ## Stop a running container
+4 -4
View File
@@ -1,6 +1,6 @@
# Docker Configuration for Cutter
# Docker Configuration for Iaito
These files provide an easy way to deploy *Cutter* in a Docker container. After additional configuration you may want to apply to the `Makefile`, execute `make run`. By default, the *Cutter* image on [Docker Hub](https://hub.docker.com/r/radareorg/cutter/) will be used along with additional UID, capability, X and mount settings:
These files provide an easy way to deploy *Iaito* in a Docker container. After additional configuration you may want to apply to the `Makefile`, execute `make run`. By default, the *Iaito* image on [Docker Hub](https://hub.docker.com/r/radareorg/iaito/) will be used along with additional UID, capability, X and mount settings:
- Xauthority settings which avoid using potentially insecure `xhost` directives. The settings have been adapted from [this post](https://stackoverflow.com/questions/16296753/can-you-run-gui-apps-in-a-docker-container/25280523#25280523).
- Mount directives to mount a shared folder and radare2 configuration files.
@@ -8,11 +8,11 @@ These files provide an easy way to deploy *Cutter* in a Docker container. After
## Using Local Files
To deploy *Cutter* using local files rather than those in the Master branch set LOCAL_DEV to 'y' when executing `make build` or `make build-nc`, e.g. `make LOCAL_DEV=y build`. This will tell *make* to use `Dockerfile-dev` rather than `Dockerfile` which will copy local files into the container rather than cloning from Git.
To deploy *Iaito* using local files rather than those in the Master branch set `LOCAL_DEV` to 'y' when executing `make build` or `make build-nc`, e.g. `make LOCAL_DEV=y build`. This will tell *make* to use `Dockerfile-dev` rather than `Dockerfile` which will copy local files into the container rather than cloning from Git.
## Mounting and Using a Specific Binary
The `Makefile` allows mounting a single binary file as read-only, which will also be used as an input for *Cutter*. To use this feature, execute `make run BINARY=/absolute/path/to/binary`.
The `Makefile` allows mounting a single binary file as read-only, which will also be used as an input for *Iaito*. To use this feature, execute `make run BINARY=/absolute/path/to/binary`.
## Additional Notes
-102
View File
@@ -1,102 +0,0 @@
#!/bin/sh
# This script is a work in progress
#### Constants ####
ERR=0
#### User variables ####
BUILD="$(pwd)/build"
QMAKE_CONF=$*
ROOT_DIR=$(pwd)
find_qmake() {
qmakepath=$(command -v qmake-qt5)
if [ -z "$qmakepath" ]; then
qmakepath=$(command -v qmake)
fi
if [ -z "$qmakepath" ]; then
echo "You need qmake to build Cutter."
echo "Please make sure qmake is in your PATH environment variable."
exit 1
fi
echo "$qmakepath"
}
find_lrelease() {
lreleasepath=$(command -v lrelease-qt5)
if [ -z "$lreleasepath" ]; then
lreleasepath=$(command -v lrelease)
fi
if [ -z "$lreleasepath" ]; then
echo "You need lrelease to build Cutter."
echo "Please make sure lrelease is in your PATH environment variable."
exit 1
fi
echo "$lreleasepath"
}
find_gmake() {
gmakepath=$(command -v gmake)
if [ -z "$gmakepath" ]; then
gmakepath=$(command -v make)
fi
${gmakepath} --help 2>&1 | grep -q gnu
if [ $? != 0 ]; then
echo "You need GNU make to build Cutter."
echo "Please make sure gmake is in your PATH environment variable."
exit 1
fi
echo "$gmakepath"
}
prepare_breakpad() {
OS="$(uname -s)"
if [ -z "$OS" ]; then
echo "Could not identify OS, OSTYPE var is empty. You can try to disable breakpad to avoid this error."
exit 1
fi
if [ "$OS" = "Linux" ]; then
. $ROOT_DIR/scripts/prepare_breakpad_linux.sh
export PKG_CONFIG_PATH="$CUSTOM_BREAKPAD_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
elif [ "$OS" = "Darwin" ]; then
. $ROOT_DIR/scripts/prepare_breakpad_macos.sh
fi
}
# Create translations
$(find_lrelease) ./src/Cutter.pro
# Build
if [ "${QMAKE_CONF#*CUTTER_ENABLE_CRASH_REPORTS=true}" != "$QMAKE_CONF" ]; then
prepare_breakpad
fi
mkdir -p "$BUILD"
cd "$BUILD" || exit 1
$(find_qmake) ../src/Cutter.pro "$QMAKE_CONF"
$(find_gmake) -j4
ERR=$((ERR+$?))
# Move translations
mkdir -p "$(pwd)/translations"
find "$ROOT_DIR/src/translations" -maxdepth 1 -type f | grep "cutter_..\.qm" | while read -r SRC_FILE; do
mv "$SRC_FILE" "$(pwd)/translations"
done
# Finish
if [ ${ERR} -gt 0 ]; then
echo "Something went wrong!"
else
echo "Build complete."
printf "This build of Cutter will be installed. Do you agree? [Y/n] "
read -r answer
if [ -z "$answer" ] || [ "$answer" = "Y" ] || [ "$answer" = "y" ]; then
$(find_gmake) install
else
echo "Binary available at $BUILD/Cutter"
fi
fi
cd ..
-32
View File
@@ -1,32 +0,0 @@
#!/bin/sh
check_r2() {
r2 -v >/dev/null 2>&1
if [ $? = 0 ]; then
R2COMMIT=$(r2 -v | tail -n1 | sed "s,commit: \\(.*\\) build.*,\\1,")
SUBMODULE=$(git submodule | grep "radare2" | awk '{print $1}')
if [ "$R2COMMIT" = "$SUBMODULE" ]; then
return 0
fi
fi
return 1
}
# Build radare2
check_r2
if [ $? -eq 1 ]; then
printf "A (new?) version of radare2 will be installed. Do you agree? [Y/n] "
read -r answer
if [ -z "$answer" ] || [ "$answer" = "Y" ] || [ "$answer" = "y" ]; then
R2PREFIX=${1:-"/usr"}
git submodule init && git submodule update
cd radare2 || exit 1
./sys/install.sh "$R2PREFIX"
cd ..
else
echo "Sorry but this script won't work otherwise. Read the README."
exit 1
fi
else
echo "Correct radare2 version found, skipping..."
fi
+2 -2
View File
@@ -1,9 +1,9 @@
#!/bin/bash
USERNAME="r2"
echo "Cutter: Starting with UID:GID $LOCAL_USER_ID:$LOCAL_GROUP_ID"
echo "Iaito: Starting with UID:GID $LOCAL_USER_ID:$LOCAL_GROUP_ID"
usermod -u $LOCAL_USER_ID $USERNAME
usermod -g $LOCAL_GROUP_ID $USERNAME
export HOME=/home/$USERNAME
exec su-exec $USERNAME "/opt/cutter/build/Cutter" $@
exec su-exec $USERNAME "/opt/iaito/build/iaito" $@
-4
View File
@@ -1,4 +0,0 @@
/doxygen-out
/build
/source/api
/source/_build
-2536
View File
File diff suppressed because it is too large. Load diff
-30
View File
@@ -1,30 +0,0 @@
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
doxygen
python3 apidoc.py
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
quick:
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
clean:
rm -fr doxygen-out
rm -fr source/api
rm -fr build
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
-136
View File
@@ -1,136 +0,0 @@
# -*- coding: utf-8 -*-
import os
import sys
import errno
import xml.etree.ElementTree
ALLOWED_TYPES = ['class', 'interface', 'struct', 'union']
def write_file(name, text, destdir):
"""Write the output file for module/package <name>."""
fname = os.path.join(destdir, '%s.%s' % (name, 'rst'))
if not os.path.exists(os.path.dirname(fname)):
try:
os.makedirs(os.path.dirname(fname))
except OSError as exc: # Guard against race condition
if exc.errno != errno.EEXIST:
raise
try:
with open(fname, 'r') as target:
orig = target.read()
if orig == text:
return
except FileNotFoundError:
# Don't mind if it isn't there
pass
with open(fname, 'w') as target:
target.write(text)
def format_heading(level, text):
"""Create a heading of <level> [1, 2 or 3 supported]."""
underlining = ['=', '-', '~', ][level - 1] * len(text)
return '%s\n%s\n\n' % (text, underlining)
def format_directive(package_type, package, project = None):
"""Create the breathe directive and add the options."""
directive = '.. doxygen%s:: %s\n' % (package_type, package)
if project:
directive += ' :project: %s\n' % project
return directive
def create_package_file(package, package_type, package_id, package_folder, rootpath, destdir):
"""Build the text of the file and write the file."""
text = format_heading(1, '%s' % (package))
text += format_directive(package_type, package)
xmlfile = os.path.join(rootpath, package_id + '.xml')
f = xml.etree.ElementTree.parse(os.path.join(xmlfile))
write_file(os.path.join(package_folder, package_id), text, destdir)
def create_modules_toc_file(key, value, destdir):
"""Create the module's index."""
text = format_heading(1, '%s' % value)
text += '.. toctree::\n'
text += ' :glob:\n\n'
text += ' %s/*\n' % key
write_file('%slist' % key, text, destdir)
def get_compound_folder(rootpath, compound):
fxml = xml.etree.ElementTree.parse(os.path.join(rootpath, compound.get('refid')) + '.xml')
loc = fxml.getroot()[0].find('location')
dirname = os.path.basename(os.path.split(loc.get('file'))[0])
return dirname
def recurse_tree(rootpath, destdir):
"""
Look for every file in the directory tree and create the corresponding
ReST files.
"""
index = xml.etree.ElementTree.parse(os.path.join(rootpath, 'index.xml'))
for compound in index.getroot():
if compound.get('kind') not in ALLOWED_TYPES:
continue
create_package_file(compound.findtext('name'), compound.get('kind'),
compound.get('refid'), get_compound_folder(rootpath, compound),
rootpath, destdir)
def get_folders_tree(rootpath):
tmp = []
# Retrieve the subfolders indexes
for root, _, files in os.walk(rootpath):
for xmlfile in files:
if not xmlfile.startswith('dir_'):
continue
tmp.append(xmlfile)
# Iterate on them
dirs = []
for xmlfile in tmp:
data = xml.etree.ElementTree.parse(os.path.join(rootpath, xmlfile))
if not data:
continue
for compound in data.getroot():
name = compound.findtext('compoundname')
dirs.append(name)
return dirs
def main():
rootpath = './doxygen-out/xml'
destdir = './source/api'
if not os.path.exists(destdir):
os.makedirs(destdir)
dirs = sorted(get_folders_tree(rootpath))
source_root = dirs[0]
source_dirs = dirs[1:]
out_dirs = [os.path.basename(d) for d in dirs]
# TODO Handle only one level subfolders
for key in out_dirs:
ddir = os.path.join(destdir, key)
if not os.path.exists(ddir):
os.makedirs(ddir)
create_modules_toc_file(key, key.capitalize(), destdir)
recurse_tree(rootpath, destdir)
# So program can be started with "python -m breathe.apidoc ..."
if __name__ == "__main__":
main()
-51
View File
@@ -1,51 +0,0 @@
{% extends 'basic/layout.html' %}
{% block extrahead %}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
{% endblock %}
{# https://www.sphinx-doc.org/en/master/templating.html #}
{% block relbar1 %}{% if pagename != 'index' %}{{ relbar() }}{% endif %}{% endblock %}
{% block relbar2 %}
{% endblock %}
{% block header %}
{% if pagename == 'index' %}<div class=indexwrapper>{% endif %}
{% endblock %}
{% block sidebar1 %}
{% endblock %}
{% block sidebar2 %}
{%- if render_sidebar %}
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
{%- block sidebarlogo %}
{%- if logo %}
<p class="logo"><a href="https://cutter.re/">
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
</a></p>
{%- endif %}
{%- endblock %}
<a href="{{ pathto(master_doc) }}">{{ project }} documentation</a>
{%- if sidebars != None %}
{#- new style sidebar: explicitly include/exclude templates #}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{%- else %}
{#- old style sidebars: using blocks -- should be deprecated #}
{%- endif %}
</div>
</div>
{%- endif %}
{% endblock %}
{% block footer %}
{{ super() }}
{% if pagename == 'index' %}</div>{% endif %}
{% endblock %}
-106
View File
@@ -1,106 +0,0 @@
/* Admonition styles */
div.admonition {
padding: 8px 35px 8px 0px;
margin-bottom: 20px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
border: 1px solid ;
color: #3a87ad;
background-color: #d9edf7;
border-color: #bce8f1;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
div.admonition p {
margin: 0.5em 1em 0.5em 1em;
padding: 0;
}
div.admonition pre {
margin: 0.4em 1em 0.4em 1em;
}
div.admonition p.admonition-title {
margin: 0;
padding: 0.1em 0 0.1em 0.5em;
font-weight: bold;
}
div.admonition ul, div.admonition ol {
margin: 0.1em 0.5em 0.5em 3em;
padding: 0;
}
/* -- danger, error -- */
div.danger,
div.error {
color: #b94a48;
background-color: #f2dede;
border-color: #eed3d7;
}
/* -- warning, caution, attention -- */
div.warning,
div.caution,
div.attention {
color: #c09853;
background-color: #fcf8e3;
border: 1px solid #fbeed5;
}
/* -- note, important -- */
div.note,
div.important {
color: #468847;
background-color: #dff0d8;
border-color: #d6e9c6;
}
/* -- hint, tip -- */
div.hint,
div.tip {
color: #3a87ad;
background-color: #d9edf7;
border-color: #bce8f1;
}
div.danger p.admonition-title:before,
div.error p.admonition-title:before,
div.warning p.admonition-title:before,
div.caution p.admonition-title:before,
div.attention p.admonition-title:before,
div.important p.admonition-title:before,
div.note p.admonition-title:before,
div.hint p.admonition-title:before,
div.tip p.admonition-title:before
{
display: inline-block;
font-family: FontAwesome;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
div.danger p.admonition-title:before,
div.error p.admonition-title:before {
content: "\f06a\00a0";
}
div.warning p.admonition-title:before,
div.caution p.admonition-title:before,
div.attention p.admonition-title:before {
content: "\f071\00a0";
}
div.important p.admonition-title:before,
div.note p.admonition-title:before {
content: "\f05a\00a0";
}
div.hint p.admonition-title:before,
div.tip p.admonition-title:before {
content: "\f0eb\00a0";
}
-492
View File
@@ -1,492 +0,0 @@
/*
* cutter.css_t
* based on flasky.css_t by Armin Ronacher
* ~~~~~~~~~~~~
*
*/
{% set page_width = '1300px' %}
{% set sidebar_width = '220px' %}
@import url('https://fonts.googleapis.com/css?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css?family=Inconsolata&display=swap');
@import url('basic.css');
/* -- page layout ---------------------------------------------------------- */
body {
font-family: "Poppins", sans-serif;
font-size: 16px;
background-color: white;
color: #0d1b33;
margin: 0;
padding: 0;
}
div.document {
width: {{ page_width }};
margin: 30px auto 0 auto;
}
div.documentwrapper {
float: left;
width: 100%;
}
div.bodywrapper {
margin: 0 0 0 {{ sidebar_width }};
}
div.sphinxsidebar {
width: {{ sidebar_width }};
}
hr {
border: 1px solid #b1b4b6;
}
div.body {
background-color: #fff;
color: #3e4349;
padding: 0 30px 0 30px;
}
img.floatingflask {
padding: 0 0 10px 10px;
float: right;
}
div.footer {
width: {{ page_width }};
margin: 20px auto 30px auto;
font-size: 14px;
color: #888;
text-align: right;
}
div.footer a {
color: #888;
}
div.sphinxsidebar a {
color: #444;
text-decoration: none;
border-bottom: 1px solid #999;
}
div.sphinxsidebar a:hover {
color: #216ae6;
border-bottom: 1px solid #999;
}
div.sphinxsidebar {
font-size: 14px;
line-height: 1.5;
}
div.sphinxsidebarwrapper {
padding: 18px 10px;
}
div.sphinxsidebarwrapper p.logo {
padding: 0 0 20px 0;
margin: 0;
text-align: center;
}
div.sphinxsidebar h3,
div.sphinxsidebar h4 {
font-family: Content-font, Roboto, sans-serif;
color: #444;
font-size: 18px;
font-weight: normal;
margin: 0 0 5px 0;
padding: 0;
}
div.sphinxsidebar h4 {
font-size: 20px;
}
div.sphinxsidebar h3 a {
color: #444;
}
div.sphinxsidebar p.logo a,
div.sphinxsidebar h3 a,
div.sphinxsidebar p.logo a:hover,
div.sphinxsidebar h3 a:hover {
border: none;
}
div.sphinxsidebar p {
color: #555;
margin: 10px 0;
}
div.sphinxsidebar ul {
margin: 10px 0;
padding: 0;
color: #000;
}
div.sphinxsidebar input {
border: 1px solid #ccc;
font-family: Content-font, Roboto, sans-serif;
font-size: 1em;
}
/* -- body styles ---------------------------------------------------------- */
a {
color: #004b6b;
text-decoration: underline;
}
a:hover {
color: #6d4100;
text-decoration: underline;
}
div.body h1,
div.body h2,
div.body h3,
div.body h4,
div.body h5,
div.body h6 {
color: #041e49;
font-family: Content-font, Roboto, sans-serif;
font-weight: 400;
margin: 30px 0 10px 0;
padding: 0;
}
{% if theme_index_logo %}
div.indexwrapper h1 {
text-indent: -999999px;
background: url({{ theme_index_logo }}) no-repeat center center;
height: {{ theme_index_logo_height }};
}
{% endif %}
div.body h1 { margin-top: 0; padding-top: 0; font-size: 240%; }
div.body h2 { font-size: 180%; }
div.body h3 { font-size: 150%; }
div.body h4 { font-size: 130%; }
div.body h5 { font-size: 100%; }
div.body h6 { font-size: 100%; }
a.headerlink {
color: #216ae6;
padding: 0 4px;
text-decoration: none;
}
a.headerlink:hover {
color: #041e49;
}
div.body p, div.body dd, div.body li {
line-height: 1.4;
}
dt:target, .highlight {
background: #faf3e8;
}
div.note {
background-color: #eee;
border: 1px solid #ccc;
}
div.seealso {
background-color: #ffc;
border: 1px solid #ff6;
}
div.topic {
background-color: #eee;
}
img.screenshot {
}
img.screenshot {
-moz-box-shadow: 2px 2px 4px #eee;
-webkit-box-shadow: 2px 2px 4px #eee;
box-shadow: 2px 2px 4px #eee;
}
table.docutils {
border: 1px solid #888;
-moz-box-shadow: 2px 2px 4px #eee;
-webkit-box-shadow: 2px 2px 4px #eee;
box-shadow: 2px 2px 4px #eee;
}
table.docutils td, table.docutils th {
border: 1px solid #888;
padding: 0.25em 0.7em;
}
table.field-list, table.footnote {
border: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
table.footnote {
margin: 15px 0;
width: 100%;
border: 1px solid #eee;
background: #fdfdfd;
font-size: 0.9em;
}
table.footnote + table.footnote {
margin-top: -15px;
border-top: none;
}
table.field-list th {
padding: 0 0.8em 0 0;
}
table.field-list td {
padding: 0;
}
table.footnote td.label {
width: 0;
padding: 0.3em 0 0.3em 0.5em;
}
table.footnote td {
padding: 0.3em 0.5em;
}
dl {
margin: 0;
padding: 0;
}
dl dd {
margin-left: 30px;
}
blockquote {
margin: 0 0 0 30px;
padding: 0;
}
ul, ol {
margin: 10px 0 10px 30px;
padding: 0;
}
pre {
background: #fafafa;
padding: 7px 30px;
margin: 15px -30px;
line-height: 1.3;
font-family: 'Inconsolata', monospace;
}
span.pre {
color: #e83e8c;
word-break: break-word;
font-family: SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;
}
dl pre, blockquote pre, li pre {
margin-left: -60px;
padding-left: 60px;
}
dl dl pre {
margin-left: -90px;
padding-left: 90px;
}
a.reference {
color: #216ae6;
text-decoration: none;
}
a.reference:hover {
color: #216ae6;
border-bottom: 1px solid;
}
a.footnote-reference {
color: #216ae6;
text-decoration: none;
font-size: 0.7em;
vertical-align: top;
border-bottom: 1px solid;
}
a.footnote-reference:hover {
color: #216ae6;
border-bottom: 1px solid;
}
/* Notes box */
.admonition {
border-radius: 5px;
}
.admonition.note {
color: #0c5460;
background-color: #d1ecf1;
border-color: #bee5eb;
}
/* API Reference */
.rst-content dl:not(.docutils) dt {
}
code.descname {
font-size: 14px;
}
.sig-paren {
font-size: 14px;
}
@media screen and (max-width: 1050px) {
body {
margin: 0;
padding: 20px 30px;
}
div.documentwrapper {
float: none;
background: white;
margin: 0;
}
div.sphinxsidebar {
display: block;
float: none;
width: 102.5%;
margin: 50px -30px 0;
padding: 10px 30px;
background: #333;
color: white;
}
div.sphinxsidebarwrapper {
padding: 0;
}
div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
div.sphinxsidebar h3 a {
color: white;
}
div.sphinxsidebar a {
color: #aaa;
}
div.sphinxsidebar p.logo {
display: none;
}
div.document {
width: 100%;
margin: 0;
}
div.related {
display: block;
margin: 0;
padding: 10px 0 20px 0;
}
div.related ul,
div.related ul li {
margin: 0;
padding: 0;
}
div.bodywrapper {
margin: 0;
}
div.body {
min-height: 0;
padding: 0;
}
.rtd_doc_footer {
display: none;
}
div.footer {
width: auto;
margin: 0 -30px -20px;
padding: 10px 30px 20px;
background: #333;
}
ul {
margin-left: 0;
}
}
/* Kbd Style */
kbd {
font-family: Consolas, "Lucida Console", monospace;
display: inline-block;
border-radius: 3px;
padding: 0px 4px;
box-shadow: 1px 1px 1px #777;
margin: 2px;
font-size: small;
vertical-align: text-bottom;
background: #eee;
font-weight: 500;
color: #555;
cursor: pointer;
font-variant: small-caps;
font-weight: 600;
letter-spacing: 0.5px;
letter-spacing: 1px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
kbd:hover,
kbd:hover * {
color: black;
box-shadow: 1px 1px 1px #333;
}
kbd:active,
kbd:active * {
color: black;
box-shadow: 1px 1px 0px #ddd inset;
}
kbd kbd {
padding: 0px;
margin: 0 1px;
box-shadow: 0px 0px 0px black;
vertical-align: baseline;
background: none;
}
kbd kbd:hover {
box-shadow: 0px 0px 0px black;
}
kbd:active kbd {
box-shadow: 0px 0px 0px black;
background: none;
}
-5
View File
@@ -1,5 +0,0 @@
// Make sure that external links are opened in new tabs
$(document).ready(function() {
$("a[href^='http']").attr('target','_blank');
});
-11
View File
@@ -1,11 +0,0 @@
[theme]
inherit = basic
stylesheet = cutter.css
pygments_style = flasky
[options]
index_logo =
index_logo_height = 120px
touch_icon =
github_fork =
github_ribbon_color = darkblue_121621
@@ -1,664 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="95mm"
height="60mm"
viewBox="0 0 95 60"
version="1.1"
id="svg8"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="grid.svg">
<defs
id="defs2">
<marker
inkscape:isstock="true"
style="overflow:visible"
id="marker2306"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow2Mend">
<path
transform="scale(-0.6)"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
id="path2304" />
</marker>
<marker
inkscape:collect="always"
inkscape:stockid="Arrow2Mend"
orient="auto"
refY="0"
refX="0"
id="marker1726"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path1724"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="scale(-0.6)" />
</marker>
<marker
inkscape:stockid="Arrow2Mend"
orient="auto"
refY="0"
refX="0"
id="marker1388"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path1386"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="scale(-0.6)" />
</marker>
<marker
inkscape:collect="always"
inkscape:isstock="true"
style="overflow:visible"
id="Arrow2Mend"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow2Mend">
<path
transform="scale(-0.6)"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
id="path1115" />
</marker>
<marker
inkscape:isstock="true"
style="overflow:visible"
id="Arrow2Lend"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow2Lend">
<path
transform="matrix(-1.1,0,0,-1.1,-1.1,0)"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
id="path1109" />
</marker>
<marker
style="overflow:visible"
refY="0"
refX="0"
orient="auto"
inkscape:stockid="Arrow2Sstart"
inkscape:isstock="true"
id="Arrow2Sstart">
<path
transform="matrix(0.3,0,0,0.3,-0.69,0)"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
id="Arrow2SstartPath"
d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z" />
</marker>
<marker
style="overflow:visible"
refY="0"
refX="0"
orient="auto"
inkscape:stockid="Arrow2Send"
inkscape:isstock="true"
id="Arrow2Send">
<path
transform="matrix(-0.3,0,0,-0.3,0.69,0)"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
id="Arrow2SendPath"
d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z" />
</marker>
<marker
id="Arrow2Sstart-1"
inkscape:isstock="true"
inkscape:stockid="Arrow2Sstart"
orient="auto"
refX="0"
refY="0"
style="overflow:visible">
<path
d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z"
id="Arrow2SstartPath-8"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
transform="matrix(0.3,0,0,0.3,-0.69,0)" />
</marker>
<marker
id="Arrow2Send-7"
inkscape:isstock="true"
inkscape:stockid="Arrow2Send"
orient="auto"
refX="0"
refY="0"
style="overflow:visible">
<path
d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z"
id="Arrow2SendPath-9"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
transform="matrix(-0.3,0,0,-0.3,0.69,0)" />
</marker>
<marker
inkscape:isstock="true"
style="overflow:visible"
id="marker1726-0"
refX="0"
refY="0"
orient="auto"
inkscape:stockid="Arrow2Mend">
<path
transform="scale(-0.6)"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
id="path1724-2" />
</marker>
<marker
id="Arrow2Sstart-7"
inkscape:isstock="true"
inkscape:stockid="Arrow2Sstart"
orient="auto"
refX="0"
refY="0"
style="overflow:visible">
<path
d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z"
id="Arrow2SstartPath-5"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
transform="matrix(0.3,0,0,0.3,-0.69,0)" />
</marker>
<marker
id="Arrow2Send-9"
inkscape:isstock="true"
inkscape:stockid="Arrow2Send"
orient="auto"
refX="0"
refY="0"
style="overflow:visible">
<path
d="M 8.72,4.03 -2.21,0.02 8.72,-4 c -1.75,2.37 -1.74,5.62 0,8.03 z"
id="Arrow2SendPath-2"
style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-opacity:1"
transform="matrix(-0.3,0,0,-0.3,0.69,0)" />
</marker>
<marker
inkscape:stockid="Arrow2Mend"
orient="auto"
refY="0"
refX="0"
id="marker1726-0-3"
style="overflow:visible"
inkscape:isstock="true">
<path
id="path1724-2-6"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
transform="scale(-0.6)" />
</marker>
</defs>
<sodipodi:namedview
fit-margin-bottom="0"
fit-margin-right="0"
fit-margin-left="0"
fit-margin-top="0"
inkscape:guide-bbox="true"
showguides="true"
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="4"
inkscape:cx="233.18761"
inkscape:cy="199.03882"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
inkscape:window-width="2560"
inkscape:window-height="1389"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
transform="translate(-28.381867,-41.18436)"
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<text
id="text888"
y="25.535202"
x="31.039022"
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="25.535202"
x="31.039022"
id="tspan886"
sodipodi:role="line"></tspan></text>
<text
id="text892"
y="54.462158"
x="39.601284"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="54.462158"
x="39.601284"
id="tspan890"
sodipodi:role="line"></tspan><tspan
id="tspan894"
style="stroke-width:0.264583"
y="57.989944"
x="39.601284"
sodipodi:role="line">0</tspan></text>
<text
id="text898"
y="57.95274"
x="54.8783"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="57.95274"
x="54.8783"
id="tspan896"
sodipodi:role="line">1</tspan></text>
<text
id="text902"
y="53.987171"
x="46.333523"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="53.987171"
x="46.333523"
id="tspan900"
sodipodi:role="line">0</tspan></text>
<text
id="text906"
y="53.949966"
x="62.174358"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="53.949966"
x="62.174358"
id="tspan904"
sodipodi:role="line">1</tspan></text>
<text
id="text910"
y="57.989944"
x="69.638489"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="57.989944"
x="69.638489"
id="tspan908"
sodipodi:role="line">2</tspan></text>
<text
id="text914"
y="53.987171"
x="77.340141"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="53.987171"
x="77.340141"
id="tspan912"
sodipodi:role="line">2</tspan></text>
<text
id="text918"
y="57.989944"
x="84.606102"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="57.989944"
x="84.606102"
id="tspan916"
sodipodi:role="line">3</tspan></text>
<text
id="text922"
y="53.987171"
x="92.408722"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="53.987171"
x="92.408722"
id="tspan920"
sodipodi:role="line">3</tspan></text>
<text
id="text926"
y="62.487526"
x="34.014694"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="62.487526"
x="34.014694"
id="tspan924"
sodipodi:role="line">0</tspan></text>
<text
id="text930"
y="69.829063"
x="30.262985"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="69.829063"
x="30.262985"
id="tspan928"
sodipodi:role="line">0</tspan></text>
<text
id="text934"
y="77.488907"
x="34.08773"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="77.488907"
x="34.08773"
id="tspan932"
sodipodi:role="line">1</tspan></text>
<text
id="text938"
y="85.418694"
x="30.336021"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="85.418694"
x="30.336021"
id="tspan936"
sodipodi:role="line">1</tspan></text>
<text
id="text942"
y="92.507507"
x="34.109779"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="92.507507"
x="34.109779"
id="tspan940"
sodipodi:role="line">2</tspan></text>
<text
id="text958"
y="53.987171"
x="104.5532"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="53.987171"
x="104.5532"
id="tspan956"
sodipodi:role="line">column</tspan></text>
<text
id="text962"
y="57.442863"
x="104.42841"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="57.442863"
x="104.42841"
id="tspan960"
sodipodi:role="line">edge column</tspan></text>
<text
transform="rotate(90)"
id="text966"
y="-29.273321"
x="43.529709"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="-29.273321"
x="43.529709"
id="tspan964"
sodipodi:role="line">row</tspan></text>
<text
transform="rotate(90)"
id="text970"
y="-34.055241"
x="43.230721"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="-34.055241"
x="43.230721"
id="tspan968"
sodipodi:role="line">edge row</tspan></text>
<rect
inkscape:tile-y0="29.999999"
inkscape:tile-x0="29.999999"
style="fill:none;stroke:#000000;stroke-width:0.0930854;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
id="use986"
width="64.899994"
height="4.9000001"
x="38.048389"
y="59.010197" />
<rect
inkscape:tile-y0="29.999999"
inkscape:tile-x0="29.999999"
style="fill:none;stroke:#000000;stroke-width:0.0930854;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
id="use988"
width="64.899994"
height="4.9000001"
x="38.048389"
y="74.010193" />
<rect
inkscape:tile-y0="29.999999"
inkscape:tile-x0="29.999999"
style="fill:none;stroke:#000000;stroke-width:0.0930854;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
id="use990"
width="64.899994"
height="4.9000001"
x="38.048389"
y="93.170723" />
<rect
y="-102.94839"
x="59.010201"
height="4.9000001"
width="39.061729"
id="use986-2"
style="fill:none;stroke:#000000;stroke-width:0.068298;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
inkscape:tile-x0="29.999999"
inkscape:tile-y0="29.999999"
transform="rotate(90)" />
<rect
y="-87.948387"
x="59.010201"
height="4.9000001"
width="39.061729"
id="use988-9"
style="fill:none;stroke:#000000;stroke-width:0.068298;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
inkscape:tile-x0="29.999999"
inkscape:tile-y0="29.999999"
transform="rotate(90)" />
<rect
y="-72.948387"
x="59.010201"
height="4.9000001"
width="39.061729"
id="use990-1"
style="fill:none;stroke:#000000;stroke-width:0.068298;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
inkscape:tile-x0="29.999999"
inkscape:tile-y0="29.999999"
transform="rotate(90)" />
<rect
y="-57.948387"
x="59.010201"
height="4.9000001"
width="39.061729"
id="use992-2"
style="fill:none;stroke:#000000;stroke-width:0.068298;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
inkscape:tile-x0="29.999999"
inkscape:tile-y0="29.999999"
transform="rotate(90)" />
<rect
y="-42.948387"
x="59.010201"
height="4.9000001"
width="39.061729"
id="use994-7"
style="fill:none;stroke:#000000;stroke-width:0.068298;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
inkscape:tile-x0="29.999999"
inkscape:tile-y0="29.999999"
transform="rotate(90)" />
<rect
y="64.578438"
x="58.635674"
height="8.5201521"
width="23.725426"
id="rect1026"
style="fill:none;stroke:#000000;stroke-width:0.3;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal" />
<rect
style="fill:none;stroke:#000000;stroke-width:0.3;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal"
id="rect1026-0"
width="23.725426"
height="12.675932"
x="43.635674"
y="79.704514" />
<rect
y="79.54509"
x="73.635674"
height="8.5201521"
width="23.725426"
id="rect1026-0-9"
style="fill:none;stroke:#000000;stroke-width:0.3;stroke-miterlimit:4;stroke-dasharray:none;paint-order:normal" />
<path
sodipodi:nodetypes="ccccc"
d="m 69.327077,73.163441 v 3.205877 H 55.388909 v 0 3.30445"
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#Arrow2Mend)"
id="path1085" />
<path
sodipodi:nodetypes="cccc"
id="path1384"
d="m 71.333422,73.07529 v 3.336512 h 13.367971 v 3.090428"
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker1388)" />
<text
id="text1428"
y="84.689873"
x="81.704636"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="84.689873"
x="81.704636"
id="tspan1426"
sodipodi:role="line">(2, 1)</tspan></text>
<text
xml:space="preserve"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
x="66.704636"
y="69.723213"
id="text1428-6"><tspan
sodipodi:role="line"
id="tspan1426-0"
x="66.704636"
y="69.723213"
style="stroke-width:0.264583">(1, 0)</tspan></text>
<text
xml:space="preserve"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
x="51.704636"
y="86.927185"
id="text1428-62"><tspan
sodipodi:role="line"
id="tspan1426-6"
x="51.704636"
y="86.927185"
style="stroke-width:0.264583">(0, 1)</tspan></text>
<path
id="path1646"
d="m 85.036709,74.435098 -0.0099,1.431015"
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Arrow2Sstart);marker-end:url(#Arrow2Send)" />
<text
id="text1720"
y="70.049362"
x="100.38699"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
xml:space="preserve"><tspan
style="stroke-width:0.264583"
y="70.049362"
x="100.38699"
id="tspan1718"
sodipodi:role="line">segment offset</tspan></text>
<path
sodipodi:nodetypes="cc"
id="path1722"
d="M 100.24627,70.152448 85.644108,75.098641"
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:0.264583, 0.529166;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker1726)" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Arrow2Sstart-1);marker-end:url(#Arrow2Send-7)"
d="m 68.570639,77.662689 2.143251,0.0099"
id="path1646-2" />
<path
sodipodi:nodetypes="cc"
id="path2057"
d="m 71.333422,76.411802 v 1.307449"
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:0.264583, 0.264583;stroke-dashoffset:0;stroke-opacity:1" />
<path
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:0.264583, 0.529167;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker1726-0)"
d="M 100.24627,70.152448 72.043698,77.555282"
id="path1722-3"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cccccc"
id="path2302"
d="m 85.503654,88.13046 0.02905,1.836997 h 13.86685 V 76.894177 H 87.138853 v 2.494365"
style="fill:none;stroke:#000000;stroke-width:0.264583px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;marker-end:url(#marker2306)" />
<path
sodipodi:nodetypes="cc"
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#Arrow2Sstart-7);marker-end:url(#Arrow2Send-9)"
d="m 88.729129,90.472837 -0.0099,2.246409"
id="path1646-28" />
<text
xml:space="preserve"
style="font-size:2.82223px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;stroke-width:0.264583"
x="101.43018"
y="90.213501"
id="text1720-9"><tspan
sodipodi:role="line"
id="tspan1718-7"
x="101.43018"
y="90.213501"
style="stroke-width:0.264583">negative</tspan><tspan
id="tspan2627"
sodipodi:role="line"
x="101.43018"
y="93.741287"
style="stroke-width:0.264583">segment offset</tspan></text>
<path
sodipodi:nodetypes="cc"
id="path1722-3-1"
d="M 102.58403,91.354862 89.524132,91.884014"
style="fill:none;stroke:#000000;stroke-width:0.264583;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:0.264583, 0.529167;stroke-dashoffset:0;stroke-opacity:1;marker-end:url(#marker1726-0-3)" />
</g>
<g
transform="translate(-28.381867,-41.18436)"
style="display:inline"
inkscape:label="Layer 2"
id="layer2"
inkscape:groupmode="layer" />
</svg>

Before

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because it is too large. Load diff

Before

Width:  |  Height:  |  Size: 58 KiB

@@ -1,543 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
inkscape:version="1.0 (4035a4fb49, 2020-05-01)"
sodipodi:docname="layout_compacting.svg"
id="svg33"
viewBox="0 0 266.6575 152.92204"
version="1.2"
height="203.89606"
width="355.54333">
<metadata
id="metadata37">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
lock-margins="true"
fit-margin-bottom="10"
fit-margin-right="10"
fit-margin-left="10"
fit-margin-top="10"
inkscape:current-layer="svg33"
inkscape:window-maximized="1"
inkscape:window-y="0"
inkscape:window-x="0"
inkscape:cy="120.22566"
inkscape:cx="319.30409"
inkscape:zoom="2.4621622"
inkscape:snap-midpoints="true"
inkscape:guide-bbox="true"
showguides="true"
inkscape:snap-object-midpoints="true"
showgrid="false"
id="namedview35"
inkscape:window-height="1390"
inkscape:window-width="2560"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
guidetolerance="10"
gridtolerance="10"
objecttolerance="10"
borderopacity="1"
bordercolor="#666666"
pagecolor="#ffffff" />
<defs
id="defs11">
<marker
orient="auto"
overflow="visible"
id="marker2914">
<path
id="path2"
stroke-width="1pt"
stroke="#005f87"
fill-rule="evenodd"
fill="#005f87"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2850">
<path
id="path5"
stroke-width="1pt"
stroke="#5f8700"
fill-rule="evenodd"
fill="#5f8700"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2786">
<path
id="path8"
stroke-width="1pt"
stroke="#e03030"
fill-rule="evenodd"
fill="#e03030"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
id="marker2786-3"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#e03030"
fill-rule="evenodd"
stroke="#e03030"
stroke-width="1pt"
id="path8-6" />
</marker>
<marker
id="marker2850-7"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#5f8700"
fill-rule="evenodd"
stroke="#5f8700"
stroke-width="1pt"
id="path5-5" />
</marker>
<marker
id="marker2914-1"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#005f87"
fill-rule="evenodd"
stroke="#005f87"
stroke-width="1pt"
id="path2-2" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2914-1-3">
<path
id="path2-2-6"
stroke-width="1pt"
stroke="#005f87"
fill-rule="evenodd"
fill="#005f87"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2914-1-6">
<path
id="path2-2-2"
stroke-width="1pt"
stroke="#005f87"
fill-rule="evenodd"
fill="#005f87"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
id="marker2914-8"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#005f87"
fill-rule="evenodd"
stroke="#005f87"
stroke-width="1pt"
id="path2-7" />
</marker>
<marker
id="marker2786-9"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#e03030"
fill-rule="evenodd"
stroke="#e03030"
stroke-width="1pt"
id="path8-2" />
</marker>
<marker
id="marker2850-0"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#5f8700"
fill-rule="evenodd"
stroke="#5f8700"
stroke-width="1pt"
id="path5-2" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2786-3-3">
<path
id="path8-6-6"
stroke-width="1pt"
stroke="#e03030"
fill-rule="evenodd"
fill="#e03030"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2850-7-1">
<path
id="path5-5-2"
stroke-width="1pt"
stroke="#5f8700"
fill-rule="evenodd"
fill="#5f8700"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
orient="auto"
overflow="visible"
id="marker2914-1-9">
<path
id="path2-2-3"
stroke-width="1pt"
stroke="#005f87"
fill-rule="evenodd"
fill="#005f87"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
transform="matrix(-0.2,0,0,-0.2,-1.2,0)" />
</marker>
<marker
id="marker2914-1-3-1"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#005f87"
fill-rule="evenodd"
stroke="#005f87"
stroke-width="1pt"
id="path2-2-6-9" />
</marker>
<marker
id="marker2914-1-6-4"
overflow="visible"
orient="auto">
<path
transform="matrix(-0.2,0,0,-0.2,-1.2,0)"
d="M 0,0 5,-5 -12.5,0 5,5 Z"
fill="#005f87"
fill-rule="evenodd"
stroke="#005f87"
stroke-width="1pt"
id="path2-2-2-7" />
</marker>
</defs>
<rect
x="19.86875"
y="20.397875"
width="101.07"
height="13.331"
stroke-width="0.1395"
id="rect13"
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-linecap:square;stroke-linejoin:bevel" />
<rect
id="rect15"
height="9.3690996"
width="24.597"
y="38.912872"
x="58.105747"
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel" />
<rect
id="rect17"
height="9.3690996"
width="24.597"
y="52.641872"
x="7.5697498"
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel" />
<rect
id="rect19"
height="9.3690996"
width="24.597"
y="52.641872"
x="108.64275"
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel" />
<path
d="m 70.404751,33.721873 v 5.2398"
marker-end="url(#marker2914)"
stroke="#005f87"
stroke-width="0.75px"
id="path25"
style="fill:none" />
<path
d="m 68.750751,48.243873 v 1.8828 h -48.882 v 2.5231"
marker-end="url(#marker2786)"
stop-color="#000000"
stroke="#e03030"
stroke-miterlimit="2"
stroke-width="0.75"
style="font-variation-settings:normal;fill:none"
id="path27" />
<path
d="m 71.872751,48.256873 v 1.8696 h 49.067999 v 3.2324"
marker-end="url(#marker2850)"
stroke="#5f8700"
stroke-width="0.75px"
id="path29"
style="fill:none" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="206.91023"
y="7.5697498"
width="24.596998"
height="9.3690987"
id="rect15-3" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="181.84999"
y="20.957253"
width="24.596998"
height="28.024694"
id="rect17-5" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="234.49074"
y="21.999752"
width="24.596998"
height="9.3690987"
id="rect19-6" />
<path
sodipodi:nodetypes="cccc"
id="path27-2"
style="font-variation-settings:normal;fill:none;marker-end:url(#marker2786-3)"
stroke-width="0.75"
stroke-miterlimit="2"
stroke="#e03030"
stop-color="#000000"
marker-end="url(#marker2786-3)"
d="m 217.55525,16.90075 v 1.8828 h -24.43006 v 2.5231" />
<path
sodipodi:nodetypes="cccc"
style="fill:none;marker-end:url(#marker2850-7)"
id="path29-9"
stroke-width="0.75px"
stroke="#5f8700"
marker-end="url(#marker2850-7)"
d="m 220.67725,16.91375 v 1.8696 h 26.11198 v 3.2324" />
<rect
id="rect19-6-0"
height="9.3690987"
width="24.596998"
y="54.221745"
x="181.84999"
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel" />
<path
style="fill:none;marker-end:url(#marker2914-1)"
id="path25-7"
stroke-width="0.75px"
stroke="#005f87"
marker-end="url(#marker2914-1)"
d="m 194.14849,48.981943 v 5.2398" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="234.49074"
y="54.221745"
width="24.596998"
height="9.3690987"
id="rect19-6-0-9" />
<path
sodipodi:nodetypes="cc"
d="M 246.78923,31.368849 V 54.148584"
marker-end="url(#marker2914-1-3)"
stroke="#005f87"
stroke-width="0.75px"
id="path25-7-0"
style="fill:none;marker-end:url(#marker2914-1-3)" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="234.49074"
y="68.830635"
width="24.596998"
height="9.3690987"
id="rect19-6-0-6" />
<path
d="m 246.78923,63.590837 v 5.2398"
marker-end="url(#marker2914-1-6)"
stroke="#005f87"
stroke-width="0.75px"
id="path25-7-1"
style="fill:none;marker-end:url(#marker2914-1-6)" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-linecap:square;stroke-linejoin:bevel"
id="rect13-3"
stroke-width="0.1395"
height="13.330999"
width="101.06999"
y="86.583054"
x="21.267822" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="59.50481"
y="105.09805"
width="24.596998"
height="9.3690987"
id="rect15-7" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="45.492069"
y="120.35294"
width="24.596998"
height="9.3690987"
id="rect17-59" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="73.206848"
y="120.35294"
width="24.596998"
height="9.3690987"
id="rect19-2" />
<path
style="fill:none;marker-end:url(#marker2914-8)"
id="path25-2"
stroke-width="0.75px"
stroke="#005f87"
marker-end="url(#marker2914-8)"
d="m 71.803816,99.907053 v 5.239787" />
<path
sodipodi:nodetypes="cccc"
id="path27-8"
style="font-variation-settings:normal;fill:none;marker-end:url(#marker2786-9)"
stroke-width="0.75"
stroke-miterlimit="2"
stroke="#e03030"
stop-color="#000000"
marker-end="url(#marker2786-9)"
d="m 70.149816,114.42904 v 1.8828 H 57.91528 v 3.82797" />
<path
sodipodi:nodetypes="cccc"
style="fill:none;marker-end:url(#marker2850-0)"
id="path29-97"
stroke-width="0.75px"
stroke="#5f8700"
marker-end="url(#marker2850-0)"
d="m 73.271816,114.44204 v 1.8696 h 12.721232 v 3.23241" />
<g
transform="translate(-35.90579,-13.250133)"
id="g1598">
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="241.84329"
y="102.58134"
width="24.596998"
height="9.3690987"
id="rect15-3-8" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="216.78305"
y="115.96884"
width="24.596998"
height="28.024693"
id="rect17-5-4" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="269.4238"
y="117.01134"
width="24.596998"
height="9.3690987"
id="rect19-6-5" />
<path
sodipodi:nodetypes="cccc"
id="path27-2-0"
style="font-variation-settings:normal;fill:none;marker-end:url(#marker2786-3-3)"
stroke-width="0.75"
stroke-miterlimit="2"
stroke="#e03030"
stop-color="#000000"
marker-end="url(#marker2786-3-3)"
d="m 252.48832,111.91234 v 1.8828 h -24.43006 v 2.5231" />
<path
sodipodi:nodetypes="cccc"
style="fill:none;marker-end:url(#marker2850-7-1)"
id="path29-9-3"
stroke-width="0.75px"
stroke="#5f8700"
marker-end="url(#marker2850-7-1)"
d="m 255.61032,111.92534 v 1.8696 h 26.11198 v 3.2324" />
<rect
id="rect19-6-0-61"
height="9.3690987"
width="24.596998"
y="149.23332"
x="216.78305"
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel" />
<path
style="fill:none;marker-end:url(#marker2914-1-9)"
id="path25-7-06"
stroke-width="0.75px"
stroke="#005f87"
marker-end="url(#marker2914-1-9)"
d="m 229.08156,143.99353 v 5.2398" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="269.4238"
y="130.94421"
width="24.596998"
height="9.3690987"
id="rect19-6-0-9-3" />
<path
sodipodi:nodetypes="cc"
d="m 281.7223,126.38044 v 4.19969"
marker-end="url(#marker2914-1-3-1)"
stroke="#005f87"
stroke-width="0.75px"
id="path25-7-0-2"
style="fill:none;marker-end:url(#marker2914-1-3-1)" />
<rect
style="fill:#f5faff;fill-rule:evenodd;stroke:#91c8fa;stroke-width:0.1395;stroke-linecap:square;stroke-linejoin:bevel"
x="269.4238"
y="145.55312"
width="24.596998"
height="9.3690987"
id="rect19-6-0-6-0" />
<path
d="m 281.7223,140.31331 v 5.2398"
marker-end="url(#marker2914-1-6-4)"
stroke="#005f87"
stroke-width="0.75px"
id="path25-7-1-6"
style="fill:none;marker-end:url(#marker2914-1-6-4)" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 16 KiB

-9
View File
@@ -1,9 +0,0 @@
.. _api:
API Reference
==============
.. toctree::
:glob:
api/*
-370
View File
@@ -1,370 +0,0 @@
Building
========
.. note::
If you just want to use the latest Release version of Cutter, please note
that we provide pre-compiled binaries for Windows, Linux and macOS on
our `release page. <https://github.com/radareorg/cutter/releases/latest>`_
Getting the Source
------------------
Make sure you've ``git`` installed in your system (`Installation guide <https://git-scm.com/book/en/v2/Getting-Started-Installing-Git>`_) and do the following:
.. code-block:: sh
git clone --recurse-submodules https://github.com/radareorg/cutter
This will clone the Cutter source and it's dependencies(radare2, etc.)
under **cutter** and you should see the following dir structure:
.. code-block:: sh
cutter/-|
|-docs/ # Cutter Documentation
|-radare2/ # radare2 submodule
|-src/ # Cutter Source Code
Following sections assume that **cutter** is your working dir. (if not, do ``cd cutter``)
Building on Linux
-----------------
Requirements
~~~~~~~~~~~~
On Linux, you will need:
* build-essential
* cmake
* meson
* libzip-dev
* libzlib-dev
* qt5
* qt5-svg
* pkgconf
* curl*
* python-setuptools*
* KSyntaxHighlighter**
* graphviz**
`*` Recommended while building with ``make``/``Cmake``.
`**` Optional. If present, these add extra features to Cutter. See `CMake Building Options`_.
On Debian-based Linux distributions, all of these essential packages can be installed with this single command:
::
sudo apt install build-essential cmake meson libzip-dev zlib1g-dev qt5-default libqt5svg5-dev qttools5-dev qttools5-dev-tools
.. note::
For Ubuntu 18.04 and lower, ``meson`` should be installed with ``pip install --upgrade --user meson``.
On Arch-based Linux distributions:
::
sudo pacman -Syu --needed base-devel cmake meson qt5-base qt5-svg qt5-tools
Building Steps
~~~~~~~~~~~~~~
The recommended way to build Cutter on Linux is by using CMake. Simply invoke CMake to build Cutter and its dependency radare2.
.. code:: sh
mkdir build && cd build
cmake -DCUTTER_USE_BUNDLED_RADARE2=ON ../src
cmake --build .
If your operating system has a newer version of CMake (> v3.12) you can use this cleaner solution:
.. code:: sh
cmake -S src -B build -DCUTTER_USE_BUNDLED_RADARE2=ON
cmake --build build
.. note::
If you want to use Cutter with another version of radare2 you can omit ``-DCUTTER_USE_BUNDLED_RADARE2=ON``. Note that using a version of radare2 which isn't the version Cutter is using can cause issues and the compilation might fail.
.. note::
If you are interested in building Cutter with support for Python plugins,
Syntax Highlighting, Crash Reporting and more,
please look at the full list of `CMake Building Options`_.
After the build process is complete, you should have the ``Cutter`` executable in the **build** dir.
You can now execute Cutter like this:
.. code:: sh
./build/Cutter
Building on Windows
-------------------
Requirements
~~~~~~~~~~~~
Cutter works on Windows 7 or newer.
To compile Cutter it is necessary to have the following installed:
* A version of Visual Studio (2015, 2017 and 2019 are supported)
* CMake
* Qt
Recommended Way
~~~~~~~~~~~~~~~
To build Cutter on Windows machines using CMake,
you will have to make sure that the executables are available
in your ``%PATH%`` environment variable.
Note that the paths below may vary depending on your version of Qt and Visual Studio.
.. code:: batch
set CMAKE_PREFIX_PATH=c:\Qt\qt-5.6.2-msvc2013-x86\5.6\msvc2013\lib\cmake
cd src
mkdir build
cd build
cmake-gui ..
Click ``Configure`` and select your version of Visual Studio from the list,
for example ``Visual Studio 14 2015``.
After the configuration is done, click ``Generate`` and you can open
``Cutter.sln`` to compile the code as usual.
Building with Meson
~~~~~~~~~~~~~~~~~~~
There is another way to compile Cutter on Windows if the one above does
not work or does not suit your needs.
Additional requirements:
- Ninja build system
- Meson build system
Download and unpack
`Ninja <https://github.com/ninja-build/ninja/releases>`__ to the Cutter
source root directory (ie. **cutter** - working dir).
Note that in the below steps, the paths may vary depending on your version of Qt and Visual Studio.
Environment settings (example for x64 version):
.. code:: batch
:: Export MSVC variables
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
:: Add qmake to PATH
SET "PATH=C:\Qt\5.10.1\msvc2015_64\bin;%PATH%"
:: Add Python to PATH
SET "PATH=C:\Program Files\Python36;%PATH%"
Install Meson:
.. code:: batch
python -m pip install meson
To compile Cutter, run:
.. code:: batch
CALL prepare_r2.bat
CALL build.bat
--------------
Building with Qmake
-------------------
Using QtCreator
~~~~~~~~~~~~~~~
One standard way is to simply load the project inside QtCreator.
To do so, open QtCreator and on the welcome screen click on "Open Project",
and finally select the ``cutter/src/Cutter.pro`` file.
QtCreator will then allow you to directly edit the source code and build the project.
.. note::
On **Windows**, for the ``.pro`` file to be compiled successfully, it is required
to run ``prepare_r2.bat`` beforehand.
Compiling on Linux / macOS
~~~~~~~~~~~~~~~~~~~~~~~~~~
The easiest way, but not the one we recommend, is to simply run ``./build.sh`` from the root directory,
and let the magic happen. The script will use ``qmake`` to build Cutter.
The ``build.sh`` script is meant to be deprecated and will be deleted in the future.
If you want to manually use qmake, follow these steps:
.. code:: sh
mkdir build; cd build
qmake ../src/Cutter.pro
make
cd ..
Additional Steps for macOS
~~~~~~~~~~~~~~~~~~~~~~~~~~
On macOS you will also have to copy the launcher bash script:
.. code:: sh
mv Cutter.app/Contents/MacOS/Cutter Cutter.app/Contents/MacOS/Cutter.bin
cp ../src/macos/Cutter Cutter.app/Contents/MacOS/Cutter && chmod +x Cutter.app/Contents/MacOS/Cutter
--------------
CMake Building Options
----------------------
Note that there are some major building options available:
* ``CUTTER_USE_BUNDLED_RADARE2`` automatically compile Radare2 from submodule.
* ``CUTTER_ENABLE_PYTHON`` compile with Python support.
* ``CUTTER_ENABLE_PYTHON_BINDINGS`` automatically generate Python Bindings with Shiboken2, required for Python plugins!
* ``CUTTER_ENABLE_KSYNTAXHIGHLIGHTING`` use KSyntaxHighlighting for code highlighting.
* ``CUTTER_ENABLE_GRAPHVIZ`` enable Graphviz for graph layouts.
* ``CUTTER_EXTRA_PLUGIN_DIRS`` List of addition plugin locations. Useful when preparing package for Linux distros that have strict package layout rules.
Cutter binary release options, not needed for most users and might not work easily outside CI environment:
* ``CUTTER_ENABLE_CRASH_REPORTS`` is used to compile Cutter with crash handling system enabled (Breakpad).
* ``CUTTER_ENABLE_DEPENDENCY_DOWNLOADS`` Enable downloading of dependencies. Setting to OFF doesn't affect any downloads done by r2 build. This option is used for preparing Cutter binary release packges. Turned off by default.
* ``CUTTER_PACKAGE_DEPENDENCIES`` During install step include the third party dependencies. This option is used for preparing Cutter binary release packges.
These options can be enabled or disabled from the command line arguments passed to CMake.
For example, to build Cutter with support for Python plugins, you can run this command:
::
cmake -B build -DCUTTER_ENABLE_PYTHON=ON -DCUTTER_ENABLE_PYTHON_BINDINGS=ON
Or if one wants to explicitly disable an option:
::
cmake -B build -DCUTTER_ENABLE_PYTHON=OFF
--------------
Compiling Cutter with Breakpad Support
--------------------------------------
If you want to build Cutter with crash handling system, you will want to first prepare Breakpad.
For this, simply run one of the scripts (according to your OS) from root Cutter directory:
.. code:: sh
source scripts/prepare_breakpad_linux.sh # Linux
source scripts/prepare_breakpad_macos.sh # MacOS
scripts/prepare_breakpad.bat # Windows
Then if you are building on Linux you want to change ``PKG_CONFIG_PATH`` environment variable
so it contains ``$CUSTOM_BREAKPAD_PREFIX/lib/pkgconfig``. For this simply run
.. code:: sh
export PKG_CONFIG_PATH="$CUSTOM_BREAKPAD_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"
--------------
Troubleshooting
---------------
* **Cmake can't find Qt**
Cmake: qt development package not found
Depending on how Qt installed (Distribution packages or using the Qt
installer application), CMake may not be able to find it by itself if it
is not in a common place. If that is the case, double-check that the
correct Qt version is installed. Locate its prefix (a directory
containing bin/, lib/, include/, etc.) and specify it to CMake using
``CMAKE_PREFIX_PATH`` in the above process, e.g.:
::
rm CMakeCache.txt # the cache may be polluted with unwanted libraries found before
cmake -DCMAKE_PREFIX_PATH=/opt/Qt/5.9.1/gcc_64 ..
* **Radare2's libr_*.so cannot be found when running Cutter**
./Cutter: error while loading shared libraries: libr_lang.so: cannot open shared object file: No such file or directory
The exact r2 .so file that cannot be found may vary. On some systems, the linker by default uses RUNPATH instead of RPATH which is incompatible with the way r2 is currently compiled. It results in some of the r2 libraries not being found when running cutter. You can verify if this is the problem by running `ldd ./Cutter`. If all the r2 libraries are missing you have a different problem.
The workaround is to either add the `--disable-new-dtags` linker flag when compiling Cutter or add the r2 installation path to LD_LIBRARY_PATH environment variable.
::
cmake -DCMAKE_EXE_LINKER_FLAGS="-Wl,--disable-new-dtags" ..
* **r_*.h: No such file or directory**
r_util/r_annotated_code.h: No such file or directory
If you face an error where some header file starting with ``r_`` is missing, you should check the **radare2** submodule and
make sure it is in sync with upstream **Cutter** repo. Simply run:
::
git submodule update --init --recursive
* **r_core development package not found**
If you installed radare2 and still encounter this error, it could be that your
``PATH`` environment variable is set improperly (doesn’t contain
``/usr/local/bin``). You can fix this by adding the radare2 installation dir to
your ``PATH`` variable.
macOS specific solutions:
On macOS, that can also be, for example, due to ``Qt Creator.app``
being copied over to ``/Applications``. To fix this, append
``:/usr/local/bin`` to the ``PATH`` variable within the *Build
Environment* section in Qt Creator. See the screenshot below should you
encounter any problems.
You can also try:
- ``PKG_CONFIG_PATH=$HOME/bin/prefix/radare2/lib/pkgconfig qmake``
- ``PKG_CONFIG_PATH=$HOME/cutter/radare2/pkgcfg qmake`` (for a newer
version and if the radare2 submodule is being built and used)
.. image:: images/cutter_path_settings.png
You can also install radare2 into ``/usr/lib/pkgconfig/`` and then
add a variable ``PKG_CONFIG_PATH`` with the value ``/usr/lib/pkgconfig/``.
* **macOS libjpeg error**
On macOS, Qt5 apps fail to build on QtCreator if you have the ``libjpeg``
installed with brew. Run this command to work around the issue:
::
sudo mv /usr/local/lib/libjpeg.dylib /usr/local/lib/libjpeg.dylib.not-found
* **LSOpenURLsWithRole() failed with error -10810**
On macOS High Sierra Cutter crashes due to the absence of ``gettext`` library. To fix this problem, simply install the missing package:
::
brew install gettext
-201
View File
@@ -1,201 +0,0 @@
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = 'Cutter'
copyright = '2020, The Cutter Developers'
author = 'The Cutter Developers'
# The short X.Y version
version = '1.12'
# The full version, including a2lpha/beta/rc tags
release = '1.12.0'
# -- General configuration ---------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#
# needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'breathe',
'recommonmark',
'sphinx.ext.autosectionlabel'
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
# source_suffix = '.rst'
source_suffix = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}
# The master toctree document.
master_doc = 'index'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build']
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'rainbow_dash'
autosectionlabel_prefix_document = True
autosectionlabel_maxdepth = 2
# -- Options for Breathe -----------------------------------------------------
breathe_projects = { 'cutter': '../doxygen-out/xml' }
breathe_default_project = 'cutter'
breathe_default_members = ('members', 'undoc-members')
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'cutter_theme'
html_theme_path = ['..']
html_logo = '../../src/img/cutter.ico'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ['static']
html_js_files = [
'cutter.js',
]
html_css_files = [
'cutter.css',
'admonitions.css'
]
# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# Default: html_sidebars = {
# '**': ['globaltoc.html', 'sourcelink.html', 'searchbox.html'],
# 'using/windows': ['windowssidebar.html', 'searchbox.html'],
# }
html_sidebars = {
'**': ['globaltoc.html', 'searchbox.html'],
}
# -- Options for HTMLHelp output ---------------------------------------------
# Output file base name for HTML help builder.
htmlhelp_basename = 'CutterDoc'
# -- Options for LaTeX output ------------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#
# 'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#
# 'preamble': '',
# Latex figure (float) alignment
#
# 'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'Cutter.tex', 'Cutter Documentation',
'The Cutter Developers', 'manual'),
]
# -- Options for manual page output ------------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'cutter', 'Cutter Documentation',
[author], 1)
]
# -- Options for Texinfo output ----------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'Cutter', 'Cutter Documentation',
author, 'Cutter', 'One line description of project.',
'Miscellaneous'),
]
# -- Options for Epub output -------------------------------------------------
# Bibliographic Dublin Core info.
epub_title = project
# The unique identifier of the text. This can be a ISBN number
# or the project homepage.
#
# epub_identifier = ''
# A unique identification for the text.
#
# epub_uid = ''
# A list of files that should not be packed into the epub file.
epub_exclude_files = ['search.html']
-29
View File
@@ -1,29 +0,0 @@
Contributing to Cutter
=======================
So you like Cutter and want to get involved? Great! This part of the documentation will help and guide you through everything you need to know when contributing to Cutter. Welcome, we're delighted to see you!
.. tip::
**Need help?** Our community strives to be friendly, open, and accessible for new contributors. If you have any difficulties getting involved or finding answers to you questions, please `come and ask your questions on our Telegram or IRC groups <https://cutter.re/#community>`_.
We know that set up to work on Cutter and finding issues that are a good fit for your skills can be a challenge. We're always looking for ways to improve this process: making Cutter more open, accessible, and easier to participate with. If you're having any trouble following this documentation or hit a barrier you can't get around, please contact us.
.. rubric:: How do you want to help?
.. raw:: html
<a class="btn btn-outline-primary btn-lg m-2" role="button" href="contributing/code/getting-started.html">Code</a>
<a class="btn btn-outline-warning btn-lg m-2" role="button" href="contributing/docs/getting-started.html">Documentation</a>
<a class="btn btn-outline-success btn-lg m-2" role="button" href="contributing/plugins/getting-started.html">Plugins</a>
<a class="btn btn-outline-info btn-lg m-2" role="button" href="contributing/translations/getting-started.html">Translations</a>
---------
.. toctree::
:maxdepth: 2
:titlesonly:
contributing/code
contributing/docs
contributing/translations/getting-started
contributing/plugins/getting-started
-14
View File
@@ -1,14 +0,0 @@
Developer Documentation
=======================
.. note::
New to Cutter development? Check out our :doc:`tutorial for new developers <code/getting-started>`.
.. toctree::
:maxdepth: 2
:glob:
Getting Started <code/getting-started>
code/development-guidelines
code/ide-setup
code/*
@@ -1,32 +0,0 @@
Crash Handling System
=====================
Cutter uses `Breakpad <https://github.com/google/breakpad>`__ as a backend
for crash handling.
Crash Handling System is disabled by default to not interfere with developers while debugging.
To enable this system, set the ``CUTTER_ENABLE_CRASH_REPORTS`` build option.
Solution Description
--------------------
There are only 2 source files:
* ``CrashHandler.h``
* ``CrashHandler.cpp``
And the API is very simple: One function, ``initCrashHandler()``, enables the Crash Handling System if
``CUTTER_ENABLE_CRASH_REPORTS`` is true, otherwise it does nothing.
As soon as a signal is raised, ``crashHandler(int signum)`` is called with the signal's code as an argument.
This function first writes a crash dump to the operating system's temporary directory to catch core and
memory state as it was at the moment of the crash.
Then the crash dialog is shown:
.. image :: /images/crash-dialog.png
If the user chooses to create a crash dump, the prepared dump is moved to the directory specified by the user.
And then the success dialog is shown:
.. image :: /images/success-dump-dialog.png
@@ -1,266 +0,0 @@
Cutter Development Guidelines
===============================
.. note::
New to Cutter development? Check out our :doc:`tutorial for new developers <getting-started>`.
Common Usage
--------------
CutterCore Class
~~~~~~~~~~~~~~~~
This is the main class where every link with r2 is made. It is *unique*
across the whole process. To access it, simply call ``Core()``.
Example:
.. code:: cpp
Core()->getOffset();
Calling a radare2 Command
~~~~~~~~~~~~~~~~~~~~~~~~~
There are multiple ways to call a radare2 command:
- ``CutterCore::cmdj(<command>)`` - To be used with json commands like ``cmdj("agj")`` or ``cmdj("aflj")``.
This is the command we used to fetch structured data from radare2.
- ``CutterCore::cmdRaw(<command>)`` - Executes a single radare2 command
without going through radare2 shell functionality like output redirects, grep, and multiple command parsing.
The command then returns its output. This should be used when a command doesn't have output or the output should be handled as-is. If possible, using the JSON variation with ``cmdj`` is always preferred.
- ``CutterCore::cmdRawAt(<command>, <address>)`` - Executes a single radare2 command in a given address and returns the output. This helps avoiding weird strings concatenation like ``cmd("ph " + hash + " @ " + QString::num(address))``.
- ``CutterCore::cmd()`` - *(Discouraged)* Only use it when ``cmdj`` or ``cmdRaw`` cannot be used. This is used for complex commands using concatenation of several commands (``px 5; pd 7; afl;``), for grepping (``pd 5~call``). for commands inside commands (``?e `afn.```) and so on.
This is also used when the output is complex and is not parsed correctly in ``cmdRaw``.
Make sure to carefully sanitize user-controlled variables that are passed to the command, to avoid unexpected command injections.
Generally, if one needs to retrieve information from a radare2 command, it
is preferred to use the JSON API.
Example:
.. code:: cpp
QJsonArray array = Core()->cmdj("pdj 1 @ main").array();
Seek the Current File
~~~~~~~~~~~~~~~~~~~~~
To modify radare2 seek use ``CutterCore::seek(const RVA offset)``. This
is important because it will emit a
``CutterCore::seekChanged(RVA offset)`` signal. Never ever call
``cmd("s offset")``;
Example:
.. code:: cpp
Core()->seek(0x00C0FFEE);
.. note::
Cutter also supports a silent seek which doesn't trigger the ``seekChanged`` event and doesn't add new entries to the seek history.
Creating a Widget
~~~~~~~~~~~~~~~~~
Make sure to connect the ``CutterCore::seekChanged(RVA offset)`` signal
so your widget refreshes its output when radare2 seek is modified
(switching to another function, etc.).
Coding Style
------------
In general, we follow `the official Qt guidelines <https://wiki.qt.io/Qt_Coding_Style>`__ to
format the code. If in doubt, you can use `AStyle
2.06 <https://sourceforge.net/projects/astyle/files/astyle/astyle%202.06/>`__
to format the code. The command line for formatting the code according
to the style is:
.. code:: bash
astyle --project=src/Cutter.astylerc src/filename.cpp
In contrast to the official guidelines of Qt, in Cutter we always use curly braces in conditional statements, even if the body of a conditional statement contains only one line.
.. code:: cpp
// Wrong
if (address.isEmpty())
return false;
// Correct
if (address.isEmpty()) {
return false;
}
// Wrong
for (int i = 0; i < 10; ++i)
qDebug("%i", i);
// Correct
for (int i = 0; i < 10; ++i) {
qDebug("%i", i);
}
Includes
~~~~~~~~
Strive to include only **required** definitions inside header files.
This will avoid triggering additional unnecessary compilations.
If you only need to know that a class exists but don't need the prototype,
you can declare the class like this:
.. code:: cpp
class MyClassThatExists;
/** ... **/
private:
MyClassThatExists *classInstance;
And then include the class header inside your .cpp so you can use that class.
If you need something in the source file (.cpp) that is not a class member,
then add the include in the source file.
The includes must be ordered from local to global. That is, first include
any local header file (with double quotes like `#include "common/Helpers.h"`.
Then, after an empty newline, include Qt definitions like
`#include <QShortcut>`.
Finally, include the standard C++ headers you need.
Includes must be sorted by alphabetical order.
Docstrings
~~~~~~~~~~
Our API reference is generated using Doxygen, so when it comes to
function documentation, please use the following format:
.. code:: cpp
/**
* @brief Add a new param to the accumulator
*/
virtual void accumulate(RefreshDeferrerParams params) =0;
Loops
~~~~~
We use the C++11 foreach loop style, which means any “foreach” loop should
look like:
.. code:: cpp
for (QJsonValue value : importsArray) {
doSomething(value);
}
nullptr
~~~~~~~
Please do not use ``0`` nor ``Q_NULLPTR``, only use ``nullptr``.
Example:
.. code:: cpp
QObject *object = nullptr;
Connecting Qt Signals
~~~~~~~~~~~~~~~~~~~~~
Use one of the following methods for connecting signals to slots:
.. code:: cpp
// typically you will make connection in the constructor to a member of current class
connect(this->ui->button1, &QPushButton::clicked,
this, &MyObject::buttonClicked); // Good
// you can also connect directly other object slots
connect(checkbox, &QCheckBox::toggled, widget, &QWidget::setEnabled); // Good
// use lambda for passing extra arguments
connect(button1, &QPushButton::clicked, this, [this](){ foo(getBar()); }); // Good
This syntax performs compile-time type checks and allows the use of lambda
functions. Other approaches for connecting signals can silently break at runtime.
Don't use the older macro based syntax or automatic name based connections.
.. code:: cpp
// SIGNAL and SLOT macros
connect(sender, SIGNAL(clicked), this, SLOT(buttonClicked)); // BAD
// automatic name based connection
slot:
void on_actionNew_triggered(); // BAD
// 3 argument connect without receiver object
connect(sender, &SomeObject::signal, [this](){ this->foo(getBar()); }); // BAD
General Coding Advices
----------------------
Functions Documentation
~~~~~~~~~~~~~~~~~~~~~~~
You can find the class documentation in the API Reference menu item.
Updating the Git Submodules
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Git submodules play a major part in Cutter. This, because Cutter is powered
by radare2, its parent project, and it tries to stay up-to-date with its
recent version, which allows us to implement new features, and enjoy bug
fixes and performance improvements on radare2. Often, we need to update
the radare2 submodule or the others, to push their most recent
version to Cutter.
You can view the list of all the submodules from the cutter root folder with:
.. code:: sh
git config --file .gitmodules --get-regexp path | awk '{ print $2 }'
To update all the submodules at once, run these commands from the
cutter root folder:
.. code:: sh
git submodule foreach git pull origin master
git add submodule_name_1 submodule_name_2
git commit -m "Update submodules"
More likely, you'll only need to update the radare2 submodule.
In order to update one submodule individually, use the following code:
.. code:: sh
cd radare2
git checkout master && git pull
cd ..
git add radare2
git commit -m "Update radare2 submodule"
Useful Resources (Qt Development)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* `Signals & Slots <https://doc.qt.io/qt-5/signalsandslots.html>`__
* `Model/View Programming <https://doc.qt.io/qt-5/model-view-programming.html>`__ - read this if you are going to work with a list or table-like widgets
* `QAction <https://doc.qt.io/qt-5/qaction.html#details>`__
@@ -1,96 +0,0 @@
Contributing code to Cutter
============================
Thank you so much for your interest in contributing to Cutter! Contributors like you are a treasured resource for Cutter and their contributions have made the project what it is. And so, we appreciate everyone who gives the community the gift of their time <3.
The following section in our documentation is *not* intended to be comprehensive but rather a quick guide to walk you through the basic flow of contributing to Cutter. For more thorough documentation, follow the links on this page and read our Development Guidelines.
Clone and compile Cutter
-------------------------
The first step before starting to add code to Cutter is to build it on your environment. Whether it is Linux, Windows, or macOS, we have you covered and detailed the instructions to compile Cutter on our :doc:`/building`. Once you are done and Cutter is built successfully, test that it works correctly and continue to the next steps.
.. tip::
If you are facing issues with building Cutter on your environment, make sure you didn't miss anything in the documentation. Specifically, check the :ref:`Building:Troubleshooting` section.
.. tip::
If you need help configuring your development environment, make sure to read our :doc:`instructions, recommendations and tips <ide-setup>` for setting up a Cutter development environment for popular IDEs.
Find something to work on
--------------------------
Some will reach this page with a clear idea of what issue they want to fix or what feature they wish to implement. But some would simply want to help Cutter getting better while doing open-source, without having a specific thing in mind. If you already have something in mind - great! Move forward to the next section. If you don't have anything specific, stick with us a little bit more.
The issues and the feature-requests of Cutter are listed and tracked on our `Github Issues <https://github.com/radareorg/cutter/issues>`_ page. Don't get scared by the number of issues open, we will learn how to filter them to find those which fit you best.
.. tip::
**Fix your pet peeve!** Anything specific that annoys you about Cutter? Fantastic! This can be a great place to start.
Organizing issues
*******************
In order to organize the hundreds of Issues opened on Cutter, we use several features of Github for project management. Get yourself familiar with the following features, it will help you filter the issues.
Labels
^^^^^^^^
Tagging issues and pull requests with labels allows us to quickly search for them later. We use labels to describe the type of the issue, the feature it belongs to, the difficulty, and even its priority. We recommend you to start from issues labeled as `good-first-issue <https://github.com/radareorg/cutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22>`_. These issues were tagged by us as suitable for new contributors.
Projects
^^^^^^^^^^
We use `project boards <https://github.com/radareorg/cutter/projects>`_ to gather together tasks and issues for specific features or problems. For example, we have dedicated project boards for Debugger, Hexdump widget, Decompiler widget, and High DPI support. If you are interested to take part in developing a major feature, or you want to get a broader look at a progress of a specific part in Cutter, this can be a good place to visit.
Milestones
^^^^^^^^^^^^
When starting working on a new release, we gather together the bug and feature-requests that we consider of high-priority into a `Milestone <https://github.com/radareorg/cutter/milestones>`_. If you want to work on a feature or fix a bug that is needed and prioritized for the next release, then check out the open Milestone,.
Assigning Issues
^^^^^^^^^^^^^^^^^^
Before choosing an issue to work on, make sure it is not assigned to anyone. If it is, you can comment and ask if this person is intended to work on the issue. Some assigned issues are abandoned by their assignee and can be picked up by other contributors.
Get familiar with the current situation
----------------------------------------
Run Cutter and get familiar with how the functionality you want to modify works currently. For example, if it is a dialog, make sure you understand its role and how our users are using it. If it is a bug, try to repeat it using the instructions from the bug report.
.. tip::
If you are inexperienced with binary analysis tasks, you can always ask other developers in the team about the feature and how it should be used. The team and the community will be happy to help and instruct you with everything you need to know.
Find the source files implementing the feature you want to work on. By doing this, practice searching code in your editor, this is an important skill. We suggest searching for files with the name of the feature. For example, if you are interested in improving the "Sections" widget, you can find the source code of this feature in `SectionsWidget.cpp` and `SectionsWidget.h`. Alternatively, you can try and look for specific unique strings that exist in the dialog, widget, or feature you want to improve. Usually, when searching the entire code base for these strings, you'll land on a file related to this feature, whether it is a ``.cpp`` file or a ``.ui`` file. From there it will be easy to navigate your way to the right place.
Work on your feature or bug-fix
-------------------------------
If you are experienced with such tasks, go ahead - we leave this in your hands. Otherwise, we recommend you come up with a plan for things that need to be done to solve this bug or implement this feature. Discuss your plan in the relevant issue on GitHub.
.. important::
Before starting coding, make sure to get yourself familiar with our comprehensive documentation for our `coding style, conventions, and guidelines <development-guidelines.html>`_.
If you don't know how to implement something, check if any of the existing code implements similar behavior in the same widget or similar widgets. If you do copy an existing code consider why it did things the way it did, the same factors might not apply in your case or the old code was poorly written from the first place.
Open a Pull request
-------------------
When you are done, and the additions and modifications to the code are in place, commit your changes, and get your code reviewed by opening a new Pull Request. Please remember to follow the Pull Request template.
In the Pull Request template you will be required to add a "Test plan". For example, if you performed GUI changes, demonstrate it by posting a screenshot. Make a list of steps to be taken by the reviewers to verify that the changes are working as expected. This is also a good point to consider any potential edge-cases or different kinds of inputs if you didn't already do it while writing the code. Perform the steps you described when making the PR even if they seem trivial and you did them during development, it helps to catch any mistakes done during the final cleanup and making sure you didn't forget anything.
Repeat
-------
**Thank you!** You've made your very first contribution, and Cutter is better for it. But don't stop now. Go back to the first steps, as there is plenty more to do. A mentor or other developers might suggest a new issue for you to work on.
More Information
-----------------
.. important::
We're always in the process of improving the information on this page for newcomers to the Cutter. Please help us by suggesting improvements and tell us about the information that this page lacks.
-200
View File
@@ -1,200 +0,0 @@
Development environment setup
=============================
This page contains recommendations and tips on how to better setup different IDEs for Cutter development.
General advice
--------------
Everyone has their own preferences for their favorite IDE or code editor.
There are no strict requirements for using a specific one for Cutter development.
Any IDE with good CMake integration should work well.
For most development builds, unless you are working on packaging issues, it is recommended to use ``CUTTER_USE_BUNDLED_RADARE2=ON`` Cmake option. It is the easiest way to ensure that a compatible r2 version is used, and helps you deal with different versions of radare2 when working with multiple Cutter branches. On Linux, in case you have multiple r2 versions without ``CUTTER_USE_BUNDLED_RADARE2``, the ``PKG_CONFIG_PATH`` environment variable can be used to select the desired radare2 installation.
While `Qt Creator`_ has a builtin visual form and widget editor, not having it in other IDEs is not a major problem. It is also available as a standalone tool called Qt Designer and you can configure the file associations so that ``.ui`` files are opened using it. Depending on the ``.ui`` file and changes you want to make, it is sometimes easier to perform them by editing the ``.ui`` file as a text file. Essentially, ``.ui`` files are XML files. Most code editors should have some support for XML highlighting and possibly block folding.
The following instructions and recommendations assume that you have already download Cutter source and obtained required dependencies as described in :doc:`/building`.
Linux
-----
On a rolling-release distribution or a somewhat recent version of traditional distributions like Ubuntu 18.04, it should be possible to get all the dependencies from the official repository. There might be some problems with PySide2 and Shiboken2 but it can be easily disabled and isn't necessary for most work on Cutter. Don't try to install PySide using pip.
Windows
-------
Assuming you have a sufficiently powerful computer, a nice way of getting and configuring Qt for Cutter is to use `vcpkg <https://github.com/Microsoft/vcpkg>`_.
For a quick test, the exact versions of libraries used by Cutter release packages can be obtained from `cutter-deps <https://github.com/radareorg/cutter-deps/releases>`_ but they don't contain debug
versions of libraries so they are not suitable for more serious Cutter development on Windows.
Qt Creator
----------
QT Creator is an open-source IDE made by the same developers as Qt.
Even though Cutter has qmake project cutter.pro it is recommended to use the CMake project in QTCreator.
QTCreator support for CMake is as good as qmake one but not all Cutter project configuration options are available in qmake project and in future Cutter qmake project might be removed.
Pros and Cons
~~~~~~~~~~~~~
- builtin help for Qt API
- builtin .ui file editor (Qt Designer - visual form editor)
- builtin helper for displaying Qt types in the debugger
- Viewing source files that are not directly part of the project (R2 source code) is somewhat inconvenient.
- The simplest way of installing on non-Linux operating systems require login with Qt account
Project setup
~~~~~~~~~~~~~
The following instructions were made based on version 4.12.4 of Qt Creator. The steps might slightly differ between the versions.
- Go to :menuselection:`File --> Open File or Project..` and select :file:`cutter/src/CMakeList.txt`
- Select kit and press :guilabel:`Configure Project`
- Configuration step might fail due to r2 not being found, that's normal
- Click :guilabel:`Projects` button with wrench icon on the left side of the screen
- Click :menuselection:`Add --> Boolean` in the CMake section
- Enter ``CUTTER_USE_BUNDLED_RADARE2`` as a key name and change the value to ON. In earlier Qt Creator versions it is necessary to do this during the initial kit selection and configuration step.
- Click :guilabel:`Apply Configuration Changes`:. The configuration should succeed now. In case of errors inspect the output log.
Either in :menuselection:`Projects --> Code Style --> C++` or :menuselection:`Tools --> Options --> C++ --> Code Style` select :guilabel:`Qt [built-in]`. It should be selected by default unless you have used Qt Creator for other projects. Cutter Coding style is almost identical to Qt one. This will help with using correct indentation type and basic formatting without running code formatter.
To configure AStyle for formatting a file go to :menuselection:`Tools --> Options --> Beautifier --> Artistic Style`. If necessary, specify the path to astyle executable. The :guilabel:`Use file \*.astylerc defined in project files` option doesn't seem to be working reliably so it is necessary to use :guilabel:`Use specific config file` option. Cutter astyle configuration is stored in :file:`cutter/src/Cutter.astylerc`.
Changing CMake configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Click on the "Projects" button on the left side of the screen and then select "Build". All the project CMake options are listed and can be edited there in a graphical editor.
Editing Qt .ui files
~~~~~~~~~~~~~~~~~~~~
Double-clicking a ``.ui`` file in a file list opens it inside a visual editor. If you want to make changes that are easier to do by editing ``.ui`` file as text - right-click the file and select :menuselection:`Open With --> Plain Text Editor`. Switching from visual form editor back to code editor mode will open the ``.ui`` file in read-only mode with the following warning "This file can only be edited in Design mode". To edit use the same steps as described before.
VS Code
-------
`VS Code <https://github.com/Microsoft/vscode>`_ is an open-source code editor made by Microsoft.
Pros and Cons
~~~~~~~~~~~~~
- A large number of plugins
- A good fallback mechanism for files that are not directly part of a project.
Recommended plugins
~~~~~~~~~~~~~~~~~~~
- `C/C++ <https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools>`_ - The official C++ support plugin made by Microsoft
- `CMake Tools <https://marketplace.visualstudio.com/items?itemName=ms-vscode.cmake-tools>`_ - Provides CMake project integration. Originally developed by vector-of-bool and currently maintained by Microsoft.
- `CMake <https://marketplace.visualstudio.com/items?itemName=twxs.cmake>`_ - CMake language support when editing CMake files. Does not replace the previous CMake plugin. They provide non-overlapping functionality and should be used together.
Project setup
~~~~~~~~~~~~~
- :menuselection:`File --> Open Folder...` and select the folder in which you cloned Cutter
- Install the recommended plugins.
- Once the `CMake Tools` plugin is installed, in the corner you will see a popup asking you "Would you like to configure project 'cutter'? Source: CMake Tools (Extension)". Click Yes.
- In the kit selection popup, choose :guilabel:`[Unspecified]` unless you have more specific needs.
- If you initially dismissed the configuration window or didn't have the plugins installed yet - open command-palette using :kbd:`Ctrl-Shift-P` and select :guilabel:`Cmake: Configure`
Changing CMake configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After the first configuration :kbd:`Ctrl-Shift-P`/:guilabel:`CMake: Edit CMake Cache` opens a text editor with all CMake options. Cutter specific ones mostly start with "CUTTER".
.. note::
``CUTTER_USE_BUNDLED_RADARE2`` option is also defined in ``.vscode/settings.json`` file and it will be overridden from there. It is set to ``ON`` by default as it is recommended during development.
.. _vscode-debug-setup:
Building, Running, Debugging
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Build and running commands are available in the status bar at the bottom and in the Command Palette menu (:kbd:`Ctrl-Shift-P`) named ``CMake: Build F7``, ``CMake: Run Without Debugging Shift+F5``, and ``CMake Debug Ctrl + F5``.
Shortcuts can be viewed in the :kbd:`Ctrl-Shift-P` menu. They don't match default VS Code ones since those depend on :file:`tasks.json``.
Running and debugging launches the executable without any arguments. Command-line arguments can be passed to the debug
executable by creating a ``.vscode/launch.json`` configuration. Read the `documentation <https://code.visualstudio.com/docs/cpp/launch-json-reference>`_ for more information. Instead of creating :file:`launch.json` manually it can be created from template: :kbd:`Ctrl-Shift-P`/:menuselection:`Debug: Select and Start Debugging --> Add configuration.. --> C,C++: (gdb) Launch`.
To setup gdb pretty printers for Qt types on Linux, download the scripts from `Kdevelop <https://github.com/KDE/kdevelop/tree/master/plugins/gdb/printers>`_. In the :file:`~/.gdbinit` file add the following code:
.. code-block:: python
python
import sys
sys.path.insert(0, '/path/to/folder/with/pretty_printer_scripts')
from qt import register_qt_printers
register_qt_printers (None)
end
set print pretty 1
CLion
-----
`CLion <https://www.jetbrains.com/clion/>`_ is a C and C++ IDE from the popular software development tool maker - JetBrains.
Pros and Cons
~~~~~~~~~~~~~
- Medium amount of plugins, many first-party plugins made by JetBrains for their IntelliJ based IDE family
- There is no free version
- Takes some time to analyze the files after opening a project. Switching between .cpp and corresponding .h file may for the first time may take a few seconds.
Project setup
~~~~~~~~~~~~~
- Go to :menuselection:`File --> Open` and select the folder in which you cloned Cutter
- Go to :menuselection:`File --> Settings --> Build, Execution, Deployment --> CMake`. In the :guilabel:`CMake Options` field enter ``-DCUTTER_USE_BUNDLED_RADARE2=ON``
- Open :file:`cutter/src/CMakeLists.txt` using the project file list on the left side of the screen
- A yellow bar with a message :guilabel:`CMake project is not loaded` should appear, click :guilabel:`Load CMake project`
Changing CMake configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Go to :menuselection:`File --> Settings --> Build,Execution,Deployment --> CMake`. CMake options are specified the same way as on command-line ``-DOPTION_NAME=VALUE``.
Building, Running, Debugging
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Follow the `Clion documentation <https://www.jetbrains.com/help/clion/qt-tutorial.html#debug-renderers>`_ for how to configure Qt type debugger renderers. If you are using the MSVC toolchain
it can use :file:`qt5.natvis`. In rest of the cases you can use ``.gdbinit`` or ``..ldbinit`` based approach similar to one described for :ref:`VSCode setup<vscode-debug-setup>`
Editing Qt .ui files
~~~~~~~~~~~~~~~~~~~~
Default CLion behavior for opening .ui files is `somewhat buggy <https://youtrack.jetbrains.com/issue/CPP-17197>`_. Double-clicking the file does nothing, but it can be opened by dragging it to the text editor side.
This can be somewhat improved by changing `file association <https://www.jetbrains.com/help/clion/creating-and-registering-file-types.html>`_. Open :menuselection:`File --> Settings --> Editor --> File Types` and change type association of \*.ui files from :guilabel:`Qt UI Designer Form` to either "XML" or :guilabel:`Files Opened in Associated Applications`.
The first one will open it within CLion as an XML file and the second will use the operating system configuration.
Visual Studio
-------------
Visual Studio Community edition is available for free and can be used for contributing to open source projects.
It is recommended to use the latest Visual Studio version 2019 because it has the best CMake integration.
Older VS versions can be used but CMake integration isn't as good. With those, it might be better to generate Visual Studio
project from CMake project using the command-line or :command:`cmake-gui` and opening the generated Visual Studio project instead of opening the
CMake project directly.
Visual Studio supports many different languages and use-cases. Full installation takes a lot of space. To keep the size minimal during installation
select only component called "Desktop development with C++". Don't worry too much about missing something.
Additional components can be later added or removed through the VS installer which also serves as an updater and package manager for Visual Studio components.
Pros and Cons
~~~~~~~~~~~~~
- good debugger
- medium amount of plugins
- completely closed source
- Windows only
Project setup
~~~~~~~~~~~~~
- Open folder in which you cloned Cutter source using Visual Studio
- Open CMake settings configurator using either :menuselection:`Project --> CMake Settings` or by clicking :guilabel:`Open the CMake Settings Editor` in the overview page.
- Check ``CUTTER_USE_BUNDLED_RADARE2`` option
- If you are using vcpkg, Visual Studio should detect it automatically. The list of CMake options in the configurator should have some referring to vcpkg. If they are not there, specify the path to vcpkg toolchain file in the :guilabel:`CMake toolchain file` field.
- If you are not using vcpkg, configure the path to Qt as mentioned in :ref:`windows CMake instructions<building:Building on Windows>`. You can specify the CMake flag in :guilabel:`CMake command arguments:` field.
- To Ensure that VS debugger can display Qt types in a readable way, it is recommended to install `Qt Visual Studio Tools <https://marketplace.visualstudio.com/items?itemName=TheQtCompany.QtVisualStudioTools2019>`_ plugin. It will create a :file:`Documents/Visual Studio 2019/Visualizers/qt5.natvis` file. Once :file:`qt5.natvis` has been created you can uninstall the plugin.
Changing CMake configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Open :menuselection:`Project --> CMake Settings`. CMake options can be modified either in graphical table editor, as a command-line flag or by switching to the JSON view.
Editing Qt .ui files and Qt integration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
By default Visual Studio will open ``.ui`` files as XML text documents. You can configure to open it using Qt Designer by right-clicking and selecting :guilabel:`Open With...`.
There is a Qt plugin for Visual Studio from Qt. It isn't very useful for Cutter development since it is aimed more at helping with Qt integration into Visual Studio projects.
It doesn't do much for CMake based projects. The biggest benefit is that it automatically installs :file:`qt5.natvis` file for more readable displaying of Qt types in the debugger.
@@ -1,59 +0,0 @@
Release Procedure
=================
1. Update translations submodule `https://github.com/radareorg/cutter-translations`_
1. The latest archive from Crowdin should already be in the repository, if not make sure to merge any automated Pull Request from Crowdin (e.g. https://github.com/radareorg/cutter-translations/pull/9)
2. Update submodule in cutter
2. If there is a desire to keep working in the master branch, create branch for the release and do all the following work there.
3. Lock r2ghidra and r2dec versions downloaded by packaging scripts. Specify a tag or commit hash.
4. Update version
#. appveyor.yml
#. docs/sourc/conf.py
#. docs/source/index.rst
#. Cutter.pro
#. Cutter.appdata.xml
#. To be safe, search the code base for the previous version number.
5. Create a tag for the release candidate. For example, for the `v1.11.0` release you'd do something like this:
#. ``git tag v1.11.0-rc1``
#. ``git tag push origin v1.11.0-rc1``
6. Create a GitHub release, mark it as pre-release save draft, set the tag to v1.11.0-rc1
7. Wait for packages to build
8. On all operating systems do the `Basic testing procedure`_ to ensure nothing badly broken.
9. If any major problems are found, open an issue and fix them. If a release branch is used fix them in master and cherry pick into release branch. If the amount of changes is sufficiently large repeat from step 3. increasing rc number by one.
10. Update version to 1.11.0
11. Create tag
12. Create release
* Fill the release notes in the Release description. Preparing release notes can begin earlier. Compare current master or release branch against previous release to find all the changes. Choose the most important ones. Don't duplicate the commit log. Release notes should be a summary for people who don't want to read whole commit log. Group related changes together under titles such as "New features", "Bug Fixes", "Decompiler", "radare2" and similar.
13. Prepare announcement tweets and messages to send in the Telegram group, reddit, and others.
14. Close milestone if there was one
Bugfix Release
--------------
The process for bugfix release is similar no normal release procedure described above with some differences.
* Create the branch from the last tag instead of master or reuse the branch from x.y.0 release if it was already created.
* Cherry pick required bugfixes from master into the branch.
* Increase the third version number x.y.n into x.y.(n+1) .
Basic testing procedure
-----------------------
This isn't intended as exhaustive testing process, just some simple steps to make sure nothing is badly broken.
If it makes sense repeat the step multiple times at different offsets and click around increase the chance of noticing common problems that doesn't happen 100% of time.
* Open a simple executable like ``/bin/ls`` or ``calc.exe``
* Make sure that the upgraded layout isn't completely broken
* The Disassembly widget shows proper disassembly.
* Bundled plugins work
* Open decompiler and select ghidra, it shows some C code at least for some functions
* Open r2dec in decompiler widget, make sure it shows code
* Test that sample python plugin works
* Try debugger
* Insert breakpoint in main
* Start debugging
* Go to main using function widget, make sure relocation was done correctly and you see code instead of unmapped memory and breakpoint is where you placed
* Click continue until you hit breakpoint in main
* Delete cutter settings file, and test that clean start works and layout isn't broken
-8
View File
@@ -1,8 +0,0 @@
Contributing Documentation
==========================
.. toctree::
:maxdepth: 2
Getting Started <docs/getting-started>
docs/building-docs
@@ -1,37 +0,0 @@
Building docs
=======================
This page explains the steps that are needed to build Cutter's documentation.
Requirements
------------
You will need:
* doxygen
* python3
* pip3
* sphinx
* breathe
* recommonmark
On Debian-based Linux distributions, the packages above can be installed with the following command.
.. code:: sh
sudo apt install make doxygen python3-pip doxygen
sudo pip3 install sphinx breathe recommonmark
Then, you can build the documentation with the following commands:
.. code:: sh
cd cutter/docs/
make html
.. tip::
If you do not need API documentation, type ``make quick`` instead of ``make html``.
You can find the generated html files at ``cutter/docs/build``. Open ``cutter/docs/build/html/index.html`` with your browser to visit the index file of your local copy of the documentation.
@@ -1,51 +0,0 @@
Contributing documentation to Cutter
=======================================
If you reached this place you were probably looking to help and improve Cutter's documentation - Fantastic, welcome aboard!
As many other young projects, Cutter has a problem - it lacks comprehensive documentation and written content. Thankfully, contributing to Cutter's documentation doesn’t require you to have a deep knowledge about the internals of the project. Writing, reviewing, and editing the documentation are great ways to learn about Cutter.
Don’t like the way something reads? Discover some information that wasn’t documented? Your pull request will be gleefully embraced.
.. note::
The documentation of Cutter is written using `Sphinx and reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html>`_. The syntax is quite straight forward and very similar to Markdown. In the future, we hope to move completely to Markdown as it is more popular.
How can you help?
-----------------
The following sections suggest ways you can contribute to Cutter's documentation. The list isn't complete as the possibilities are limitless.
The source for this documentation is available in the `docs directory <https://github.com/radareorg/cutter/tree/master/docs>`_ on Cutter's repository. This source can be generated according to the steps described in the :ref:`building docs page<contributing/docs/building-docs:Building docs>`. When the docs are updated, they are generated and pushed directly to the website at <https://cutter.re/docs>. The source for the website and blog are available on the `cutter.re's repository <https://github.com/radareorg/cutter.re>`_ and are served from the ``gh-pages`` branch.
.. tip::
Document what you wished to see. If you are a user of Cutter, try to think what things you would want to see documented when you started using the project. Sometimes, the best contributions are coming from your own needs.
User documentation
^^^^^^^^^^^^^^^^^^^
The documentation for users describes how to use Cutter and what the different features in Cutter do. The possibilities for contributing are endless since there are so many features that weren't even described on our docs yet. To contribute to our user documentation, all you need to do is pick a subject, widget, or functionality and document it. Describe the different visual components, how to use them, and what this feature even does.
Common Errors and Troubleshooting
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
As our community gets bigger, more and more people are using, installing or building Cutter on different setups. Naturally, different environments might cause different issues. The :ref:`common issues<user-docs/common-issues:Common Issues>` section in our docs aims to go over the most popular issues that you might face while using Cutter and the :ref:`building errors troubleshooting<building:Troubleshooting>` section goes over common errors that you might face while building Cutter from sources. These docs sections also explain what causes these issues and how to solve them.
If you know of such a common issue, whether you faced it yourself or noticed it on our community chats, it will be very helpful if you could document it and possible solutions for it.
Developers documentation
^^^^^^^^^^^^^^^^^^^^^^^^^
The documentation for Cutter developers aims to instruct new contributors on how to get started with developing to Cutter's codebase. It also describes best practices and development guidelines for all developers in the project. Think you have something to add to the developers' docs? We would love you to contribute.
API documentation
^^^^^^^^^^^^^^^^^^
The documentation for Cutter's API is an important reference for Cutter developers as well as Plugin developers. It thoroughly describes for developers how some functions and features work. While some of the functions are thoroughly documented, most of them aren't. Any help with improving these documentations will be blessed.
Blog posts
^^^^^^^^^^^^^
We would love to see people writing and sharing their experiences with Cutter. Whether you are solving CTF challenges with Cutter, analyzing malware, finding vulnerabilities, or working on personal projects - we would love to see these published. If you have a personal blog, we would be proud to share and retweet your Cutter-related publications on our profiles, bringing you more engagement and followers. If you don't have a personal blog, we would love to host your publication on our community blog over at https://cutter.re/blog.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

@@ -1,262 +0,0 @@
Getting Started with Python Plugins
===================================
This article provides a step-by-step guide on how to write a simple Python plugin for Cutter.
Create a python file, called ``myplugin.py`` for example, and add the following contents:
.. code-block:: python
import cutter
class MyCutterPlugin(cutter.CutterPlugin):
name = "My Plugin"
description = "This plugin does awesome things!"
version = "1.0"
author = "1337 h4x0r"
def setupPlugin(self):
pass
def setupInterface(self, main):
pass
def terminate(self):
pass
def create_cutter_plugin():
return MyCutterPlugin()
This is the most basic code that makes up a plugin.
Python plugins in Cutter are regular Python modules that are imported automatically on startup.
In order to load the plugin, Cutter will call the function ``create_cutter_plugin()`` located
in the root of the module and expects it to return an instance of ``cutter.CutterPlugin``.
Normally, you shouldn't have to do anything else in this function.
.. note::
The Cutter API is exposed through the ``cutter`` module.
This consists mostly of direct bindings of the original C++ classes, generated with Shiboken2.
For more detail about this API, see the Cutter C++ code or :ref:`api`.
The ``CutterPlugin`` subclass contains some meta-info and two callback methods:
* ``setupPlugin()`` is called right after the plugin is loaded and can be used to initialize the plugin itself.
* ``setupInterface()`` is called with the instance of MainWindow as an argument and should create and register any UI components.
* ``terminate()`` is called on shutdown and should clean up any resources used by the plugin.
Copy this file into the ``python`` subdirectory located under the plugins directory of Cutter and start the application.
You should see an entry for your plugin in the list under Edit -> Preferences -> Plugins.
Here, the absolute path to the plugins directory is shown too if you are unsure where to put your plugin:
.. image:: preferences-plugins.png
.. note::
As mentioned, plugins are Python modules. This means, instead of only a single .py file, you can also
use a directory containing multiple python files and an ``__init__.py`` file that defines or imports the
``create_cutter_plugin()`` function.
.. note::
If you are working on a Unix-like system, instead of copying, you can also symlink your plugin into the plugins
directory, which lets you store the plugin somewhere else without having to copy the files over and over again.
Creating a Widget
-----------------
Next, we are going to add a simple dock widget. Extend the code as follows:
.. code-block:: python
import cutter
from PySide2.QtWidgets import QAction, QLabel
class MyDockWidget(cutter.CutterDockWidget):
def __init__(self, parent, action):
super(MyDockWidget, self).__init__(parent, action)
self.setObjectName("MyDockWidget")
self.setWindowTitle("My cool DockWidget")
label = QLabel(self)
self.setWidget(label)
label.setText("Hello World")
class MyCutterPlugin(cutter.CutterPlugin):
# ...
def setupInterface(self, main):
action = QAction("My Plugin", main)
action.setCheckable(True)
widget = MyDockWidget(main, action)
main.addPluginDockWidget(widget, action)
# ...
We are subclassing ``cutter.CutterDockWidget``, which is the base class for all dock widgets in Cutter,
and adding a label to it.
.. note::
You can access the whole Qt5 API from Python, which is exposed by PySide2. For more information about this, refer to the
Documentation of `Qt <https://doc.qt.io/qt-5/reference-overview.html>`_ and `PySide2 <https://wiki.qt.io/Qt_for_Python>`_.
In our ``setupInterface()`` method, we create an instance of our dock widget and an action to be
added to the menu for showing and hiding the widget.
MainWindow provides a helper method called ``addPluginDockWidget()`` to easily register these.
When running Cutter now, you should see the widget:
.. image:: mydockwidget.png
... as well as the action:
.. image:: mydockwidget-action.png
Fetching Data
-------------
Next, we want to show some actual data from the binary in our widget.
As an example, we will display the instruction and instruction size at the current position.
Extend the code as follows:
.. code-block:: python
# ...
class MyDockWidget(cutter.CutterDockWidget):
def __init__(self, parent, action):
# ...
label = QLabel(self)
self.setWidget(label)
disasm = cutter.cmd("pd 1").strip()
instruction = cutter.cmdj("pdj 1")
size = instruction[0]["size"]
label.setText("Current disassembly:\n{}\nwith size {}".format(disasm, size))
# ...
We can access the data by calling radare2 commands and utilizing their output.
This is done by using the two functions ``cmd()`` and ``cmdj()``, which behave just as they
do in `r2pipe <https://radare.gitbooks.io/radare2book/scripting/r2pipe.html>`_.
Many commands in radare2 can be suffixed with a ``j`` to return JSON output.
``cmdj()`` will automatically deserialize the JSON into python dicts and lists, so the
information can be easily accessed.
.. warning::
When fetching data that is not meant to be used only as readable text, **always** use the JSON variant of a command!
Regular command output is not meant to be parsed and is subject to change at any time, which will break your code.
In our case, we use the two commands ``pd`` (Print Disassembly) and ``pdj`` (Print Disassembly as JSON)
with a parameter of 1 to fetch a single line of disassembly.
.. note::
To try out commands, you can use the Console widget in Cutter. Almost all commands support a ``?`` suffix, like in
``pd?``, to show help and available sub-commands.
To get a general overview, enter a single ``?``.
The result will look like the following:
.. image:: disasm-static.png
Of course, since we only fetch the info once during the creation of the widget, the content never updates.
We are going to change that in the next section.
Reacting to Events
------------------
We want to update the content of our widget on every seek.
This can be done like the following:
.. code-block:: python
# ...
from PySide2.QtCore import QObject, SIGNAL
# ...
class MyDockWidget(cutter.CutterDockWidget):
def __init__(self, parent, action):
# ...
self._label = QLabel(self)
self.setWidget(self._label)
QObject.connect(cutter.core(), SIGNAL("seekChanged(RVA)"), self.update_contents)
self.update_contents()
def update_contents(self):
disasm = cutter.cmd("pd 1").strip()
instruction = cutter.cmdj("pdj 1")
size = instruction[0]["size"]
self._label.setText("Current disassembly:\n{}\nwith size {}".format(disasm, size))
First, we move the update code to a separate method.
Then we call ``cutter.core()``, which returns the global instance of ``CutterCore``.
This class provides the Qt signal ``seekChanged(RVA)``, which is emitted every time the current seek changes.
We can simply connect this signal to our method and our widget will update as we expect it to:
.. image:: disasm-dynamic.png
For more information about Qt signals and slots, refer to `<https://doc.qt.io/qt-5/signalsandslots.html>`_.
Full Code
---------
.. code-block:: python
import cutter
from PySide2.QtCore import QObject, SIGNAL
from PySide2.QtWidgets import QAction, QLabel
class MyDockWidget(cutter.CutterDockWidget):
def __init__(self, parent, action):
super(MyDockWidget, self).__init__(parent, action)
self.setObjectName("MyDockWidget")
self.setWindowTitle("My cool DockWidget")
self._label = QLabel(self)
self.setWidget(self._label)
QObject.connect(cutter.core(), SIGNAL("seekChanged(RVA)"), self.update_contents)
self.update_contents()
def update_contents(self):
disasm = cutter.cmd("pd 1").strip()
instruction = cutter.cmdj("pdj 1")
size = instruction[0]["size"]
self._label.setText("Current disassembly:\n{}\nwith size {}".format(disasm, size))
class MyCutterPlugin(cutter.CutterPlugin):
name = "My Plugin"
description = "This plugin does awesome things!"
version = "1.0"
author = "1337 h4x0r"
def setupPlugin(self):
pass
def setupInterface(self, main):
action = QAction("My Plugin", main)
action.setCheckable(True)
widget = MyDockWidget(main, action)
main.addPluginDockWidget(widget, action)
def terminate(self):
pass
def create_cutter_plugin():
return MyCutterPlugin()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

@@ -1,10 +0,0 @@
Translate Cutter
==================
Help Cutter by adding translations to the project!
Cutter is a global project with users from all around the world. We believe that Cutter should be as accessible as possible, and want our users to feel comfortable while using its interface. Providing our community an interface with their own language makes the experience of using Cutter better. Thus, Cutter supports a translation and localization mechanism powered by the `Crowdin <https://crowdin.com/project/cutter>`_ platform. We invite you to contribute and add translations to the project.
.. important::
We currently support more than 15 languages. If you need to add a language that isn't available yet, ask any developer from the team and they will happily assist you.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 619 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

-57
View File
@@ -1,57 +0,0 @@
Cutter
======
Cutter is a Qt and C++ GUI for radare2. Its goal is to provide an advanced,
customizable and FOSS reverse-engineering platform while keeping the
user experience in mind. Cutter was created by reverse engineers for
reverse engineers.
.. image:: images/screenshot.png
Getting Cutter
--------------
Cutter is available for all major platforms. You can
download the latest release from
`here <https://github.com/radareorg/cutter/releases>`__.
- **macOS**: Download the ``.dmg`` file and install it.
- **Windows**: Download the ``.zip`` archive and extract it.
- **Linux**: Download the ``.AppImage`` file and make it executable by doing:
::
chmod +x Cutter*.AppImage
Building from Sources
---------------------
To build Cutter on your machine, please follow this guide: :doc:`Building from Source </building>`.
Need help?
----------
You can contact the *Cutter* developers and community on:
- Telegram: https://t.me/r2cutter
- #cutter on irc.freenode.net
- Twitter: https://twitter.com/r2gui
Want to help the project?
-------------------------
If you want to contribute to Cutter, take a look at our :doc:`Contribution Guidelines </contributing>` to learn how you can help improve the project!
.. toctree::
:caption: Contents:
:maxdepth: 3
user-docs
contributing
Developer documentation <contributing/code>
building
plugins
api
-35
View File
@@ -1,35 +0,0 @@
Plugins
=======
Cutter supports writing plugins in both C++ and Python.
If you are unsure of which language to choose, starting with Python is strongly suggested as
it provides a faster and simpler workflow.
If you plan to implement support for a new file format or architecture, Cutter plugins are not the correct approach.
Instead, you will want to implement a radare2 plugin, which is documented `here <https://radare.gitbooks.io/radare2book/plugins/intro.html>`_.
Loading and Overview
----------------------
Plugins are loaded from an OS-dependent user-level directory.
To get the location of this directory and a list of currently loaded plugins, navigate to Edit -> Preferences -> Plugins.
.. image:: contributing/plugins/preferences-plugins.png
The plugins directory contains two subdirectories, ``native`` and ``python`` for C++ and Python plugins respectively,
which will be created automatically by Cutter.
.. note::
The support for Python plugins is only available if Cutter was built with the options ``CUTTER_ENABLE_PYTHON``
and ``CUTTER_ENABLE_PYTHON_BINDINGS`` enabled.
This is the case for all official builds from GitHub Releases starting with version 1.8.0.
Creating Plugins
------------------
.. toctree::
:glob:
contributing/plugins/*
-22
View File
@@ -1,22 +0,0 @@
User Documentation
=======================
This page contains information about the different menus in Cutter.
Cutter is an advanced reverse engineering platform powered by radare2.
This user's guide provides detailed information on how to use Cutter.
The documentation for users is still on its early stages and will be improved over time.
.. toctree::
:maxdepth: 3
:titlesonly:
:glob:
user-docs/features
user-docs/shortcuts
user-docs/command-line
user-docs/menus
user-docs/preferences
user-docs/common-issues
-81
View File
@@ -1,81 +0,0 @@
Command-line Options
====================
Synopsis
--------
**Cutter** [*options*] [<*filename*>]
Options
-------
.. option:: <filename>
Filename to open. If not specified file selection dialog will be shown.
.. option:: -h, --help
Displays help on command-line options.
.. option:: --help-all
Displays help including Qt specific options.
.. option:: -v, --version
Displays version information.
.. option:: -A, --analysis <level>
When opening a file automatically perform analysis at a given level. Requires
:option:`<filename>` to be specified. Following levels are available:
**0**
No analysis.
**1**
aaa
**2**
aaaa (experimental)
.. option:: -F, --format <name>
Force using a specific file format (bin plugin)
.. option:: -B, --base <base address>
Load binary at a specific base address
.. option:: -i <file>
Run script file
.. option:: -w, --writemode
Open a file in write mode, instead of the default read-only mode.
When used together with -A/--analysis <level>, it will open a file directly
in write mode without any further dialog or confirmation.
.. option:: --pythonhome <PYTHONHOME>
PYTHONHOME to use for the embedded python interpreter
.. option:: --no-output-redirect
Disable output redirection. Some of the output in the console widget will not
be visible. Use this option when debugging a crash or freeze and output
redirection is causing some messages to be lost.
.. option:: --no-plugins
Start cutter with all plugins disabled. Implies :option:`--no-cutter-plugins` and :option:`--no-r2-plugins`.
.. option:: --no-cutter-plugins
Start cutter with cutter plugins disabled.
.. option:: --no-r2-plugins
Start cutter with r2 plugins disabled.
-33
View File
@@ -1,33 +0,0 @@
Common Issues
=============
This page lists common issues encountered by users.
AppImage Crashes
----------------
If the Linux AppImage binary crashes upon startup, make sure your
``LD_LIBRARY_PATH`` environment variable is empty.
For a detailed explanation, see the issue `#579 <https://github.com/radareorg/cutter/issues/579>`__
Keyboard Layout Issue
---------------------
Some people report that they have keyboard issues. Usually it is because
the Xorg layout is wrong. You can check it with: ``setxkbmap -query``
Most of the time using ``setxkbmap us`` solves the issue, but it might
not be enough and require a more advanced Xorg configuration.
Initial Analysis takes a long time or Cutter UI freezes
-------------------------------------------------------
Cutter and radare2 currently don't work very well with large and very large binaries.
The exact limits depend on the content of the binary, but roughly a few MB can be considered large
and may take a few minutes to analyze. More than 100MB is very large,
analysis with default settings will likely take a very long time and it might occasionally
freeze the UI during usage.
If the analysis takes longer than 5-15 minutes it is recommended to retry it with different
analysis options. In the "Load Options" dialog, move the analysis slider to the right in order to reach
the "Advanced Analysis" view. This view will help you learn more about the options that can
be used to more selectively analyze only the relevant parts of code.
Loaded 100 of 900 files, more files were not shown because too many files have changed in this diff. Show more