1
0
Fork 0
Commit Graph

3258 Commits

Author SHA1 Message Date
Duncan Ogilvie c7f6acf357 Fix a rare crash when repainting CPUSideBar on exit 2023-01-15 15:23:41 +01:00
Duncan Ogilvie ecd4f4a318 On shutdown, still paint the table backgrounds
This makes things look less ugly
2023-01-15 15:23:41 +01:00
Boring 4efda5e008
unexpected variable override
Reference type bpColor will override the value of mBreakpointBackgroundColor
2023-01-11 13:34:41 +08:00
Duncan Ogilvie 440a06a039
Merge pull request #2995 from Bytabyte/add-inc-dec-zero
Added context menu entries (Inc, dec, zero) to registers
2022-12-15 12:34:02 +01:00
Bytabyte 1bb3332963 Applied corresponding icons 2022-12-11 16:13:20 +01:00
Bytabyte a9698ffdaf Added context menu entries (inc, dec, zero) to registers 2022-12-10 20:46:00 +01:00
Bytabyte 6fbef85add Fixed "Party" column width 2022-12-10 01:54:36 +01:00
Duncan Ogilvie 52bd144e87 Fix some crashes when closing x64dbg while a trace is open 2022-12-08 15:09:57 +01:00
Duncan Ogilvie 584b63ddc6 Add a working 'Sync with CPU' option in the trace browser 2022-12-08 15:09:02 +01:00
Duncan Ogilvie 779b5cbc77 Allow calling GuiDisasmAt with CIP=0 to goto an address 2022-12-08 13:28:41 +01:00
Duncan Ogilvie 172e889f0a Rename 'Origin' to 'EIP/RIP' 2022-12-08 02:40:48 +01:00
not6 5555d977d4
Fix and improve "Show PID/TID in HEX" feature (#2987) 2022-12-06 11:36:10 +01:00
Duncan Ogilvie e8650ae334 Clean up some UB-adjacent looping 2022-12-03 23:00:58 +01:00
Duncan Ogilvie af79a9b70b Get rid of the _GUI locks in the pluginmenu* API implementation
This should increase stability and (potentially) restore XP support
2022-12-03 23:00:54 +01:00
Duncan Ogilvie 3ba63be199 Rewrite the menu API to be thread-safe
This is achieved by using a Qt::DirectConnection for the menu-related signals.
The bookkeeping of the data structures is done from the calling thread and then the
Qt-related operations are scheduled on the main thread.
2022-12-03 22:17:48 +01:00
Duncan Ogilvie bb839ad14e Start moving existing code to be logically together 2022-12-03 15:35:52 +01:00
Duncan Ogilvie ec00cf08c3
Merge pull request #2986 from wasd845/development
Add line prefix for ASM-Style hex data
2022-12-02 11:51:29 +01:00
Duncan Ogilvie 676f5d3359 Simplify the formatting code 2022-12-02 11:49:47 +01:00
Duncan Ogilvie 7861f1d042 Fix the highlighting of the CIP address in the memory map 2022-12-02 01:26:38 +01:00
Duncan Ogilvie d3859a417e Align the section size by page size instead of SectionAlignment 2022-12-02 01:11:55 +01:00
w 7fe2ba3566 Add line prefix for ASM-Style hex data 2022-12-01 20:27:34 +08:00
justanotheranonymoususer 5f04a5eb14
Use common undecorate flags 2022-11-26 16:19:28 +02:00
not6 c70aeb0359
Add relative path support to launcher (#2977) 2022-11-23 13:20:33 +01:00
not6 9d7cc256eb
Update module.cpp
Closes #2971
2022-11-17 04:08:05 +01:00
torusrxxx feb9e18c56
remember window topmost configuration 2022-10-28 20:36:45 +08:00
Duncan Ogilvie 01383a5a35
Merge pull request #2955 from brandonros/eflags-trace
addRegValues eflags
2022-10-18 22:05:21 +02:00
Duncan Ogilvie 7d10c587c9
Merge pull request #2962 from ZehMatt/fix-docgen
Cleanup documentation for Script::Misc
2022-10-18 22:04:46 +02:00
Duncan Ogilvie 8fad3bc3d7 Rename getSelText to getSelectionText for better code readability 2022-10-18 22:02:18 +02:00
ζeh Matt 338cb80197
Cleanup documentation for Script::Misc 2022-10-17 16:23:57 +03:00
torusrxxx 0c9c2c0fd0
Use an icon to represent user/system party to reduce column width 2022-10-17 00:47:01 +08:00
Brandon Ros 5f9c5f3ba0 addRegValues eflags 2022-10-12 12:03:56 -04:00
torusrxxx dd4d6c48db
Fix crash on Windows 7 2022-10-12 22:46:06 +08:00
Duncan Ogilvie 4033faf4ef Add the minidump command 2022-10-10 17:04:11 +02:00
Duncan Ogilvie c57128a732 Attempt to get the handle type names for handles that cannot be duplicated 2022-10-10 16:05:53 +02:00
Duncan Ogilvie 09bc3aed4f Remove footguns from a few APIs 2022-10-10 14:34:17 +02:00
Duncan Ogilvie 6c3d3941cb
Merge pull request #2942 from torusrxxx/patch000000d3
Use a tree view for color configuration
2022-10-03 23:32:08 +02:00
torusrxxx d6d6c5ea9a Use a tree view for color configuration 2022-10-03 23:29:57 +02:00
Duncan Ogilvie 420ef52aea Add a workaround for a bad module in memory map
Closes #2931
2022-10-03 21:42:08 +02:00
not6 6ec74878a5
Remove debug code in launcher
Remove szIniFile message box in launcher
2022-09-25 08:35:16 +02:00
Duncan Ogilvie 054dfdacef Move up the trace info/over menus 2022-09-25 02:03:34 +02:00
Duncan Ogilvie c59271893b Support user directory
Package managers can create a "userdir" file next to x64dbg.exe with a file path (UTF-8) in there. If no path is specified it will be %APPDATA%\<executable name>. This directory contains the "db" folder, INI settings, memory dumps
2022-09-25 01:41:46 +02:00
Duncan Ogilvie 10d978deb4 Fix a typo in the hardware breakpoint description
Closes #2936

Regression commit: b7402c2fb9
2022-09-24 22:27:57 +02:00
Duncan Ogilvie d78ec69b9c
Merge pull request #2935 from owerosu/development
Fix undecorated label display when it comes from exported symbols.
2022-09-24 22:18:15 +02:00
Duncan Ogilvie 63b784f97e Fix the struct view text color in dark mode 2022-09-23 01:14:07 +02:00
Duncan Ogilvie bc88c85377 Use the page address instead of the module name for sections
This fixes an issue where two modules with the same name are confused

Closes #2933
2022-09-18 19:55:10 +02:00
Owerosu 7de0e994dd Fix undecorated label display when it comes from exported symbols. 2022-09-17 17:27:42 +02:00
Duncan Ogilvie 1de3253cbd Add option to disable ASLR + fix race condition with breakpoints
Closes #1764
Closes #2716
2022-09-10 01:15:09 +02:00
Duncan Ogilvie 870039f1d1 Allow editing columns of the disassembly view 2022-09-10 01:10:03 +02:00
Duncan Ogilvie 580cd3d9c2 Unbreak binary compatibility 2022-09-08 23:35:06 +02:00
Duncan Ogilvie 5f45d2c084 Fix regression with .NET Any CPU binaries
Closes #2932
2022-09-07 14:47:23 +02:00
Duncan Ogilvie 3730abd784 Add the undocumented "cmdtest" command to log argv 2022-09-04 22:37:03 +02:00
Duncan Ogilvie 77cbbbf051 Improve escaping in format strings for backwards compatibility 2022-09-04 22:30:12 +02:00
Duncan Ogilvie 7a5226a182 Special handling for format strings in the command parser
This allows: log "jmp {streq(dis.mnemonic(cip), "jmp")}" to work as you would expect

Closes #2930
2022-09-04 22:16:54 +02:00
Duncan Ogilvie 974b93432e Only process GUI events for the menu lock
Some weird crashes started happening after becfa86
2022-09-03 15:13:40 +02:00
Duncan Ogilvie 52b9866fc8
Merge pull request #2903 from yjd/Fix-Shift-key-combination-bug
Fix Shift key combination bug
2022-09-03 14:34:38 +02:00
Duncan Ogilvie 1b3e462969 Rename "Shortcuts" to "Hotkeys" 2022-09-03 14:06:15 +02:00
Duncan Ogilvie 23a3f92d6b AStyle 2022-09-03 13:54:20 +02:00
Alex df7e45a0d7 Reducing disk I/O operations by reusing local var value 2022-09-03 13:26:47 +03:00
Duncan Ogilvie becfa86ac6 Pump the event loop when waiting for a lock on the GUI thread
This solves a potential deadlock with DotX64dbg
2022-09-02 23:45:43 +02:00
Duncan Ogilvie d1f384e5bf Add the GuiGetMainThreadId function 2022-09-02 23:44:54 +02:00
Duncan Ogilvie ae3b36967d Don't spam the log with a list of loaded drivers 2022-09-02 19:42:06 +02:00
Duncan Ogilvie 5eeae0059e Warn when certain anti-cheat drivers are detected 2022-09-02 19:37:18 +02:00
Duncan Ogilvie d07f05d2af Improve coloring of section names in the memory map 2022-09-02 16:53:18 +02:00
Duncan Ogilvie e36f8b7402 Rewrite the logic for processing module sections in the memory map
Closes #2920
2022-09-02 16:52:53 +02:00
Duncan Ogilvie 701fb40159 Simplify setting x64dbg as a JIT debugger 2022-09-02 15:09:02 +02:00
Duncan Ogilvie 4cb959cf41 Support IDA's $RELPATH in themes 2022-09-02 14:51:21 +02:00
Duncan Ogilvie 5f758c8e9c Change a few default settings to improve UX 2022-09-02 14:50:17 +02:00
Duncan Ogilvie e56bfa66c8 Clarify the exit confirmation dialog 2022-09-02 14:49:59 +02:00
Duncan Ogilvie 1bef2b9a8f Support HTML in the status bar log label 2022-09-02 14:11:58 +02:00
Duncan Ogilvie 0db522082e Support x64dbg:command#xxx and x64dbg:address#xxx links 2022-09-02 13:46:28 +02:00
Mobile46 53cd98b9a0
Update filter text in the launcher dialog 2022-09-01 00:04:41 +03:00
Duncan Ogilvie 6ecc4bcaa3 Format strings at the end of a page correctly 2022-08-23 20:39:27 +02:00
Duncan Ogilvie 117dd32a06 Improve the trace tab UX 2022-08-20 00:00:33 +02:00
Duncan Ogilvie eb2f4776e3 Highlight the taken branch for the selected block in the graph 2022-08-08 23:51:38 +02:00
Duncan Ogilvie 7dcfab2a82
Merge pull request #2889 from justanotheranonymoususer/more-str-functions
Case insensitive string functions
2022-08-05 14:49:21 +02:00
justanotheranonymoususer 2339169b0e Case insensitive string functions 2022-08-05 13:53:29 +02:00
Torusrxxx 61c1808701
follow string in dump (#2913)
Improve the string reference view with more context menus.
2022-08-05 13:18:46 +02:00
Duncan Ogilvie 2665db453b Fix an oversight in the new 'Record trace' checkbox in the trace dialog 2022-07-27 16:59:57 +02:00
Duncan Ogilvie bc5ed1da7e Fix some more warnings in the GUI 2022-07-20 01:45:34 +02:00
Duncan Ogilvie 3361b2dfc2 Big refactor to improve the tracing experience
- "Trace record" has been renamed to "Trace coverage"
- "Run trace" has been renamed to "Trace recording"
- You can now start recording directly from the trace dialog
2022-07-20 01:42:48 +02:00
Duncan Ogilvie cb7e6ea892 Fix a bunch of warnings in the GUI 2022-07-20 01:06:39 +02:00
Duncan Ogilvie 524c124dfd Do not override the user's appearance settings on startup
Closes #2912
2022-07-20 01:04:22 +02:00
Duncan Ogilvie 5dcfd11928 Remove the TraceRecordEnabledDuringTrace setting 2022-07-19 21:05:49 +02:00
Duncan Ogilvie 1c05ad5b5f Sort breakpoint hit count by value instead of text
Closes #2910
2022-07-15 14:22:39 +02:00
Duncan Ogilvie cb51f0e2a2 Clear the trace view info box when closing the trace 2022-07-14 23:26:53 +02:00
Duncan Ogilvie ff609dbce1 Rename confusingly named menu entry in graph 2022-07-10 23:09:20 +02:00
Duncan Ogilvie ed5adb909c Add extra logic for overriding default images 2022-07-10 20:31:34 +02:00
Duncan Ogilvie 3d949b9847 Show the current theme with a checkbox 2022-07-10 15:05:25 +02:00
Duncan Ogilvie 08c4941784 Improve the code to automatically detect the initial theme 2022-07-10 15:04:53 +02:00
Duncan Ogilvie b867b5ba3a Add API: BridgeGetNtBuildNumber 2022-07-10 14:28:58 +02:00
Duncan Ogilvie 953c06dc88 Fix potential buffer overrun in DebugUpdateTitle 2022-07-10 13:03:02 +02:00
Yakov5776 ea537239d4
Set theme according to system theme on firstrun (#2648) 2022-07-10 13:01:28 +02:00
Duncan Ogilvie fdf8052d67 Allow themes to customize the icons
Thanks to https://twitter.com/Trancestorm for the dark theme icons!
2022-07-10 03:31:17 +02:00
yjd 7199bb0f79
Find Strings in Current Module 2022-07-05 11:26:18 +08:00
yjd 00e973b48f
Find Strings in Current Module 2022-07-05 11:24:36 +08:00
yjd 9b53cda24c
Fix Shift key combination bug 2022-07-05 11:15:36 +08:00
Duncan Ogilvie 29bb559aa6
Merge pull request #2899 from gmh5225/Branch_fix_veh
Using build number instead of magic number
2022-07-04 15:35:54 +02:00
eltio 6a5ff0467c Add ability to set breakpoints on multiple selected lines in the References tab 2022-07-03 11:14:30 +03:00
eltio 8171b8138c Fix array out of bounds in SearchListView::eventFilter
The value of QKeyEvent::text() can be empty for modifier keys such as Ctrl, Shift, ...
2022-07-03 11:13:49 +03:00
gmh5225 5284c82d2e
Using build number instead of magic number 2022-07-02 01:20:38 +08:00
Vermin a40c81e1bd
Update Breakpoints.cpp 2022-06-30 16:41:15 +02:00
Duncan Ogilvie 2d18cc3bad More improvements to the StructWidget 2022-06-22 00:08:20 +02:00
Duncan Ogilvie 13f4c8919d Do not break on the load event for ntdll
This is nonsensical because the event is fake and the context doesn't match reality at this point. It is also impossible to interact with the context.
2022-06-21 15:15:18 +02:00
Duncan Ogilvie ea52c7ae26 Refresh all views after visiting a type 2022-06-21 15:13:46 +02:00
Duncan Ogilvie f37b56c18d Improve the StructWidget more (save columns, performance improvements) 2022-06-20 01:53:34 +02:00
Duncan Ogilvie b7402c2fb9 Log the thread parameter and refactor SymGetSymbolicName 2022-06-19 21:20:09 +02:00
Duncan Ogilvie 2fe1ceedec Improve type visiting
No longer create temporary labels for types without a valid pointer
Prefix pointers with struct/union for readability
2022-06-19 21:08:33 +02:00
Duncan Ogilvie f62a75953a Highlight keywords in the StructWidget 2022-06-19 21:07:01 +02:00
Duncan Ogilvie d869248e91 Add support for strings in the command bar and formatting
Closes #2882
2022-06-19 01:47:05 +02:00
Duncan Ogilvie bae4243d81 Improve TEB/Stack information in the memory map 2022-06-19 00:30:32 +02:00
Duncan Ogilvie d87675a22f Refactor the findallusermem and findallsysmem commands into findallmem 2022-06-15 19:57:55 +02:00
Duncan Ogilvie ca2a96ed5c
Merge pull request #2880 from rezaf28/development
Add "All User Modules","All System Modules" To RMB
2022-06-15 19:57:07 +02:00
Duncan Ogilvie ff8c39015a
Merge pull request #2834 from Montycarlo/add-log-color
Extra Log method for HTML
2022-06-15 16:28:37 +02:00
Josh Brown ef747733ac changed printf html to puts html 2022-06-13 04:13:56 -07:00
Duncan Ogilvie 601e2d1175 Add an option for different High DPI scaling
Closes #2884
Closes #2876
Closes #2819
Closes #492
Closes #2801
Closes #2876
2022-06-12 16:36:13 +02:00
gmh5225 8b74e7cc4e
Fix type 2022-06-07 19:58:15 +08:00
gmh5225 670746737d
Simplifying the code 2022-06-07 19:31:20 +08:00
gmh5225 7fe1381fc4
AStyle format 2022-06-07 18:25:51 +08:00
gmh5225 0887e68641
Fix type 2022-06-07 18:09:00 +08:00
gmh5225 0d2c5b2c91
Fix type 2022-06-07 18:06:34 +08:00
gmh5225 25ef085966
Using SetProcessDpiAwarenessContext instead of QTAPI on Win10 above 1703 2022-06-07 17:56:15 +08:00
Reza Feizi e7cfeb9555
Update x64dbg.cpp 2022-06-06 15:21:32 +04:30
Reza Feizi cad6bef879
Update reference.h 2022-06-06 15:21:11 +04:30
Reza Feizi 1f79228dc8
Update reference.cpp 2022-06-06 15:20:55 +04:30
Reza Feizi b2cebf60cb
Update cmd-searching.cpp 2022-06-06 15:17:44 +04:30
Reza Feizi f8d4559c7c
Add "All User Modules","All System Modules" To RMB 2022-06-06 08:44:04 +04:30
Josh Brown b9e503d8ef Added dprintf_args_untranslated_html which will add unescpated HTML to LogView 2022-05-27 18:36:45 -07:00
Duncan Ogilvie c7aeda7965 Print the NTSTATUS name next to the process exit code
See #2874
2022-05-18 12:35:25 +02:00
Duncan Ogilvie 101f4ae569 Add bytes to the CalculatorDialog and refactor
Thanks to @Rat431 for the idea, see #2872
2022-05-14 20:18:22 +02:00
Duncan Ogilvie d77f2d9b09 Switch to LLVMDemangle for symbol demangling
Thanks to @Khangaroo for the bug report!
2022-05-14 16:04:28 +02:00
Duncan Ogilvie ac0cf910a4 Change the order of symbol enumeration to be more natural 2022-05-14 14:38:18 +02:00
Duncan Ogilvie a031e037a4 Clarify some menu options 2022-05-14 14:38:01 +02:00
Duncan Ogilvie 89963dfc1a Improve expression function support 2022-04-11 00:56:47 +02:00
torusrxxx 0d3cc433e2
Use F2 to toggle window proc breakpoint 2022-03-26 20:13:37 +08:00
torusrxxx 01dba2c707
Add detach and exit to exit dialog 2022-03-26 19:48:17 +08:00
Duncan Ogilvie 78b77fa333
Merge pull request #2849 from mobile46/patch-1
Fix for printable characters
2022-03-24 10:46:20 +01:00
Duncan Ogilvie af07ddfa7a
Merge pull request #2850 from torusrxxx/patch000000d3
Remember some window settings, copy old value, UI enhancement
2022-03-24 10:45:44 +01:00
torusrxxx 05cf6a2b0d
Add "Ignore First-Chance" button to ignore all exceptions 2022-03-17 23:27:00 +08:00
torusrxxx 10c26e783b
Remember some window settings, copy old value, UI enhancement 2022-03-16 23:59:13 +08:00
Mobile46 626bbf0909
Fix for printable characters 2022-03-12 19:20:23 +03:00
Duncan Ogilvie a216adb21c Improve constant searching algorithm to match non sign-extended values too
Closes #2824
2022-02-24 15:02:01 +01:00
Duncan Ogilvie 048825e30a
Merge pull request #2817 from rajkumarananthu/feature_search_in_log
Adding search action in LogView
2022-02-24 14:44:50 +01:00
Duncan Ogilvie 07d60083bb Improve ASCII string detection algorithm
Closes #2835
2022-02-24 14:40:42 +01:00
谭九鼎 952257670f Use https for links (#2839)
# Conflicts:
#	CONTRIBUTING.md
2022-02-24 14:40:32 +01:00
谭九鼎 c89877707c
Use https for links (#2839)
* Use https for links

* change subdomain back to http
2022-02-24 14:36:50 +01:00
Rajkumar Ananthu 9dddf68b83 Updating the search in log feature changes as per the review comments
- Ran the format.bat on the changes
- Using ConfigColor() instead of QColor
- Implementing the search similar to notepad find(find, find next, find previous).
2022-02-21 19:35:22 +05:30
Duncan Ogilvie 3370207f03 Add some more unusual instructions 2022-02-14 23:35:46 +01:00
Duncan Ogilvie 80d6f6002c Allow dumping consecutive selected memory ranges 2022-02-14 23:35:22 +01:00
Duncan Ogilvie bc94635cef
Merge pull request #2822 from SirHerpDerp/asmdlg_opcode_pos
AssembleDialog - OpCode to newline
2022-02-14 19:10:43 +01:00
Duncan Ogilvie 72af1d2d35 Translate opcode bytes label 2022-02-14 18:44:42 +01:00