Commit Graph

19514 Commits

Author SHA1 Message Date
martin
6c5a95f4d7 EditorMacroScript: Use "internal" (none-native) calling for object methods
git-svn-id: trunk@61896 -
2019-09-17 20:21:38 +00:00
martin
af0f513110 PascalScript: Added "internal" (none-native) calling for object methods
git-svn-id: trunk@61895 -
2019-09-17 20:21:36 +00:00
martin
ce36789c36 LazDebuggerFp: Improve OnIdle handling
git-svn-id: trunk@61893 -
2019-09-16 23:14:19 +00:00
martin
804b5a7be4 FpDebug: Windows, fix closing handles for sub-processes (not currently debugged). Also correctly detach.
git-svn-id: trunk@61892 -
2019-09-16 21:49:27 +00:00
martin
4137324e48 FpDebug: Check result of ReadThreadState. Do not use invalid data (on windows this lead to nil deref crash)
git-svn-id: trunk@61891 -
2019-09-16 21:49:25 +00:00
martin
bb55284e92 GdbmiDebugger/Server: FIX Add ability to inject gdb-commands specified by user.
git-svn-id: trunk@61890 -
2019-09-16 20:05:05 +00:00
martin
9ef0d523bc Added Macro Substitution to ExecuteUserCommands. Patch by Michael Ring
git-svn-id: trunk@61889 -
2019-09-16 15:15:04 +00:00
martin
63cb1e20c9 GdbmiDebugger/Server: Add ability to inject gdb-commands specified by user. Based on patch by Michael Ring
git-svn-id: trunk@61888 -
2019-09-16 15:15:03 +00:00
martin
70005fc17a IDE, XmlConfig: Added ability to store published object (TPersistent) properties / Adhere to "stored" value of properties
git-svn-id: trunk@61887 -
2019-09-16 15:15:00 +00:00
martin
e35fc25db7 GdbmiServerDebugger: Added stop on disconnect. Issue #0036076
git-svn-id: trunk@61886 -
2019-09-16 01:31:10 +00:00
martin
eea7a8300f GdbmiServerDebugger: Flag to use target extended-remote / Patch by Michael Ring
git-svn-id: trunk@61885 -
2019-09-15 23:00:37 +00:00
martin
bfb0ff05df FpDebug: Test for stepping over an breakpoint that continues (condition/auto-continue/...) / stepping over recursive calls
git-svn-id: trunk@61884 -
2019-09-15 13:22:03 +00:00
martin
52a25d352c FpDebug: move ...Command.Init into the thread. In case it needs to access process data.
git-svn-id: trunk@61883 -
2019-09-15 13:22:01 +00:00
martin
618ad4ba32 FpDebug: Fix stepping over an breakpoint that continues (condition/auto-continue/...) / Fix stepping over recursive calls
git-svn-id: trunk@61882 -
2019-09-15 13:22:00 +00:00
martin
533670667b FpDebug: Stepping commands, refactor (partly) detection of "call" instruction.
git-svn-id: trunk@61881 -
2019-09-14 14:33:10 +00:00
martin
48f15f849d FpDebug: Stepping commands, refactor HiddenBreakpoint:
- Move to base-class
- No need to check for other breakpoints (fpdebug can now handle several brk at same address)
- Stop step-out, if break failed to set

