History

kgdb: Respect that flush op is optional

Not all kgdb I/O drivers implement a flush operation. Adjust gdbstub_exit accordingly.

Jan Kiszka committed 14 years ago

Commit 9fbe4651 parent 639077f1 file · +2 −1Browse files

Unified · Split

kernel/debug/gdbstub.c+2−1
@@ -1129,5 +1129,6 @@ void gdbstub_exit(int status) · 1128 unmodified lines
1129 dbg_io_ops->write_char(hex_asc_lo(checksum));1129 dbg_io_ops->write_char(hex_asc_lo(checksum));
1130 1130
1131 /* make sure the output is flushed, lest the bootloader clobber it */1131 /* make sure the output is flushed, lest the bootloader clobber it */
1132 dbg_io_ops->flush();1132 if (dbg_io_ops->flush)
1133 dbg_io_ops->flush();
1133}1134}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t