Commit Graph

368 Commits

Author SHA1 Message Date
ccrause
f0f125ea19 FpDebug - propagate error if no TDbgProcess could be started. Potential fix for #41076 2024-08-21 18:41:40 +02:00
Martin
3a0ab2b96c IdeDebugger: reduce amount of update calls for changing a breakpoint 2024-08-12 22:57:40 +02:00
Martin
ab9254408f LazDebuggerFp: disable incorrect assert. 2024-07-21 18:58:12 +02:00
Martin
9092967d44 FpDebug: display-format for ymm/xmm 2024-07-12 16:45:49 +02:00
Martin
15b8b4893e FpDebug, IDE: show address for RIP relative asm operand 2024-07-11 01:10:18 +02:00
Martin
8f0a1d219c FpDebug: Don't register, if Sy is active / raise exception if created. 2024-06-30 11:40:32 +02:00
Martin
48056a4e61 FpDebug: fix getting exception message for FPC 3.3.1 / read vInstanceSize of TObject to calculate field location. 2024-06-21 23:04:04 +02:00
Martin
06f123d8dd LazDebuggerFp: fixed range check / added safety check for string len (exception msg/name). 2024-05-09 21:00:38 +02:00
Martin
73cb3d87f4 LazDebuggerFp: avoid calling QuickPause twice. 2024-04-21 19:36:49 +02:00
Martin
7d11cc3fe8 LazDebuggerFp, FpDebug: Handle multipl-breakpoint at the same address. 2024-04-21 16:59:09 +02:00
Martin
0b2c6bd8fa FpDebug: Allow breakpoints on lines without code (search up to N lines below). 2024-04-21 16:59:08 +02:00
Martin
db75236351 FpDebug: force asm window, when explicitly stopping in no-source-code area (breakpoint, or "step-out") 2024-04-11 17:11:00 +02:00
Martin
a9ecef9ad2 LazDebuggerFp: defer destroying internal breakpoints, so they don't access any pending TDbgThreads (try getting instruction pointer) 2024-03-18 15:52:53 +01:00
Martin
6aa6ea6983 Ide, Debugger, FpDebug: Implement StdIn/StdOut file redirection. Issue #40458 2024-03-18 14:01:44 +01:00
Martin
b471a2961e FpDebug: fix memleak when detaching from process. 2024-03-02 18:38:17 +01:00
ccrause
d30cfb0a95 Ensure ErrNo is within the limits of Integer to prevent range error when ReadUnsignedInt returns false. 2024-02-28 21:07:11 +01:00
ccrause
0375bb8ae9 Add InternalExceptionBreakPoints property to LazDebuggerFp properties. 2024-02-28 21:07:11 +01:00
Martin
8117ca5a5d LazDebugger: Remove TWatchDisplayFormat from debugger backends. 2024-02-28 00:52:45 +01:00
Martin
e183ea0b5f Debuggers: Add define FORCE_LAZLOGGER_DUMMY 2024-02-28 00:52:43 +01:00
Martin
b1d880be64 LazDebuggerFp: Remove duplicated RemoveAsync 2024-02-14 17:56:27 +01:00
Martin
b1a91a2333 LazDebuggerFp: further fix reading pty for console window. Remove dangling async call before destroying object. 2024-02-14 17:35:30 +01:00
Martin
e9099ab0e8 FpDebug: further fix reading pty for console window. 2024-02-13 22:31:28 +01:00
Martin
efcbc7a685 FpDebug,IDE: Windows, Implement Position and Size for console and default-pos Forms - via Run-Params 2024-01-27 21:19:25 +01:00
Martin
2f1fbf3286 FpDebug: return dfNotSuitableForOsArch for non Intel 2024-01-27 21:19:25 +01:00
Martin
972de7f404 LazDebuggerFp: fix stepping over try Window/Kernel.RaiseException except end 2024-01-20 16:14:57 +01:00
Martin
5e62cd71d1 Debugger: Improve Thread-Name display. Add support for thread name from GDB (only recent gdb versions) 2024-01-20 16:14:57 +01:00
Martin
0f47ec3b2a Debugger: fixes for ThreadNum 2024-01-20 16:14:57 +01:00
Martin
fd792b5d6f LazDebuggerFp: Don't set breakpoints when the debug session is already over 2024-01-19 15:47:14 +01:00
Martin
8ed6d90eb1 Ide,FpDebug: In FpDebug add a thread number (order of first occurrence). In the IDE, prefix the ID with the number. 2024-01-18 22:21:39 +01:00
ccrause
3ecbb52069 Updated MemModel structure. 2024-01-14 19:29:12 +01:00
Martin
c2e59c7885 FpDebug,LazDebugger: changes to MemManager to allow avr-read-register-as-address 2023-12-12 13:15:32 +01:00
Martin
5efaac3f2f FpDebug: find symbol for fpc_raiseexception (and similar) independent of case. 2023-12-04 02:19:00 +01:00
Martin
bacefb51ae LazDebuggerFp: Fixed line number for exceptions. 2023-10-08 13:32:37 +02:00
Martin
32ea407ca3 FpDebug: fix file locations in stack / don't use absolute path, files may have been pre-build in a different location (build vs install dir). 2023-10-03 19:40:03 +02:00
Martin
d3c5d91ce9 Debugger: Implement changing breakpoint location (line num in brk-property dialog).
- Update source editor marks
- Update FpDebug
2023-07-27 17:41:46 +02:00
Martin
0e1f76f481 LazDebuggerFp: Fix removing breakpoint, while thread-worker is still setting it. (possible race condition) 2023-07-27 17:41:45 +02:00
Martin
c5cddde52e FpDebug: allow starting debugger with Step-in/over 2023-06-20 18:09:10 +02:00
Martin
a2d87ebd69 Ide, Debugger: Check if debugger action is available if requested by key-stroke (don't send step-over to a not yet running FpDebug) 2023-06-20 17:29:26 +02:00
Martin
044ee4f0bc LazDebuggerFp: load line info (blue dots) for libraries 2023-05-27 13:19:33 +02:00
Martin
0b441dd73b FpDebug: disable peephole opt when using fpc 3.2.2 => otherwise fpc generates wrong code 2023-05-01 17:43:22 +02:00
Martin
badfeecb5d Debugger: renamed several interfaces, changing "T" prefix to "I" prefix 2023-03-22 19:41:24 +01:00
Martin
26f4160df9 Debugger: Update locals to use VirtualTree / FpDebug: return locals as new WatchResultData 2023-03-19 16:25:34 +01:00
Martin
ee4e48864e LazDebuggerFp, FpDebug: Disassembler now annotates lines with call,jmp,je,... with info on the target address. 2023-03-15 00:19:40 +01:00
Martin
42ae1a7765 LazDebuggerFp, FpDebug: deal with process-exit while watch-eval-function-call 2023-03-13 12:32:29 +01:00
Martin
db27ef882d FpDebug: clean up compile hints 2023-03-12 22:34:28 +01:00
Martin
179dc59dc6 Debugger: New interface for retrieving locals. 2023-03-02 19:56:37 +01:00
Martin
20bf681e0f LazDebuggerIntf: change event signature, include data / add template 2023-03-02 19:56:37 +01:00
Martin
0278edaea3 FpDebug: add workaround to prevent the IDE from creating empty/wrong Dbg-LineMaps (mapping all lines to zero) 2023-02-16 16:39:03 +01:00
Martin
04b384b34d FpDebug: Set breakpoints in libraries (dll/so). Update existing breakpoints when library is loaded. Add state (ok, fail, pending) to breakpoints. 2023-02-16 16:39:03 +01:00
Martin
5d091f5d5b FpDebug: Refactor breakpoints, move unit+line (or proc-name) to DpDebug. Change default scope to search all already loaded libraries. 2023-02-16 16:39:02 +01:00