ccrause
542c98a369
Use the same register names and dwarf indexes in all register lists.
2021-11-01 12:13:18 +02:00
ccrause
7f341cbe68
Tweak PrepareCallStackEntryList to cater for avr-gcc ABI. Added TAvrAsmDecoder.GetFunctionFrameReturnAddress to scan prologue and epilogue for frame information.
2021-11-01 12:13:17 +02:00
ccrause
02c76188e3
Fix indenting and missing bracket.
2021-11-01 12:13:17 +02:00
ccrause
762081ec6f
Fix offset of return PC on stack. Trivial (no locals or parameters) stack trace now works.
2021-11-01 12:13:17 +02:00
ccrause
165c4dae9a
Start with AVR call stack analysis
2021-11-01 12:13:17 +02:00
ccrause
c6df32a82c
Fix to make debugger stop at breakpoint at address 0. Only single step in TDbgAvrProcess.Continue if SingleStep parameter is true.
2021-11-01 12:13:16 +02:00
ccrause
b27172ff12
Check if reply to monitor command is a plain response, else hex decode the response.
2021-11-01 12:13:16 +02:00
ccrause
9c6de4853a
Add properties AfterUploadBreakZero and AfterUploadMonitorReset to test with atbackend.exe.
2021-11-01 12:13:09 +02:00
ccrause
f78d3dd6b8
Use loadable section information to automatically upload sections to target.
2021-11-01 12:12:43 +02:00
ccrause
00d5dd4589
Remove duplicate LoaderList property.
2021-11-01 12:12:21 +02:00
ccrause
5d14d15403
Added functionality to mark sections as loadable based on section information.
2021-11-01 12:11:48 +02:00
ccrause
e524997317
Trying to fix Pause behaviour over RSP: Disable FIsPaused assert in ThreadReadState method. Call WaitForSignal after sending Break request. Call Sleep after waiting for WaitForSignal so that a queued request has time to get processed.
2021-11-01 12:10:45 +02:00
ccrause
160c57451a
Fix redundant unit in uses clause.
2021-11-01 12:10:32 +02:00
ccrause
800ee2ac02
Add RSP host, port and upload options. Add property AfterConnectMonitorCmds to execute monitor commands after a connection with target is established.
2021-11-01 12:07:15 +02:00
ccrause
cbff56be77
Moved TXmlConfStringList from gdbmidebugger to DebuggerPropertiesBase to share this property class between gdbmidebugger and fpdebugdebugger.
2021-11-01 12:06:00 +02:00
Martin
57d356a2a2
Merge branch 'fpdebug-breakpoint-removeaddress-fix' into 'main'
...
FpDebug: Fixed incorrect new length of FLocation array in TFpInternalBreakpoint.RemoveAddress
See merge request freepascal.org/lazarus/lazarus!26
2021-10-21 13:43:43 +00:00
mattias
0354b47bc4
updated makefiles
2021-10-18 14:32:30 +02:00
Sergey Larin
20fc451aa1
FpDebug takes into account that FPC 3.3.1 changed offset of the CodePage field in TAnsiRec.
...
When reading strings, FpDebug sets the required CodePage to the received AnsiString, the value of which is read from the memory of the process being debugged.
2021-08-27 21:24:07 +03:00
Martin
ad741a8d7a
Revert "Disable PEEPHOLE opt in fpc 3.2.0 to fpc 3.2.3 => there is a bug that can cause crashed in fpdebug/lazutils"
...
This reverts commit 78bb88de35
.
2021-10-16 13:41:59 +02:00
Martin
78bb88de35
Disable PEEPHOLE opt in fpc 3.2.0 to fpc 3.2.3 => there is a bug that can cause crashed in fpdebug/lazutils
...
(cherry picked from commit 6d1185d76b
)
2021-10-16 11:45:10 +02:00
Martin
6fc5c2fcdd
FpDebug: more asserts for correct thread usage
2021-10-13 21:48:32 +02:00
Martin
0a2bc87781
FpDebug: Fixed mem leak.
2021-09-26 16:02:26 +02:00
Martin
f47220cc47
FpDebug: Add asserts
2021-09-26 02:09:18 +02:00
Maxim Ganetsky
91f499b984
FPDebug: fixed compilation on Windows with FPC trunk, patch by Rika, closes issue #39349
2021-09-02 01:24:53 +03:00
Martin
1c87dc96eb
FpDebug: refactor external debug info / Enable for Linux and Windows
2021-08-14 15:23:17 +02:00
martin
e61ab5d73d
FpDebug: remove double line break from formatted watches.
...
git-svn-id: trunk@65488 -
2021-07-22 00:29:26 +00:00
martin
b5bf7de6f9
FpDebug, Windows: Forward OutputDebugString to IDE.
...
git-svn-id: trunk@65475 -
2021-07-19 18:17:06 +00:00
martin
686e81d6e3
FpDebug: Start external dbg file support for Win
...
git-svn-id: trunk@65390 -
2021-07-06 21:39:38 +00:00
maxim
0711ae584c
Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #39152
...
git-svn-id: trunk@65372 -
2021-07-04 21:55:24 +00:00
martin
0244c95a33
FpDebug: Dynamically load DebugBreakProcess
...
git-svn-id: trunk@65291 -
2021-06-22 15:14:38 +00:00
mattias
91763f2247
set trunk version to 2.3.0
...
git-svn-id: trunk@65242 -
2021-06-15 14:00:39 +00:00
martin
a9bdfda626
FpDebug: version 1.0
...
git-svn-id: trunk@65231 -
2021-06-14 17:00:52 +00:00
martin
caa6a14163
FpDebug: "waitable section" / Protect some code from being entered twice
...
git-svn-id: trunk@65229 -
2021-06-14 08:12:49 +00:00
martin
6661f86edd
Debugger: allow to force lazloggerbase via define
...
git-svn-id: trunk@65227 -
2021-06-14 07:30:45 +00:00
martin
3deb9a41fe
FpDebug: Improve target-mem read/write on Linux / Allow bigger writes
...
git-svn-id: trunk@65225 -
2021-06-14 07:30:37 +00:00
martin
699930263c
DwarfViewer: fix compile
...
git-svn-id: trunk@65224 -
2021-06-14 07:30:35 +00:00
martin
e94b71c589
FpDebug: Allow multiple threads to call TFpThreadWorkerItem.WaitForFinish
...
git-svn-id: trunk@65187 -
2021-06-08 20:58:38 +00:00
martin
a3a0dd7e08
FpDebug: fix WITH_REFCOUNT_DEBUG for unitname.var
...
git-svn-id: trunk@65185 -
2021-06-08 19:32:26 +00:00
martin
48701f5d93
FpDebug: Improve encapsulation
...
git-svn-id: trunk@65183 -
2021-06-08 19:32:22 +00:00
martin
3644f4a2e2
FpDebug: Fix race condition. FScope accesses FScopeList which is changed by thread (dyn array re-alloc by SetLength)
...
git-svn-id: trunk@65172 -
2021-06-04 01:11:22 +00:00
martin
51ac1efe7a
FpDebug: change locking order. Avoid potential dead lock.
...
git-svn-id: trunk@65171 -
2021-06-04 01:11:20 +00:00
martin
561099dc46
FpDebug: Allow watches with unit prefix: unit1.MyValue
...
git-svn-id: trunk@65168 -
2021-06-03 16:42:41 +00:00
martin
a1b4044047
FpDebug: Fix mem-leak
...
git-svn-id: trunk@65167 -
2021-06-03 16:42:38 +00:00
martin
e828efa600
FpDebug: less compile hints
...
git-svn-id: trunk@65161 -
2021-06-01 13:55:10 +00:00
martin
0473f430ec
FpDebug: Less compile warnings
...
git-svn-id: trunk@65160 -
2021-05-31 14:24:55 +00:00
martin
a822d5c8f7
Reduce duplicate code
...
git-svn-id: trunk@65159 -
2021-05-31 14:24:53 +00:00
martin
ba0a0bdf67
FpDebug: Improve callback for function calling
...
git-svn-id: trunk@65156 -
2021-05-30 20:27:26 +00:00
martin
574b3a8178
LazDebuggerFp, FpDebug: Modify watches/values in target
...
git-svn-id: trunk@65154 -
2021-05-30 19:01:08 +00:00
martin
ce0d1a0bc8
LazDebuggerFp, FpDebug: Beta, Allow function calls in watches
...
git-svn-id: trunk@65151 -
2021-05-29 22:51:09 +00:00
martin
4d4db524ac
FpDebug: evaluate "pointer - pointer" return int (with pointermath)
...
git-svn-id: trunk@65150 -
2021-05-29 22:51:06 +00:00
martin
5191e4d8a2
FpDebug: Added some safety checks
...
git-svn-id: trunk@65144 -
2021-05-28 16:19:23 +00:00
maxim
076aee3ac9
LazDebuggerFpGdbmi: i18n-ed menu caption, regenerated translations and updated Russian translation
...
git-svn-id: trunk@65135 -
2021-05-25 21:42:56 +00:00
joost
fe6e63ed13
FpDebug: Handle signals during function-calls
...
git-svn-id: trunk@65130 -
2021-05-24 22:15:35 +00:00
joost
c136e832f9
FpDebug: Do not choke on unsupported third-party Dwarf extensions
...
git-svn-id: trunk@65129 -
2021-05-24 22:06:59 +00:00
martin
b3d254310b
FpDebug: Disassemble, fixed multibyte NOP Issue #0038625
...
git-svn-id: trunk@64992 -
2021-04-14 16:28:37 +00:00
martin
ee40b8f4c1
FpDebug: Disassemble, fixed 64bit register for push/pop Issue #0038626
...
git-svn-id: trunk@64991 -
2021-04-14 14:34:59 +00:00
martin
776651b5e3
FpDebug, test: DisAssembler testcase
...
git-svn-id: trunk@64990 -
2021-04-14 14:34:57 +00:00
martin
e75dd9a3a6
FpDebug: fix compilation with -dWITH_REFCOUNT_DEBUG
...
git-svn-id: trunk@64887 -
2021-03-28 20:26:23 +00:00
martin
82c6e8b284
FpDebug: Change debugging flags on process creation. Allow debugged 32bit processes to launch 64bit sub-processes without the debugger interfering. Sub-processes are anyway currently not debugged. Issue #0038546
...
git-svn-id: trunk@64779 -
2021-03-10 18:38:39 +00:00
mattias
65e16d03fb
fpdebug: less hints
...
git-svn-id: trunk@64686 -
2021-02-28 08:52:37 +00:00
juha
3f78f0d62d
New optimized functions in LazUtils: FilenameExtIs and FilenameExtIn. Used instead of CompareFileExt and similar.
...
git-svn-id: trunk@64583 -
2021-02-15 08:43:50 +00:00
mattias
62c37ad72a
updated Makefiles
...
git-svn-id: trunk@64567 -
2021-02-13 13:01:14 +00:00
martin
14dc58d892
FpDebug: test and helper apps, fixed some compile errors
...
git-svn-id: trunk@64555 -
2021-02-12 18:31:09 +00:00
martin
068feeb931
FpDebug: remove MemMgr.DefaultContext. All MemRead/Write must go via a location-context.
...
git-svn-id: trunk@64554 -
2021-02-12 18:31:07 +00:00
martin
ac0e547a58
FpDebug,AVR: fix communication with gdbserver / thread safety. Patch by Christo Crause Issue #0038443
...
git-svn-id: trunk@64544 -
2021-02-11 23:18:12 +00:00
martin
6857851554
FpDebug/LazDebugger: add asserts for thread safety
...
git-svn-id: trunk@64542 -
2021-02-11 22:40:29 +00:00
martin
fa5c3112f3
FpDebug, LazDebuggerFp: call FOnThreadProcessLoopCycleEvent for deProcessExits / Ensure breakpoints are handled in the loop-thread / some breakpoint fixes
...
git-svn-id: trunk@64538 -
2021-02-11 22:40:21 +00:00
martin
2ae82698cb
LazDebuggerFp: move breakpoints to thread worker queue
...
git-svn-id: trunk@64536 -
2021-02-11 22:40:17 +00:00
martin
54bf4844fc
LazDebuggerFp: Improve shutdown of thread queue.
...
git-svn-id: trunk@64535 -
2021-02-11 22:40:15 +00:00
juha
77e6853ca6
Components: Reduce calls to LowerCase().
...
git-svn-id: trunk@64515 -
2021-02-10 13:43:15 +00:00
mattias
ba067ea6be
fpdebug: fixed compile
...
git-svn-id: trunk@64508 -
2021-02-08 19:55:41 +00:00
juha
b53ad7ceed
Components: Reduce calls to UpperCase() and LowerCase(). Improves performance.
...
git-svn-id: trunk@64506 -
2021-02-08 19:09:30 +00:00
martin
04eb581af0
FpDebug: fix 32bit elf-imagereader (wrong variable used). Issue #38449 Patch by Christo Crause
...
git-svn-id: trunk@64501 -
2021-02-08 02:25:10 +00:00
juha
0feb7a5662
Codetools, Debugger: Use a faster compare method for case-insensitive strings and StringLists.
...
git-svn-id: trunk@64465 -
2021-02-05 11:28:11 +00:00
maxim
b63e036f48
Translations: Brazilian Portuguese translation update by Marcelo B Paula, bug #38436
...
git-svn-id: trunk@64457 -
2021-02-03 22:42:52 +00:00
martin
71e66e0c64
FpDebug: missing result initialization
...
git-svn-id: trunk@64400 -
2021-01-16 19:30:10 +00:00
martin
0027bd2412
FpDebug: better shortstring detection / pointer base-size for string/array types
...
git-svn-id: trunk@64399 -
2021-01-16 19:30:08 +00:00
martin
ba1a82803a
FpDebug: add size for function-ref
...
git-svn-id: trunk@64398 -
2021-01-16 19:30:06 +00:00
martin
fa1a2fa3b0
FpDebug: PascalParser, fixed unary +/- / Added unary for float / tests for float
...
git-svn-id: trunk@64388 -
2021-01-14 21:14:07 +00:00
martin
3f5954b07e
FpDebug: fixed evaluating signed/unsigned mixed AND
...
git-svn-id: trunk@64387 -
2021-01-14 21:14:05 +00:00
juha
42850cfe4d
LazUtils: Deprecate now obsolete unit LazUtf8Classes and remove its references from Lazarus code.
...
git-svn-id: trunk@64384 -
2021-01-14 12:41:32 +00:00
martin
9ffd47ce9f
FpDebug: check for nil, before accessing.
...
git-svn-id: trunk@64359 -
2021-01-08 23:07:55 +00:00
Sergey Larin
5d7d828c63
FpDebug: Support for the 4th argument when calling the function (Win64)
...
Related to a32ac8e665
2021-01-07 12:09:04 +03:00
joost
4b59383f64
FpDebug: Removed usage of hard-coded register
...
git-svn-id: trunk@64310 -
2020-12-30 19:15:57 +00:00
joost
a32ac8e665
FpDebug: support more function-arguments (x86_64)
...
git-svn-id: trunk@64295 -
2020-12-28 21:33:51 +00:00
joost
cfa42adfc3
FpDebug: Fpmake.pp updated
...
git-svn-id: trunk@64294 -
2020-12-28 21:27:55 +00:00
maxim
526e453330
FPDebug: fixed typos, regenerated translations and updated Russian translation
...
git-svn-id: trunk@64259 -
2020-12-20 22:11:02 +00:00
martin
a869c43f49
FpDebug: fix threadmap iterator in linux classes. Broken by locked-iterator
...
git-svn-id: trunk@64248 -
2020-12-20 12:38:51 +00:00
martin
3894fe4f86
FpDebug: fix threadmap iterator in linux classes. Broken by locked-iterator
...
git-svn-id: trunk@64247 -
2020-12-20 11:00:58 +00:00
martin
fa5199045e
LazDebuggerFp, FpDebug: Show an error message, if the debugger cannot run the application. Issue #0038167
...
git-svn-id: trunk@64243 -
2020-12-19 22:39:00 +00:00
martin
43e81576fe
FpDebug: Use thread-save iterator. Issue #0038047 , #38068 . Normal Iterators are added/removed to/from FIterators: TList => which is not thread save. Since the map in question never changes during iteration, the callbacks are not needed.
...
git-svn-id: trunk@64128 -
2020-11-12 12:02:33 +00:00
martin
e2c618e262
FpDebugger: Show classname for functions in stack.
...
git-svn-id: trunk@64022 -
2020-10-15 18:38:20 +00:00
martin
6156b1bf31
FpDebugDebugger: replace Control-thread with ThreadWorkQueue
...
git-svn-id: trunk@64020 -
2020-10-15 18:38:16 +00:00
martin
e229057f03
FpDebug: logging for ThreadWorkerQueue
...
git-svn-id: trunk@64019 -
2020-10-15 18:37:40 +00:00
martin
b5afc22435
FpDebug: Utils, Add TLockList / refactor, move to internal Fifo queue
...
git-svn-id: trunk@64017 -
2020-10-15 18:37:37 +00:00
martin
1db96371a5
FpDebug: fix stdcall
...
git-svn-id: trunk@63983 -
2020-10-09 14:17:22 +00:00
martin
bc13e22021
FpDebug: fix opening files with utf8 name on windows / prevent crash in trying to create filehandle, when an exception occurs. Issue #37884
...
git-svn-id: trunk@63978 -
2020-10-08 20:58:14 +00:00
martin
bb154702ae
FpDebug: Do not display (nested) records as pointer.
...
git-svn-id: trunk@63921 -
2020-09-25 22:08:47 +00:00
maxim
4c69c36745
FPDebug: fixed typo, regenerated translations and updated Russian translation
...
git-svn-id: trunk@63901 -
2020-09-20 23:35:54 +00:00
joost
566610a9ba
FpDebug: Cleanup of several issues introduced in r63899 #539c1f9a2b, in which a lot more was committed then planned. Among others utility functions to allow calling functions with parameters. The ability to set the value of (regvar) variables and some minor bug-fixes. As part of the parameter-support, addresses located in a register are not immediately read and converted to constants anymore. But the location of the actual register is stored. This might have unforeseen side-effects
...
git-svn-id: trunk@63900 -
2020-09-20 21:52:48 +00:00