Commit fb82c0f
committed
repair gdbstub to match the gdbserial protocol specification
The gdbserial protocol handler should return an empty packet instead
of an error string when ever it responds to a command it does not
implement.
The problem cases come from a debugger client sending
qTBuffer, qTStatus, qSearch, qSupported.
The incorrect response from the gdbstub leads the debugger clients to
not function correctly. Recent versions of gdb will not detach correctly as a result of this behavior.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>1 parent 1396a21 commit fb82c0f
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
625 | | - | |
| 624 | + | |
626 | 625 | | |
627 | | - | |
628 | 626 | | |
629 | 627 | | |
630 | 628 | | |
| |||
665 | 663 | | |
666 | 664 | | |
667 | 665 | | |
668 | | - | |
669 | | - | |
| 666 | + | |
670 | 667 | | |
671 | | - | |
| 668 | + | |
672 | 669 | | |
673 | 670 | | |
674 | 671 | | |
| |||
0 commit comments