Commit Graph

36 Commits

Author SHA1 Message Date
ccrause
81d8d38c5c RSP - Handle multiple output messages from OpenOCD. 2024-05-13 16:15:12 +00:00
ccrause
d56f77c2be Use cross platform sockets.CloseSocket call to close a socket. 2024-04-13 14:45:44 +02:00
ccrause
95205d9bc2 Remove unused variable 2024-04-13 14:45:44 +02:00
ccrause
28c86c583b [fpdebug] Track initialization of the remote connection. Fix some issues with qemu and Bloom debug servers. 2024-04-13 14:45:44 +02:00
ccrause
c6781743e8 fpdebug - Add xtensa support 2024-03-12 19:18:49 +00:00
ccrause
eabf701ee5 Fpdebug: protect remote communication in SendMonitorCmd with Enter/LeaveCriticalSection. Also remove unused variables. 2024-02-06 22:20:39 +00:00
ccrause
5e4596e57a Fpdebug: separate AVR specific code from generic RSP related debug code 2023-12-29 07:15:47 +02:00
ccrause
171be791ea [RSP] Do not acknowledge an OK response, since qemu complains about receiving an acknowledge after an OK response. It is not clear whether this is in accordance with the RSP protocol specification. 2023-01-08 17:05:04 +01:00
ccrause
1bad121570 [RSP] Removed unused variables. 2023-01-08 17:05:03 +01:00
ccrause
411eebba23 [RSP] Add HWBreak parameter to Add/DeleteBreakWatchPoint method so that TProcess can decide whether a HW or SW break should be inserted on the target. 2023-01-08 17:05:02 +01:00
ccrause
06c4f184d7 [RSP] Bug fix: add the register value to the command to be sent over RSP. Rename ConvertHexWithLittleEndianSwap to HexToIntLittleEndian as this is closer to the regular HexToInt function. Add IntToHexLittleEndian function. 2023-01-08 17:05:01 +01:00
ccrause
923fce0cb0 Change StartInstance and AttachInstance to normal methods. TDbgController now calls OSDbgClasses.DbgProcessClass to create a process class instance with a TDbgProcessConfig parameter which can be subclassed and passed around for configuration. The remote configuration is now passed via this parameter as a subclass. 2021-11-06 14:23:28 +01:00
ccrause
9de2a8dfbc Add a monitor command list to be called after uploading is finished. 2021-11-01 12:20:17 +02:00
ccrause
29cf0ce9d6 TRspConnection.ReadReply to consume all "O" packets until a valid other packet is received. Fixes issue when status query after monitor command resulted in a qemu gdbserver state error as a result of incorrect acknowledge packets. 2021-11-01 12:15:32 +02:00
ccrause
11682281de Fix up naming convention of methods. 2021-11-01 12:15:13 +02:00
ccrause
7bd0e9ab2a Remove commented code, fix comment 2021-11-01 12:15:13 +02:00
ccrause
45351f354b Properly handle console output from gdbserver over RSP. Qemu monitor commands can reply with O packets. 2021-11-01 12:15:12 +02:00
ccrause
211a02deb9 Todo reminders for later improvements 2021-11-01 12:15:12 +02:00
ccrause
afc60cf708 Fix data watchpoints. 2021-11-01 12:14:57 +02:00
ccrause
d19a267b19 Ensure convertHexWithLittleEndianSwap works for any length of text, provided it fits the range of QWord. 2021-11-01 12:14:57 +02:00
ccrause
1529b34ca7 Change behaviour of WaitForSignal to time out after a short while so that other communication such as Ctrl+C can be transmitted while the target is running. Also distinguish between timeout and socket error. 2021-11-01 12:14:57 +02:00
ccrause
f56b453b29 Remove unused variables. 2021-11-01 12:14:56 +02:00
ccrause
42fa9a820a Add code to extract "thread" stop reason as sent by qemu. 2021-11-01 12:14:48 +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
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
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
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
6661f86edd Debugger: allow to force lazloggerbase via define
git-svn-id: trunk@65227 -
2021-06-14 07:30:45 +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
8ac43cbd8d Change PtrUInt to TDbgPtr to be consistent with FpDbgClasses unit
git-svn-id: trunk@62759 -
2020-03-12 20:00:13 +00:00
martin
93ee5eb352 Detect socket closed or other error and set status to SIGHUP. Do not access FConnection methods that read or write to socket when status = SIGHUP.
Patch/Contributed by ccrause

git-svn-id: trunk@62758 -
2020-03-12 14:21:18 +00:00
martin
7940dbf1b5 Basic AVR functionality
Patch/Contributed by ccrause

git-svn-id: trunk@62750 -
2020-03-12 14:21:05 +00:00