Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fbe465e authored by Jan Kiszka's avatar Jan Kiszka Committed by Jason Wessel
Browse files

kgdb: Respect that flush op is optional



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

Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent 639077fb
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -1129,5 +1129,6 @@ void gdbstub_exit(int status)
	dbg_io_ops->write_char(hex_asc_lo(checksum));
	dbg_io_ops->write_char(hex_asc_lo(checksum));


	/* make sure the output is flushed, lest the bootloader clobber it */
	/* make sure the output is flushed, lest the bootloader clobber it */
	if (dbg_io_ops->flush)
		dbg_io_ops->flush();
		dbg_io_ops->flush();
}
}