Commit Graph

25 Commits

Author SHA1 Message Date
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