Joost van der Sluis
5ff2a7d17c
FpDebug: Calculate the relocated addresses of libraries
2021-12-10 20:17:46 +01:00
Joost van der Sluis
124083f794
FpDebug: Do not crash on unrecognized binary-formats
2021-12-10 17:57:07 +01:00
Joost van der Sluis
1dbef448b0
FpDebug: Removed spaces at start of the line in error-messages.
2021-12-10 17:31:33 +01:00
Martin
c33019c14b
LazDebugger: Fix, ensure DefaultContext is available. Broken in e618b09804
2021-12-10 00:29:26 +01:00
Martin
5c22ff5ad2
FpDebug: Fix stepping does not stop at next line (seen on Win7 only / Maybe issue #39383 ).
...
When checking if a step-in/over returned from going over a called proc (using the hidden-break), do not trust the BasePointer.
2021-12-10 00:29:26 +01:00
Bart
5aa4ccaa47
LazUtils: LConvEncoding: remove all code that is disabled if FPC_HAS_CPSTRING is NOT defined,
...
since we do not support compiler versions < 3.0, so FPC_HAS_CPSTRING is always defined now.
2021-12-09 22:00:25 +01:00
Bart
05765da982
LazUtils: LConvEncoding: Fix not setting target codepage in various xxxToUtf8() functions. Issue #39348 .
...
Note: ConvertAnsiToUtf8 not fixed yet.
2021-12-09 21:42:07 +01:00
Martin
343eb4e47c
FpDebug: PascalParser, fixed parsing float. In Pascal the comma is a list-separator. It can not be decimal-point. So using the locale "DecimalSeparor" will get wrong results.
2021-12-09 18:17:57 +01:00
Martin
4548d90a7f
LazDebuggerFp: Win64 - catch finally handlers, if the "try" block was entered via breakpoint (not stepped into) *and* left via "exit".
2021-12-09 18:17:57 +01:00
Martin
c90fb08f85
LazDebuggerFp: Win64 -Monitor RtlRestoreContext to catch more unwind cases.
2021-12-09 18:17:56 +01:00
Martin
269079e11a
LazDebuggerFp, Tests: Ensure the debugger does not break out of ProcessLoop, unless it is done.
2021-12-09 18:17:56 +01:00
Martin
280d99664e
LazDebuggerFp, Tests: Ensure the debugger does not go into unwanted dsInternalPause
2021-12-09 18:17:56 +01:00
Martin
e618b09804
LazDebuggerFp: Fix Stepping and threads / Ensure loop exits with correct EventType
2021-12-09 18:17:56 +01:00
Juha
08ed2844b3
Project Templates: Improve configuration of ProjectFile and other variables. Issue #38244 , patch by Rolf Wetjen.
2021-12-09 12:16:52 +02:00
Maxim Ganetsky
b291a31f11
FPDebug: fixed compilation on Windows
2021-12-09 01:38:49 +03:00
Joost van der Sluis
e9f1ffb855
FpDebug: Load libraries on Linux, and skip incompatible binaries. Also on Windows, for consistency and stability
2021-12-08 22:18:04 +01:00
Martin
baa12a8519
IDE: Fixed saving address Breakpoints in Project session
2021-12-08 17:31:20 +01:00
Juha
4020cb96fb
IDE: Remove an assertion in TMessagesCtrl. Triggered rarely by timing issues. Issue #39503 .
2021-12-08 12:21:58 +02:00
Martin
74cf3e3a62
IDE, project: Mark session modified for debugger-backend. => Amended "save selected debugger to session, not lpi" 2ad53a8a51
2021-12-08 10:28:23 +01:00
Joost van der Sluis
b9b35b4252
FpDebug: Set the TDbgImageReader.LoadedTargetImageAddr at creation, or else parts might already been read when it is set.
2021-12-08 00:43:17 +01:00
Joost van der Sluis
de0974f29e
FpDebug: Removed TDbgInstance.AddrOffset and other old attempts to relocate libraries properly
2021-12-08 00:43:17 +01:00
Martin
2ad53a8a51
IDE, project: save selected debugger to session, not lpi
2021-12-08 00:42:53 +01:00
Joost van der Sluis
f073c52428
FpDebug: Search for line-information not only within the executable, but also in the loaded libraries
2021-12-07 23:31:41 +01:00
Martin
9877946d86
FpDebug: reduced debugln
2021-12-07 23:21:42 +01:00
Martin
499026c519
FpDebug: Win64 SEH finally sub-routines, find the symbol for the procedure actually owning the finally block
2021-12-07 22:56:11 +01:00
Martin
54d2e1f159
FpDebug: "Run To" command to find the next line with code. (Step over to, does not yet)
2021-12-07 20:35:49 +01:00
Martin
df98551a5f
FpDebug: Implement finding "address for line" before/after the requested line, if there is no entry for the request.
2021-12-07 20:35:49 +01:00
Martin
a691278256
LazDebuggerFp: Fix handling of internal SEH breakpoints. Do not remove breakpoints from outer frames, they may still be needed.
2021-12-07 19:59:30 +01:00
Martin
7534833eb6
FpDebug: Fixed passing dangling pointer. (Currently not used by LazDebuggerFp when doing deExitProcess)
2021-12-07 15:41:58 +01:00
Martin
4f94496f20
LazDebuggerFp: clear flags for set/unset internal breaks
2021-12-07 15:41:29 +01:00
Maxim Ganetsky
92260fbdea
IDE: it is no longer needed to manually call translation callback for LCL package
2021-12-07 17:21:48 +03:00
Maxim Ganetsky
0c9041f474
IDE: it is no longer needed to manually call translation callbacks for 'static base' packages
2021-12-07 17:08:47 +03:00
Martin
ba63a18843
LazDebuggerFp: Fix removing temp break from "FBreakPoints[bplSehW64Except]". "Rdx" was a copy and paste error, once hit the address is "PC".
2021-12-07 12:50:08 +01:00
dsiders
70646c0d65
Docs: LazControls. Adds files needed to build CHM and HTML help for the package.
...
* lazcontrols-project.xml - the fpdoc project file for the LazControls package.
* lazcontrols.css - modified version of the fpdoc.css file.
* make-docs.bat - script to build CHM and HTML help formats on Windows.
* make-docs.sh - bash script to build CHM and HTML help formats on UNIX-like environments.
2021-12-06 23:26:10 +00:00
dsiders
06d44e3815
Docs: LazControls. Updates topic content and See Also links.
2021-12-06 18:12:56 +00:00
mattias
6f8cfba2f9
IDE: translate required packages before calling Register
2021-12-06 17:37:15 +01:00
Martin
480b0fd02d
LazDebuggerFp: Fixed step-out over finally. Do not stop in finally block.
2021-12-06 17:23:28 +01:00
Martin
28d1437b17
LazDebuggerFp: Added Comments for handling FpcSpecific data
2021-12-06 17:23:28 +01:00
Martin
9519a967ca
SourceEditor: Fix to show bookmark pop-up menu using key-shortcut (without toolbar). Fixes regression from issue #35883
2021-12-06 11:42:34 +01:00
Martin
07e3817870
FpDebug: fix mem leak. Libraries were not freed on Unload.
2021-12-06 00:40:25 +01:00
Martin
1b1dd8f5fa
LazDebuggerFp: Fixed race condition / double free. By the time TFpDebugExceptionStepping.Destroy is called, the debug process should be gone, and should have deleted all its breakpoint, including those in DoDbgStopped. Also this is usually called in the Process-Exit event.
2021-12-05 22:44:05 +01:00
Martin
7e06003d9d
FpDebug: Fix race condition. After FQueue.RemoveThread(Self) the Queue (if waiting in TerminateAllThreads) can destroy itself. So it must no longer be accessed.
2021-12-05 22:44:04 +01:00
Martin
b3e07ba2b5
FpDebug: fix for logging
2021-12-05 22:44:04 +01:00
Joost van der Sluis
957f76456c
FpDebug: Detect Dwarf-5 debug headers and skip unsupported sections
2021-12-05 18:26:09 +01:00
Joost van der Sluis
bc4718efae
FpDebug: Ability to pass multiple libraries to OnLibrary(Un)LoadedEvent and detection of loading of libraries on Linux
2021-12-05 01:46:45 +01:00
Martin
47177f39ca
Codetools: Testcase, add a few options for upcoming tests
2021-12-04 14:20:45 +01:00
mattias
de1209eefb
codetools: started test for nested alias class
2021-12-04 08:43:25 +01:00
mattias
8f307159a6
codetools: fixed tests when no pas2js found
2021-12-03 12:05:40 +01:00
wp_xyz
2b2368cb83
IDE: Use radiobuttons in project buildmode menu (rather than checkboxes). Issue #39497 , patch by Alexey Torgashin
2021-12-03 10:24:16 +01:00
Martin
217459a76f
LazDebuggerFp: fixed a nil deref, DefaultContext needs CurrentThread
2021-12-01 20:39:53 +01:00