projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639077f
)
kgdb: Respect that flush op is optional
author
Jan Kiszka
<jan.kiszka@siemens.com>
Fri, 16 Mar 2012 12:17:13 +0000
(13:17 +0100)
committer
Jason Wessel
<jason.wessel@windriver.com>
Thu, 22 Mar 2012 20:07:15 +0000
(15:07 -0500)
Not all kgdb I/O drivers implement a flush operation. Adjust
gdbstub_exit accordingly.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/debug/gdbstub.c
patch
|
blob
|
history
diff --git
a/kernel/debug/gdbstub.c
b/kernel/debug/gdbstub.c
index c22d8c28ad848c63003ffb00bf235d9d0ab34649..5a155742ae969c8f6a6e27e4bff49845ab751d71 100644
(file)
--- a/
kernel/debug/gdbstub.c
+++ b/
kernel/debug/gdbstub.c
@@
-1129,5
+1129,6
@@
void gdbstub_exit(int status)
dbg_io_ops->write_char(hex_asc_lo(checksum));
/* make sure the output is flushed, lest the bootloader clobber it */
- dbg_io_ops->flush();
+ if (dbg_io_ops->flush)
+ dbg_io_ops->flush();
}