Commit Graph

209 Commits

Author SHA1 Message Date
martin
a08b1f9560 GdbmiDebugger, Windows: Improved speed. Wait for gdb responses, with less sleep calls (increase cpu usage) / Option to disable for laptops/etc.
git-svn-id: trunk@61117 -
2019-05-03 15:16:31 +00:00
martin
4544b99ea8 LazDebuggerGDBMI: fix mem-leak when cross debugging (new LazGDeBugControl)
git-svn-id: trunk@61104 -
2019-05-02 01:05:05 +00:00
martin
c3dedf9cc0 LazDebuggerGDBMI: Improve getting exception class/msg with dwarf-3
git-svn-id: trunk@61102 -
2019-05-02 01:05:01 +00:00
martin
8c3b6003f7 GdmbiDebugger: use new LazGDeBugControl for cross debugging (needs LazGDeBugControl.exe in gdb directory)
git-svn-id: trunk@61090 -
2019-04-30 17:38:16 +00:00
martin
fdabfa94a8 GdmbiDebugger: Rename class TGDBMIDebugger to TGDBMIDebuggerBase
git-svn-id: trunk@61089 -
2019-04-30 17:38:15 +00:00
martin
67f6274cad LazDebuggerGdbmi: Improve "Reset Debugger". Ensure timeouts, if certain options lead to endless waiting.
git-svn-id: trunk@61068 -
2019-04-28 13:31:45 +00:00
martin
dfcb3321a3 LazDebuggerGdbmi: Improve whitelisted commands for memory limit
git-svn-id: trunk@61067 -
2019-04-28 13:31:43 +00:00
juha
3df7d8afe5 LCL, LazUtils: Move string manipulation functions from LCLProc to LazStringUtils.
git-svn-id: trunk@61038 -
2019-04-22 09:00:32 +00:00
juha
d9ac09795b Respect compiler OPT='-v0' by using {$push} and {$pop} in code. Issue #34955.
git-svn-id: trunk@60706 -
2019-03-16 21:17:58 +00:00
martin
f10ec28818 LazDebuggerGdbmi: Detect multi-line internal gdb errors as one error.
git-svn-id: trunk@60475 -
2019-02-23 15:00:21 +00:00
martin
1a62240d73 LazDebuggerGdbmi: Detect internal gdb errors, while waiting for run/step to end. Issue #0035129
git-svn-id: trunk@60474 -
2019-02-23 15:00:18 +00:00
martin
ed5312942f LazDebuggerGdbmi: refactor detection of gdb internal error. Move code to main debugger class.
git-svn-id: trunk@60473 -
2019-02-23 15:00:11 +00:00
martin
586058a0e3 Debugger GDBMI: Attempt workaround for step-over issue (step-over performs step-in). See Issue #0034159
git-svn-id: trunk@60274 -
2019-02-01 22:54:41 +00:00
martin
54f21f7efa Debugger GDBMI: Fix thread context for finding correct frame
git-svn-id: trunk@60273 -
2019-02-01 22:51:44 +00:00
mattias
2caaad78ec lazdebuggergdbmi: less hints
git-svn-id: trunk@60112 -
2019-01-19 17:37:50 +00:00
martin
1a96441c98 Debugger-Gdbmi: add "step to except" for win64 (SEH). No "step to finally" yet. Refactor "step to except" for none SEH.
git-svn-id: trunk@59482 -
2018-11-07 20:56:19 +00:00
martin
9fd763ca67 Debugger-Gdbmi: fix setting internal breakpoints by address only.
git-svn-id: trunk@59481 -
2018-11-07 19:37:50 +00:00
martin
63cf689e1e Debugger (gdb): Fix Debug-Inspector for dwarf3. Match fieldnames case insensitive. Depending on gdb, try to find the MixedCase version of any name. Issue #0034453
git-svn-id: trunk@59351 -
2018-10-25 23:47:36 +00:00
martin
84464812eb Debugger (gdbmi based): Add TIOCGWINSZ to PseudoTerminal. Issue #33935 Patch by Mark Morgan Lloyd
git-svn-id: trunk@58480 -
2018-07-10 15:42:25 +00:00
martin
5d541aec27 DebuggerIntf: Watches can now be created in Updating state. Allowing to bundle change notifications for the debugger backend.
git-svn-id: trunk@58465 -
2018-07-08 20:51:00 +00:00
martin
be369c0a73 Debugger: start refactor event-log handling / allow resource strings for common events to be stored in the IDE (rather than each debugger back end)
git-svn-id: trunk@58433 -
2018-07-03 14:54:51 +00:00
martin
b3ce1a5d64 GdbmiDebugger: remove some duplicate calls to "set language". issue #33867
git-svn-id: trunk@58296 -
2018-06-17 19:21:03 +00:00
martin
e0b05d3b6b GDBMI Debugger Server: add optional support for -target-download if supported by gdb. issue #0033868 Patch by Christo Crause
git-svn-id: trunk@58288 -
2018-06-16 12:35:09 +00:00
martin
018bda7a2f GDBMI Debugger: Added work around for wrong stackframe when assert is triggered. Issue #0029959
git-svn-id: trunk@58283 -
2018-06-15 19:23:52 +00:00
martin
cef14db081 DebuggerIntf: Refactor, evaluate now takes a callback
git-svn-id: trunk@58238 -
2018-06-12 22:58:35 +00:00
martin
2dc72b8b3a debugger: fix type cast
git-svn-id: trunk@58234 -
2018-06-12 09:44:29 +00:00
martin
276c808652 GDBMI Debugger: refactor PID detection (prepare for issue #0032084 )
git-svn-id: trunk@58231 -
2018-06-11 21:53:11 +00:00
martin
e59c981a03 GDBMI debugger: Apply restrictive size limits for stack and locals. Avoid gdb "hanging" (taking long times, several minutes) to eval stack or locals.
git-svn-id: trunk@58212 -
2018-06-09 17:38:09 +00:00
martin
28ff72d0c2 gdbmi debugger: small refactor, move release-lock to debuggerintf
git-svn-id: trunk@58148 -
2018-06-05 21:38:20 +00:00
martin
bd49e508e2 GDBMI Debugger: add property to disable startup shell
git-svn-id: trunk@57956 -
2018-05-18 17:58:39 +00:00
martin
b374f7c125 GDBMI Debugger: add property for asm flavour.
git-svn-id: trunk@57955 -
2018-05-18 17:43:19 +00:00
mattias
ffae13fa3e lazdebuggergdbmi: set function results
git-svn-id: trunk@57788 -
2018-05-04 10:42:14 +00:00
martin
5562c074da IDE, fpDebug, Debuggers: Deal with source lines that have more than one address (e.g. generics). fpDebug: set breakpoints at all addresses of a line.
git-svn-id: trunk@57782 -
2018-05-03 18:52:41 +00:00
martin
61d41ced28 GDBMiDebugger: fix range check / used wrong variable
git-svn-id: trunk@57743 -
2018-04-29 11:27:17 +00:00
martin
e5b4b7e6bd Debugger, GDBMI: reduce duplication of commands in startup
git-svn-id: trunk@57503 -
2018-03-14 00:59:42 +00:00
martin
51f1035508 Debugger, GDBMI: allow setting max-value size
git-svn-id: trunk@57383 -
2018-02-26 23:24:21 +00:00
martin
beefb8ac70 Debugger, GDBMI: preserve/restore (workaround). gdb error msg, when using ptype from cache.
git-svn-id: trunk@57380 -
2018-02-26 18:39:24 +00:00
martin
16a97ce6a6 Debugger, GDBMI: improve warnings for internal errors
git-svn-id: trunk@57379 -
2018-02-26 17:03:24 +00:00
martin
a5bdcf5dca Debugger, GDBMI: (try/improve) prevent gdb from terminating after internal error.
git-svn-id: trunk@57378 -
2018-02-26 16:01:20 +00:00
martin
b3da046aeb Debugger, GDBMI: add option to disable case sensitivity in gdb / useful with dwarf 3. (by default disable for gdb 7.4 and up)
git-svn-id: trunk@57350 -
2018-02-22 21:00:31 +00:00
martin
691e9239a3 GDBMI Debugger: Fix mem leak, introduced in rev 57193 #c7fe5d1822. Issue #0033107
git-svn-id: trunk@57199 -
2018-01-31 16:05:07 +00:00
martin
ea53266129 Debugger: add binary display for watches. Issue #0032817 Patch by Silvio Clécio
git-svn-id: trunk@57196 -
2018-01-31 00:05:27 +00:00
martin
c7fe5d1822 IDE, Debugger: Implemented symbol for pending breakpoint (used for code in libraries(dll/so), before it is loaded)
git-svn-id: trunk@57193 -
2018-01-30 19:44:26 +00:00
martin
8b1b8ff0df GDBMI Debugger: clean up / merge identical code blocks for thread start/stop detection
git-svn-id: trunk@57191 -
2018-01-30 17:15:12 +00:00
martin
2f11742c8d GDBMI Debugger: clean up / merge identical code blocks for thread start/stop detection
git-svn-id: trunk@57190 -
2018-01-30 16:56:47 +00:00
martin
dee589f02f Debugger: Do not always auto adjust the stackframe when stopping. (temp fix) Issue #0032978
git-svn-id: trunk@57089 -
2018-01-14 15:20:49 +00:00
martin
5a62be57d3 Debugger, GDBMI: fix detecting watchpoint errors
git-svn-id: trunk@56958 -
2018-01-04 23:01:49 +00:00
martin
c0eb5da137 gdebugger, gdbmi: fix stepping over exceptions
git-svn-id: trunk@56457 -
2017-11-21 12:32:40 +00:00
martin
009303069f Debugger: Ensure correct thread id in history entries
git-svn-id: trunk@56252 -
2017-10-31 19:21:03 +00:00
juha
647d8f84ab Add powerpc64 as a CPU target. Issue #32577, patch from Alfred.
git-svn-id: trunk@56135 -
2017-10-20 10:27:45 +00:00
martin
44dafe0718 GDBMI: experimental/ifdef for async gdb mode. getting *stopped after prompt. Issue #0032130
git-svn-id: trunk@55607 -
2017-07-30 20:19:27 +00:00
mattias
d701d4a458 fixed spelling errors, bug #31956, from Paul Gevers
git-svn-id: trunk@55172 -
2017-06-02 20:44:47 +00:00
martin
b694bd2d46 Debugger: fix for gdb 7.12 issue #0031386 / patch by Cyrax
git-svn-id: trunk@54215 -
2017-02-21 00:44:12 +00:00
joost
1de2cbf586 general: Updated address of the Free Software Foundation in copyright messages
git-svn-id: trunk@54031 -
2017-01-29 21:04:32 +00:00
juha
73aa9aa4bb Order uses sections again to see dependencies better.
git-svn-id: trunk@53738 -
2016-12-20 16:26:44 +00:00
juha
e466450bbc Debugger: Support ARM aarch64. Issue #29874, patch from Alfred.
git-svn-id: trunk@52065 -
2016-03-26 18:46:14 +00:00
mattias
f0d2cb9d8b gdbmidebugger: convert arguments to windows system codepage, bug #29033
git-svn-id: trunk@50727 -
2015-12-09 22:59:57 +00:00
mattias
d7a9c2946c lazdebuggergdbmi: fixed compilation under darwin
git-svn-id: trunk@49651 -
2015-08-11 13:25:59 +00:00
martin
520107ef3d Debugger, GDBMI: leave idle, if dbg is stopped, errored or destroyed. Issue #0028335
git-svn-id: trunk@49476 -
2015-06-30 15:40:22 +00:00
joost
c20f70ce0c DebuggerIntf: In r49328 #ec422cddc6 the nestedprocvars modeswitch is used. Bug report #28306 shows that this does not work on win32-fpc 2.6.4. Probably a compiler bug. This patch avoids the use of nestedprocvars with fpc versions 2.x.x
git-svn-id: trunk@49396 -
2015-06-21 18:10:51 +00:00
joost
ec422cddc6 DebuggerIntf: Moved logic to calculate the limits of disassemble-ranges from LazDebuggerGdbmi to an helper-function in DebuggerIntf, for inclusion in other debuggers
git-svn-id: trunk@49328 -
2015-06-14 17:43:38 +00:00
martin
a7d7e1edcb Debugger, GDBMI: Disable WarnOnSetBreakpointError
git-svn-id: trunk@48520 -
2015-03-27 16:10:17 +00:00
martin
9dffe82111 Debugger GDBMI, prevent endless loop
git-svn-id: trunk@48427 -
2015-03-20 00:32:58 +00:00
martin
c4f6dcb1fa debugger, gdb: improve break conditions for charvalue='a'
git-svn-id: trunk@48151 -
2015-03-06 00:36:52 +00:00
martin
67ffa45db5 Fix some Regression from Revision: 47581 Debugger: GDB more fixes for gdb 7.7 and up. Uppercase expressions
Do not modify string literals

git-svn-id: trunk@48148 -
2015-03-05 22:55:58 +00:00
martin
7d92fcb224 debugger: enhanced new checks for breakpoints
git-svn-id: trunk@47957 -
2015-02-23 15:28:04 +00:00
martin
57922cc96c Debugger, GDB: warn if breakpoints fail at startup
git-svn-id: trunk@47893 -
2015-02-19 01:44:50 +00:00
martin
44ee0084a7 GDBMI debugger, more error handling
git-svn-id: trunk@47702 -
2015-02-11 02:03:09 +00:00
martin
1c640605a8 GDBMI debugger, check result of SetFileName. Issue #0027431
git-svn-id: trunk@47671 -
2015-02-10 04:06:31 +00:00
mattias
e23199db01 lazdebuggergdbmi: less hints
git-svn-id: trunk@47611 -
2015-02-07 09:45:24 +00:00
juha
abf9a845da Deprecate wrappers for LazUTF8 functions in LCLProc.
git-svn-id: trunk@47604 -
2015-02-06 18:25:31 +00:00
martin
f05054dd59 Debugger: GDB more fixes for gdb 7.7 and up. Uppercase expressions / See issue #27136
git-svn-id: trunk@47581 -
2015-02-02 03:07:09 +00:00
martin
e99fe3257d Debugger: GDB improve launching app by stepping (F8). break at main
git-svn-id: trunk@47574 -
2015-01-31 13:55:47 +00:00
martin
f611836e4c Debugger: GDB improve internal breakpoints at start. Issue #0026209 #0026470
git-svn-id: trunk@47567 -
2015-01-30 23:16:32 +00:00
martin
de12a42ac8 gdbmi debugger: fix for parsing args in fpc mangled names
git-svn-id: trunk@47535 -
2015-01-26 23:04:43 +00:00
martin
aea48ebd14 DebuggerGDBMI: Improve getting exception message
git-svn-id: trunk@47384 -
2015-01-14 17:31:59 +00:00
martin
9739fd651e DebuggerGDBMI: fix handling internal breakpoints. After an exception normal run/F9 was sometimes broken due to breakpoints not cleared
git-svn-id: trunk@47383 -
2015-01-14 16:59:10 +00:00
martin
78dc09170e DebuggerGDBMI: fix handling internal breakpoints. After an exception normal run/F9 was sometimes broken due to breakpoints not cleared
git-svn-id: trunk@47382 -
2015-01-14 16:12:50 +00:00
martin
c9ba4326e2 DebuggerGDBMI: improve checks if gdb is running. Fix crash when gdb can not be launched. Issue #0027003
git-svn-id: trunk@47377 -
2015-01-14 01:14:23 +00:00
martin
1523492244 remote debug: fix reading response. Issue #0026664
git-svn-id: trunk@47147 -
2014-12-09 01:13:55 +00:00
martin
0a55b11a3e GDBMI debugger: prevent endless loops
git-svn-id: trunk@47145 -
2014-12-09 00:46:24 +00:00
mattias
0d41b20eaa lazdebugger: fixed hint
git-svn-id: trunk@47069 -
2014-12-02 21:10:44 +00:00
mattias
43994a0b19 debugger: by default search gdb in PATH
git-svn-id: trunk@46605 -
2014-10-19 17:49:01 +00:00
mattias
9b5e086017 debuggergdbmi: less hints
git-svn-id: trunk@46421 -
2014-10-04 09:09:47 +00:00
martin
53d97181b6 FpGdbmiDebugger: Add Locals
git-svn-id: trunk@44815 -
2014-04-26 15:46:40 +00:00
martin
c1899b0b90 FpGdbmiDebugger: allow stepping to continue over exceptions / allow to step from excepitons (raise) to finally/except (include implicit finally)
git-svn-id: trunk@44769 -
2014-04-20 17:38:53 +00:00
martin
469e1dd8c0 FpGdbmiDebugger: add none mi commands as fallback in async mode.
git-svn-id: trunk@44763 -
2014-04-19 00:31:42 +00:00
martin
dbefd92609 FpGdbmiDebugger: add option to disable loading library symbols (auto-solib-add = off)
git-svn-id: trunk@44761 -
2014-04-18 22:03:32 +00:00
martin
5d640f36c9 LazDebuggerGdbmi: Allow to add RunError to ignored exceptions
git-svn-id: trunk@44738 -
2014-04-16 03:21:16 +00:00
martin
1dab2ee8d8 Debugger: GDBMI, fix range check
git-svn-id: trunk@44544 -
2014-03-29 00:19:29 +00:00
martin
825ebd7c8b Debugger: GDBMI, fix range check
git-svn-id: trunk@44543 -
2014-03-29 00:13:42 +00:00
martin
eeef6684f7 Debugger: refactor
git-svn-id: trunk@44476 -
2014-03-20 14:59:29 +00:00
martin
e221726c5a Debugger: refactor
git-svn-id: trunk@44471 -
2014-03-19 17:17:03 +00:00
martin
ef91216989 Debugger: GDBMIDebugger better handling of space in filenames / Fix problem from Revision: 44429 / some filenames end up forever pending
git-svn-id: trunk@44468 -
2014-03-18 21:01:50 +00:00
martin
3d8ea62914 Debugger: refactor
git-svn-id: trunk@44467 -
2014-03-18 19:26:04 +00:00
martin
9246646d0f Debugger: refactor
git-svn-id: trunk@44465 -
2014-03-18 14:58:46 +00:00
martin
53f8732b32 Debugger: GDBMIDebugger better handling of space in filenames
git-svn-id: trunk@44429 -
2014-03-14 20:20:20 +00:00
martin
c396dbcd23 GDBMIDebugger: fix watchpoints.
git-svn-id: trunk@44411 -
2014-03-12 17:49:22 +00:00
martin
dca209ffc5 Debugger: clean up
git-svn-id: trunk@44218 -
2014-02-24 02:33:42 +00:00
martin
ed539caf03 Debugger: refactor register
git-svn-id: trunk@44216 -
2014-02-24 01:44:49 +00:00
martin
49c0f86ee9 Debugger: clean up
git-svn-id: trunk@44213 -
2014-02-23 16:20:46 +00:00
martin
fe1c47df91 Debugger: clean up / re-added math
git-svn-id: trunk@44212 -
2014-02-23 15:04:54 +00:00
martin
cdecfeb377 Debugger: clean up / rename some classes/properties
git-svn-id: trunk@44210 -
2014-02-23 01:34:31 +00:00
martin
c2935704dd Debugger: clean up
git-svn-id: trunk@44208 -
2014-02-23 00:48:11 +00:00
martin
23991564a6 Debugger/GDBMI: Moved registration
git-svn-id: trunk@44149 -
2014-02-18 20:10:17 +00:00
mattias
1ff6e135c6 IDE: less hints
git-svn-id: trunk@44134 -
2014-02-18 16:27:05 +00:00
martin
1acbe9ca6a FPGDBMIDebugger: fix queuing / eval some values direct
git-svn-id: trunk@44116 -
2014-02-17 14:41:09 +00:00
martin
5816749cd9 GDBMIDebugger: fixed conditional linux code
git-svn-id: trunk@44108 -
2014-02-17 00:24:42 +00:00
martin
0fae49bef2 GDBMIDebugger: move files
git-svn-id: trunk@44106 -
2014-02-16 23:57:57 +00:00