Commit Graph

61590 Commits

Author SHA1 Message Date
ccrause
a239cd8952 qemu doesnt support the "p" command to read an individual register. Change logic to update all registers with the "g" command when a single register is invalid. 2021-11-01 12:14:47 +02:00
ccrause
68d50adedf Remove redundant check of FStatus 2021-11-01 12:14:47 +02:00
ccrause
c0f05c8dc6 MAX_CODE_BIN should be at least as big as MaxPrologueSize. 2021-11-01 12:14:47 +02:00
ccrause
50e7383718 Wrap socket Read + Write calls in try except to convert exceptions into a SockErr booleanproperty. 2021-11-01 12:14:47 +02:00
ccrause
e0dea1ca30 Workaround to not automatically create socket connection in constructor. The existing try except block did not catch socket expections in the constructor. 2021-11-01 12:14:46 +02:00
ccrause
4c493303a0 Handle simple interrupt frames. 2021-11-01 12:14:46 +02:00
ccrause
3b36f05e27 Remove FP from register list, since the information is already present in registers r28 and r29 2021-11-01 12:14:46 +02:00
ccrause
c6e6de1294 Fixed checking if AAddress is bracketed by StartPC and EndPC. 2021-11-01 12:14:33 +02:00
ccrause
23065e004c Add functionality to get proc start/end addresses from debug info. Used to scan prologue and epilogue for frame information on AVR target. 2021-11-01 12:13:28 +02:00
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
2e74920e74 Fixed up Makefiles so that new dependencies build correctly 2021-11-01 12:06:56 +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
Bart
d374385885 LazUtils: Masks: if Compile fails, don't set fMaskIsCompiled to True. 2021-10-31 20:42:34 +01:00
Bart
cf6d6c626c LazUtils: Masks: make TWindowsMaskList.Quirks read/write. 2021-10-31 20:12:22 +01:00
Bart
3be1973992 LazUtils: Masks: fix TMaskList.SetMask and .SetMaskOpCodes. 2021-10-31 20:06:24 +01:00
Bart
8a550c1678 LazUtils: Masks: implement TMaskList.MaskOpCodes property. 2021-10-31 19:44:31 +01:00
Bart
1a0f808921 LazUtils: Masks: implement TMaskList.Mask property. 2021-10-31 19:41:00 +01:00
Bart
1543c68c73 LazUtils: Masks: make TWindowsMask.Quirks read/write. 2021-10-31 19:07:43 +01:00
Bart
dd4c515dc6 LazUtils: Masks: when setting Mask property invalidate fInternalMask. 2021-10-31 19:02:24 +01:00
Bart
421f894acb LazUtils: Masks: properly implement property TMaskBase.MaskOpCodes, remove property OPCodesAllowed. 2021-10-31 18:52:32 +01:00
Bart
ebabdd0bba LazUtils: Masks: implement property TMaskBase.MaskOpCodes. 2021-10-31 18:21:39 +01:00
Bart
71623760cb LazUtils: Masks: simplify TMaskList.MatchesWindowsMask. 2021-10-31 18:15:39 +01:00
Bart
2cab533808 LazUtils: Masks: also do not compile the mask in the constructor of TWindowsMaskList. 2021-10-31 18:04:51 +01:00
Bart
181e410434 LazUtils: Masks: don not disable ranges and sets in TWindowsMask, and do not compile the mask in the constructor, so the constructor won't fail if a mask is invalid. 2021-10-31 17:27:04 +01:00
Bart
0a32776e98 LazUtils: Masks: an empty negated set is also an empty set, so don't allow that as well. 2021-10-31 16:19:49 +01:00
Bart
20f3e55048 LazUtils: Masks: support escaping in ranges/sets (part 2). Based on original code by Jose Mejuto
(https://github.com/JoshyFun/pascal_tmask/blob/main/umask.pas)
2021-10-31 16:17:32 +01:00
dsiders
7c2368058c Docs: LazUtils/lazstringutils. Removes topic for deprecated routine in #9a816398. 2021-10-31 15:23:34 +01:00
dsiders
18bece2476 Docs: LazControls/listviewfilteredit. Removes topic for duplicate type in #e8b4862a. 2021-10-31 15:13:03 +01:00
dsiders
b4c1e70224 Docs: LazControls/listviewfilteredit. Removes topic for duplicate type in #e8b4862a. 2021-10-31 14:50:12 +01:00
mattias
1391c8cb7d tools: lplupdate showing git commands 2021-10-31 09:10:33 +01:00
Juha Manninen
6e6d618513 Merge branch 'lazutils-hints' into 'main'
Suppress compiler hints in LazUtils

See merge request freepascal.org/lazarus/lazarus!35
2021-10-31 07:55:49 +00:00
Juha
cd66ac596b Formatting, minor simplification. 2021-10-31 09:51:28 +02:00
Juha
d5596c80a9 LCL: Remove tests for define WithOldDebugln. It has been there since 2012. 2021-10-31 09:51:28 +02:00
Juha
9a8163981a LazUtils: Remove a deprecated function. 2021-10-31 09:51:28 +02:00
Juha
e8b4862a74 LazControls: Use TStringArray defined in SysUtils instead of defining it again. 2021-10-31 09:51:28 +02:00
mattias
b948a3a35a ide: less initialization 2021-10-30 23:01:24 +02:00
Juha
937b6bdfef Codetools: Ignore empty () in function description. Generate function body correctly. Issue #39441, patch by Domingo Galmés. 2021-10-30 23:17:29 +03:00