1
0
Fork 0
Commit Graph

3279 Commits

Author SHA1 Message Date
Michael Maltsev 2eb0ab955f Refactor SymbolInfoWrapper and make it safer to use 2023-05-07 21:54:05 +03:00
Michael Maltsev 21c8baa23d Fix sizeof usage, it already accounts for the null terminator 2023-05-07 21:54:05 +03:00
Michael Maltsev f44d9b7e55 Add missing lock acquire for DBG_GET_SYMBOL_INFO_AT 2023-05-07 21:54:05 +03:00
Duncan Ogilvie fbff8ac5aa
Merge pull request #3083 from torusrxxx/patch000000db
Set proper default style for example text in appearance dialog
2023-05-07 15:33:52 +02:00
torusrxxx cc45d145db
Qt cannot open text file with Chinese characters in file name??? Add error message 2023-05-01 17:42:13 +08:00
torusrxxx 80681e47b1
Set proper default style for example text in appearance dialog 2023-05-01 17:36:13 +08:00
Duncan Ogilvie c38c03dbd4
Merge pull request #3079 from m417z/get-symbol-info-at-api
Add the DbgGetSymbolInfoAt API
2023-04-30 13:14:48 +02:00
Michael Maltsev cc583996e0 Add the DbgGetSymbolInfoAt API 2023-04-30 13:41:45 +03:00
Duncan Ogilvie d023670943 Fix compilation with VS2022
#3009
2023-04-30 12:06:25 +02:00
Michael Maltsev 5215d5e0bd Fix a potential memory leak in script API symbol enum 2023-04-29 22:40:53 +03:00
torusrxxx 42a43fc15b
Add breakpoint background color in call stack view 2023-04-29 12:53:00 +08:00
Duncan Ogilvie 19e93aef84 Error when attaching to a process already being debugged 2023-04-28 14:21:29 +02:00
Duncan Ogilvie fb52153bf8 Fix the winerror@x format string being used incorrectly 2023-04-28 14:20:39 +02:00
Duncan Ogilvie 3464219ee7 Fix a bunch of (non-critical) issues found by Coverity 2023-04-28 14:20:02 +02:00
Duncan Ogilvie 804e5dbf7c Fix a nullptr dereference in dbglistprocesses. Thanks to @HydrophonePia!
Closes #3075
2023-04-27 23:20:39 +02:00
Duncan Ogilvie 1845952e17 Fix for the fix, damn
Closes #3068
2023-04-15 16:53:03 +02:00
Duncan Ogilvie 8566d7b884 Fix a compiler warning in getSSERegisterOffset 2023-04-14 20:50:55 +02:00
Duncan Ogilvie b833538632 Workaround for a weird bug on Windows 7
Closes #3062
2023-04-14 20:22:00 +02:00
Duncan Ogilvie c05e9f2779 Fix inconsistent calling convention for LoadLibraryChecked
Closes #3057
2023-04-14 20:02:55 +02:00
Duncan Ogilvie b6348f5b79 Fixed compilation error caused by generated code 2023-04-07 18:08:15 +02:00
Duncan Ogilvie 55930a5125
Merge pull request #3044 from torusrxxx/patch000000d9
Misc Maintenance
2023-04-05 10:27:45 +02:00
Duncan Ogilvie 93ad736f93 Fix a one-off issue while painting 2023-04-05 09:33:54 +02:00
Duncan Ogilvie 5674bf9984 Add the plugin directory to the DLL search path
#3047
2023-04-05 09:33:17 +02:00
torusrxxx 096db3b631
Fixed cannot delete a variable using "vardel x" 2023-03-11 20:02:03 +08:00
torusrxxx 5a01980096
Clean up XMM formatting; Fix build error with QMutex not found 2023-03-11 19:39:51 +08:00
Duncan Ogilvie ee5aa0a264 Add support for enumerating a range of symbols 2023-03-10 12:18:51 +01:00
Duncan Ogilvie 1a1f48b1f1 Clean up a bunch of code 2023-03-04 02:20:06 +01:00
Duncan Ogilvie 1e616021e8 Initial implementation of the signature check to prevent abuse
(cunty)
2023-03-04 02:16:32 +01:00
Duncan Ogilvie ed0fce1124 Fix a renamed slot in the LogView 2023-03-04 02:15:23 +01:00
Duncan Ogilvie c4df19f724 Initial signature checking PoC working 2023-03-03 12:19:27 +01:00
Duncan Ogilvie a9261b7627 Generalize tab order handling to support plugins in the future 2023-03-03 01:25:12 +01:00
Duncan Ogilvie c05f20a84a Restore the previous tab order when closing a detached tab 2023-03-03 01:24:41 +01:00
Duncan Ogilvie 358cd1c1df Remember the 'Sync with CPU' setting in the TraceBrowser 2023-03-02 18:28:27 +01:00
Duncan Ogilvie 1eb0daf18b Create a shared hotkey for the sync actions 2023-03-02 18:24:26 +01:00
Duncan Ogilvie e0fe0f2bd2 Fix a bug introduced with the full path title 2023-03-02 18:16:00 +01:00
Duncan Ogilvie 3787d7d750 Add 'edit columns' option to the stack
Initial work for #1957
2023-03-02 10:46:52 +01:00
Duncan Ogilvie e1177a0d02 Minimize the size of the SettingsDialog 2023-03-02 10:03:54 +01:00
Duncan Ogilvie 1191ee08c6 Add minor zydis improvements from #2362 2023-03-02 09:47:13 +01:00
Duncan Ogilvie e56b91e2a1 Merge branch 'dont_break_on_SetThreadName' into development
# Conflicts:
#	src/dbg/thread.cpp
#	src/gui/Src/Gui/SettingsDialog.ui
2023-03-02 09:39:42 +01:00
Duncan Ogilvie 3a6c0b1a7a Improve wording of the settings a bit 2023-03-02 08:53:25 +01:00
Duncan Ogilvie bd95d241bb Fix a potential DOS and bypass for SetThreadName breakpoints 2023-03-02 08:52:58 +01:00
Duncan Ogilvie db5b9224f8 Change the option name and use disassembly selection instead of CIP 2023-03-02 08:17:03 +01:00
Niklas Betten 31d88698ec New Option to Show Path of Debuggee in Title:
Under the GUI settings we find the new option 'Set Long Window Path'.
If this is enabled instead of the normal Window Title with current thread, the full path is shown instead
2023-02-28 20:00:24 +01:00
Duncan Ogilvie 73021964ae Disable caching in DbgMemRead 2023-02-24 04:27:17 +01:00
Duncan Ogilvie 1df6d0ab07 Improved performance when doing bulk operations on breakpoints 2023-02-24 04:13:30 +01:00
Duncan Ogilvie de66533b8c Add GuiDisableLogScope and GuiDisableUpdateScope helpers 2023-02-24 04:12:46 +01:00
Duncan Ogilvie 7239b4663e Append a 'ret' when a script ends in a conditional branch 2023-02-24 01:51:31 +01:00
Duncan Ogilvie 4475065928 Disable GUI updates while running a script 2023-02-24 01:42:13 +01:00
Duncan Ogilvie 7f66d171d6
Merge pull request #3017 from p0358/GetThreadDescription
Get thread name from GetThreadDescription
2023-02-23 21:09:54 +01:00
p0358 911e4b2fcf
get thread name from GetThreadDescription 2023-02-23 05:10:09 +01:00
Duncan Ogilvie 0fb48b5e17 Fix compilation on 32-bit 2023-02-23 01:52:01 +01:00
Duncan Ogilvie 368d9fbb7d Add aliases for StepUser 2023-02-23 01:32:01 +01:00
Duncan Ogilvie f1a0797f44 Enumerate process heaps and mark them 2023-02-23 01:28:33 +01:00
Duncan Ogilvie ec8fb28b12 Implement StepUser and StepSystem commands 2023-02-23 01:28:06 +01:00
Duncan Ogilvie e00ccff872 Implement StepIntoUser and StepIntoSystem helper functions 2023-02-23 01:23:56 +01:00
Duncan Ogilvie d6679772c5 Strongly type TitanEngine callbacks (finally) 2023-02-22 09:50:24 +01:00
Duncan Ogilvie 578c14c8c5 Improve code readability after looking for buffer overflows 2023-02-22 08:51:24 +01:00
Duncan Ogilvie 4b801d8f21 Improve error handling when reading process command lines 2023-02-22 08:49:17 +01:00
Duncan Ogilvie 067b53d0b9 Remove the 'switch condition' functionality 2023-02-22 08:22:33 +01:00
p0358 3c8272fc0f
add ThreadNameSet setting for SetThreadName exception breaking/ignoring 2023-02-16 19:11:07 +01:00
p0358 f82347234d
don't break on SetThreadName exception 2023-02-16 15:44:16 +01:00
Duncan Ogilvie fcc4207327 Fix a crash introduced by the refactor of valapifromstring 2023-01-25 11:48:55 +01:00
Duncan Ogilvie 00aee0fcb1 Rewrite valapifromstring to use MODINFO::getProcAddress
Previously it would constantly map DLLs into x64dbg's address space and forwards were not supported properly in some cases.
2023-01-24 13:42:51 +01:00
Duncan Ogilvie 4e7e3abbca Add an autocomment on forwarded exports 2023-01-24 13:41:52 +01:00
Duncan Ogilvie 5c550a65b7 Add a mapImage flag to the FileMap helper 2023-01-24 13:41:24 +01:00
Duncan Ogilvie e246545aae Implement MODINFO::getProcAddress
This resolves forwards as well as API sets
2023-01-24 13:40:56 +01:00
Duncan Ogilvie d80847caae Add support for "kernelbase + 0x1000" as an expression 2023-01-24 08:09:55 +01:00
Duncan Ogilvie f35c8a54a4 Fix a regression caused by #2571
Strings inside modules would not be listed, now it outputs module."string" instead.

Closes #3003
2023-01-18 11:10:30 +01:00
Duncan Ogilvie d7e68c7056 Respect mAllowPainting in the Disassembly 2023-01-18 11:04:51 +01:00
Duncan Ogilvie cd6370dcf0
Merge pull request #3004 from bb107/patch-1
unexpected variable override
2023-01-16 18:40:43 +01:00
Duncan Ogilvie cc6d5ed0d4 Allow the RegisterView to collapse
#2598
2023-01-15 15:23:41 +01:00
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