git-svn-id: trunk@61880 -
2019-09-14 14:33:09 +00:00
martin
1c5491c441 FpDebug: tests for step over
git-svn-id: trunk@61879 -
2019-09-14 14:33:07 +00:00
martin
c5fe550fbe FpDebug: Stepping commands, set Handled = Finished => so the loop will end if a step is done
git-svn-id: trunk@61878 -
2019-09-14 14:27:48 +00:00
martin
cc1055fbed FpDebug: Windows, fix stepping over (temp-removed) breakpoint.
- If another thread received a signal before the "step-finished signal" (e.g. thread created / pending sigs) then the temp-break was back in place and kept in place -> the break was hit again instead of stepping over it.
- If another thread exited (and the exit signal was received before the "step-finished signal" then no handling was done at all (no threads suspended / no temp remove breaks)

git-svn-id: trunk@61877 -
2019-09-14 14:27:47 +00:00
martin
fc1a436bed FpDebug: Linux, do not add any SigStop to deferred event list. (It going to be ignored as deInternalContinue anyway)
git-svn-id: trunk@61876 -
2019-09-14 14:27:45 +00:00
martin
4be5e94e3e FpDebug: Linux, do not modify running processes (in case of deInternalContinue, some processes may not be paused)
git-svn-id: trunk@61875 -
2019-09-14 14:27:44 +00:00
martin
c7fae55176 FpDebug: fix flag for breakpoint
git-svn-id: trunk@61874 -
2019-09-14 14:27:42 +00:00
martin
151412f007 FpDebug: improve stepping.
Refactor: Capture initial data before DoContinue
Fix/Improve: Only check and continue the thread that is stepped / Make HiddenBreakpoint hidden from the rest of the controller.

git-svn-id: trunk@61873 -
2019-09-14 14:27:41 +00:00
martin
f17b2727f4 FpDebug: re-arrange order of some classes
git-svn-id: trunk@61872 -
2019-09-14 14:27:39 +00:00
mattias
c1a8c22f07 codetools: sourcecloser: fixed cleaning up unit begin block
git-svn-id: trunk@61871 -
2019-09-13 19:23:20 +00:00
mattias
927af7729c codetools: omit end keyword of unit begin block
git-svn-id: trunk@61870 -
2019-09-13 19:22:42 +00:00
martin
85a2eb7321 FpDebug: fixed uninitialized var, could prevent debugger from stopping when app exits
git-svn-id: trunk@61869 -
2019-09-13 12:09:32 +00:00
balazs
55976aef82 Opkman: Remove flag pcfCompileDependenciesClean since it does not help with the "incompatible ppu" error.
git-svn-id: trunk@61868 -
2019-09-13 09:27:16 +00:00
martin
3fce95a1c2 FpDebug: Windows, debugln/dbgs include WOW64 names
git-svn-id: trunk@61867 -
2019-09-12 15:33:14 +00:00
martin
c9beb9dffe FpDebug: Windows, fixed Process.Continue with single step request
git-svn-id: trunk@61866 -
2019-09-12 15:33:12 +00:00
martin
cae3f56d05 FpDebug: fixed nil pointer crash when clearing breakpoints, after the debugged app exited.
git-svn-id: trunk@61865 -
2019-09-12 15:33:11 +00:00
martin
df6722dd5f FpDebug: Ensure that exit thread aborts any running command. (The command may change the event-enum-code in FPDEvent, and try to continue running)
git-svn-id: trunk@61864 -
2019-09-12 15:33:09 +00:00
maxim
5fdbdc4c9a Opkman: regenerated translations and updated Russian translation
git-svn-id: trunk@61860 -
2019-09-10 23:21:27 +00:00
martin
804da0aa30 LeakView: test for fix/improve pasting address only traces
git-svn-id: trunk@61857 -
2019-09-10 22:54:41 +00:00
martin
3d1601903e LeakView: fix/improve pasting address only traces
git-svn-id: trunk@61856 -
2019-09-10 22:54:39 +00:00
martin
83e546aa9f IDE, Keymap: Add combo for enable/disable (toggle) breakpoint.
git-svn-id: trunk@61854 -
2019-09-10 18:52:48 +00:00
martin
63087a3084 FpDebug: Linux, ensure a breakpoint is reported once for each thread, if hit at the same time
git-svn-id: trunk@61853 -
2019-09-10 18:52:46 +00:00
martin
b93119b54e FpDebug: Test that each breakpoint is reported in each thread
git-svn-id: trunk@61852 -
2019-09-10 18:52:42 +00:00
martin
230c6983fb FpDebug: fix compile on linux
git-svn-id: trunk@61851 -
2019-09-10 13:33:39 +00:00
balazs
3049e3abb8 Opkman: Change warning message for untested packages.
git-svn-id: trunk@61850 -
2019-09-10 03:45:38 +00:00
martin
0b78b442ef FpDebug: Windows, Enabled test for WoW64
git-svn-id: trunk@61849 -
2019-09-10 01:40:51 +00:00
martin
1958b8edea FpDebug: Windows, Added WoW64
git-svn-id: trunk@61848 -
2019-09-10 01:40:49 +00:00
martin
a2978c370e FpDebug: Windows, remove unused code
git-svn-id: trunk@61847 -
2019-09-10 01:40:48 +00:00
martin
a3fb24b828 FpDebug: load some kernel functions dynamically, to avoid stopping the IDE from starting on pre-vista systems.
git-svn-id: trunk@61846 -
2019-09-09 21:13:57 +00:00
martin
304f6e7be9 FpDebug: Fix requesting process to pause, broken in r61840 #ece9967721
git-svn-id: trunk@61845 -
2019-09-08 23:33:01 +00:00
martin
623c18b832 FpDebug: comment out test for not yet implemented feature / clean up
git-svn-id: trunk@61841 -
2019-09-08 19:03:12 +00:00
martin
ece9967721 FpDebug: Keep the loop running, if internal stepping causes deBreakPoint without actually hitting a breakpoint. Required because now there can be several such singlesteps in one iteration of the loop.
git-svn-id: trunk@61840 -
2019-09-08 19:03:11 +00:00
martin
876682fc9d FpDebug: Handle hitting breakpoints, that have been removed while the event was waiting. Still need to re-execute the asm instruction that was hidden by int3
git-svn-id: trunk@61839 -
2019-09-08 19:03:09 +00:00
martin
2f812db331 FpDebug: Windows, suspend other threads while single stepping over a (temp-removed) breakpoints.
- Other threads could cause an event, before the thread does single-step. Then the breakpoint gets restored to early
- Other threads could run through the code, while the breakpoint is removed. They would not stop as they should.

git-svn-id: trunk@61838 -
2019-09-08 19:03:08 +00:00
martin
736f8b32fa LazDebuggerFp: fix debugln
git-svn-id: trunk@61837 -
2019-09-08 19:03:06 +00:00
martin
3254177a33 LazDebuggerFp: check correct thread (only top frame) when getting register values
git-svn-id: trunk@61836 -
2019-09-08 19:03:05 +00:00
martin
5b2858fe15 FpDebug: Test for breakpoints in threads
git-svn-id: trunk@61835 -
2019-09-08 19:03:03 +00:00
martin
966ecb9382 FpDebug: debugln for windows API events
git-svn-id: trunk@61834 -
2019-09-08 18:52:42 +00:00
martin
e6e7bf4355 FpDebug: Linux, improve "Stop all" loop
git-svn-id: trunk@61833 -
2019-09-08 18:52:41 +00:00
martin
595f8b9f3e FpDebug: Linux, refactor signal handling for signals that need to be postponed. Need to collect signals with no existing thread yet, as they will create that thread.
git-svn-id: trunk@61832 -
2019-09-08 18:52:39 +00:00
martin
aa85ec85ed FpDebug: Linux, removed unused code
git-svn-id: trunk@61831 -
2019-09-08 18:52:38 +00:00
martin
1ab353e555 FpDebug: Linux, reduce the amount of calls to temp-remove/restore breakpoints
git-svn-id: trunk@61830 -
2019-09-08 18:52:36 +00:00
martin
85a8100c39 FpDebug: Linux, fix for temp-removed breakpoints were not always restored (if another thread had pending events, writing the breakpoint in WaitForEvent would fail, due to thread running / signal not yet collected)
git-svn-id: trunk@61829 -
2019-09-08 18:52:35 +00:00
martin
999d567e45 FpDebug: debugln for Linux
git-svn-id: trunk@61828 -
2019-09-08 18:52:33 +00:00
martin
9defda8b5c FpDebug: Linux, prevent crash on nil deref
git-svn-id: trunk@61819 -
2019-09-05 20:05:58 +00:00
martin
addf952338 FpDebug: Less debugln noise when checking if break exists
git-svn-id: trunk@61818 -
2019-09-05 20:05:57 +00:00
martin
d9731de769 FpDebug, LazDebuggerFp: More debugln for Breakpoints
git-svn-id: trunk@61817 -
2019-09-05 20:05:55 +00:00
martin
c86c8d65e6 FpDebug: reduce logged errors for messages that are expected (cannot write to terminated process)
git-svn-id: trunk@61816 -
2019-09-05 20:05:54 +00:00
martin
2fa22bf873 LazDebuggerFp: Fix crash when starting debugger with F7/F8 - Disable them, as they currently do not stop at program entry
git-svn-id: trunk@61815 -
2019-09-05 20:05:51 +00:00
balazs
d2f267dd05 Opkman: Add pcfCompileDependenciesClean flag to prevent "incompatible ppu" error.
git-svn-id: trunk@61813 -
2019-09-04 11:20:15 +00:00
maxim
d92221f335 SynEdit: Reverted change in PO highligter name (SYNS_LangPo) from r61786 #489168d083. These language names should remain static, otherwise config loading will be broken.
git-svn-id: trunk@61811 -
2019-09-02 22:23:24 +00:00
martin
e06e1746df LazDebuggerFp: fix uninitialized var
git-svn-id: trunk@61809 -
2019-09-02 14:19:04 +00:00
martin
e948c7b47a LeakView: fix double free crash. Introduced in r61711 #01fb06cf22 by using TFPGObjectList which does auto free objects
git-svn-id: trunk@61808 -
2019-09-02 13:01:37 +00:00
martin
4e7c7e1842 LazDebuggerFp: correctly eval watches for history snapshots
git-svn-id: trunk@61807 -
2019-09-02 00:44:53 +00:00
martin
00417e251e FpDebug: Fix stackframe evaluation / In some cases (if stack win was closed, when brk-point hit) only the top frame was displayed.
git-svn-id: trunk@61806 -
2019-09-02 00:44:52 +00:00
martin
9fedf06c5f FpDebug: fix context (crash) during stack eval / currently unused code
git-svn-id: trunk@61805 -
2019-09-02 00:44:50 +00:00
martin
4db4bc458b LazDebuggerFp: fix context (crash) during stack eval
git-svn-id: trunk@61804 -
2019-09-02 00:44:49 +00:00
martin
386be78e7c FpDebug: improve finding a name (or other info) to display type name (un-named pointers) / ^__vtbl_....
git-svn-id: trunk@61803 -
2019-09-02 00:44:48 +00:00
martin
34e84c690e FpDebug: rename variable
git-svn-id: trunk@61802 -
2019-09-02 00:44:46 +00:00
martin
5408d59907 FpDebug: Clean up, error will be set already
git-svn-id: trunk@61801 -
2019-09-02 00:44:45 +00:00
martin
14ef5eb9fc FpDebug: Refactor ReadBounds
git-svn-id: trunk@61800 -
2019-09-02 00:44:43 +00:00
martin
767d2014d8 FpDebug: Refactor GetDataAddress
git-svn-id: trunk@61799 -
2019-09-02 00:44:41 +00:00
juha
fafc78142f LazReport: Improve layout in form "insert fields". Issue #36039.
git-svn-id: trunk@61797 -
2019-09-01 22:10:21 +00:00
martin
538976df00 FpDebug: Implement DW_AT_allocated and DW_AT_associated
git-svn-id: trunk@61791 -
2019-08-31 20:59:09 +00:00
martin
6b65857351 FpDebug: Refactor cache for Address/DataAddress
git-svn-id: trunk@61790 -
2019-08-31 20:59:08 +00:00
martin
4b2740c97a FpDebug: DW_AT_data_member_location now handles constant offset too. Moved to ComputeDataMemberAddress
git-svn-id: trunk@61789 -
2019-08-31 20:59:06 +00:00
martin
0d8b455ac6 FpDebug: rename one of the two LocationFromTag methods
git-svn-id: trunk@61788 -
2019-08-31 20:59:04 +00:00
maxim
1bc2b744e8 SynEdit: removed obsolete README.txt from languages directory
git-svn-id: trunk@61787 -
2019-08-29 23:20:43 +00:00
maxim
489168d083 SynEdit: Converted Unix Shell Script highligter name from resource string to constant and moved it to syneditstrconst.pp for symmetry with other highlighters. Removed now obsolete synhighlighterunixshellscript.*.po files. While at this, corrected the case of SYNS_LangPo constant value (didn't seem to cause any regressions).
git-svn-id: trunk@61786 -
2019-08-29 23:06:38 +00:00
maxim
b934a433bf SynUniHighlighter: improved Russian translation
git-svn-id: trunk@61785 -
2019-08-29 22:20:37 +00:00
martin
6cabb6cc74 FpDebug: tests
git-svn-id: trunk@61784 -
2019-08-29 15:12:47 +00:00
martin
a8ec28c709 FpDebug: PascalParser, added = / <> operator for classes/interfaces
git-svn-id: trunk@61783 -
2019-08-29 15:12:45 +00:00
martin
aa7a4b709c FpDebug: better detection of skInterface, skClass, skObject, skRecord. Added DW_TAG_interface_type.
git-svn-id: trunk@61782 -
2019-08-29 15:12:43 +00:00
martin
42a0598520 Gdbmi: Test helper package, missing file
git-svn-id: trunk@61781 -
2019-08-29 01:30:05 +00:00
maxim
7eea4a92e8 lazdebuggergdbmi: Moved resource strings from gdbmiserverdebugger.pas to gdbmistringconstants.pas, regenerated translations and updated Russian translation (gdbmiserverdebugger.*.po/.pot files are not needed anymore and removed).
git-svn-id: trunk@61780 -
2019-08-28 23:09:33 +00:00
martin
d18be77617 FpDebug: Move more fpc specific behaviour to fpdbgdwarffreepascal.pas
git-svn-id: trunk@61779 -
2019-08-28 15:36:18 +00:00
martin
530e705ee9 FpDebug: more tests
git-svn-id: trunk@61778 -
2019-08-28 15:36:17 +00:00
martin
94eaca854f FpDebug: Rename TDbgSymbolForwarder to TFpSymbolForwarder
git-svn-id: trunk@61777 -
2019-08-28 15:36:15 +00:00
martin
3469cab38f FpDebug: Rename FpSymbol.Member* to NestedSymbol* / Distinguish from FpValue.Member
git-svn-id: trunk@61776 -
2019-08-28 15:36:13 +00:00
dmitry
fc273b7540 debugger: .po files regenerated
git-svn-id: trunk@61774 -
2019-08-28 03:10:23 +00:00
dmitry
50b2c4921c debugger: reusing the code of stopping the initialization process
git-svn-id: trunk@61773 -
2019-08-28 03:09:52 +00:00
dmitry
86a2871214 debugger; updating serverdebugger to allow initialization command to be executed prior to target remote call. (allow to trigger the gdbserver start) #36020
git-svn-id: trunk@61769 -
2019-08-27 23:45:55 +00:00
dmitry
159d5cc8cc opengl: getting rid of cocoa GetNSObjectView
git-svn-id: trunk@61767 -
2019-08-27 19:25:49 +00:00
maxim
5f10473e8d Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #36016
git-svn-id: trunk@61759 -
2019-08-26 22:35:04 +00:00
martin
7096bc4c00 FpDebug: pascal-builder improve tolerance for unknown types in classes
git-svn-id: trunk@61755 -
2019-08-24 20:39:57 +00:00