[gdbserver] win32, add OUTPUT_DEBUG_STRING_EVENT handling.

Pedro Alves pedro_alves@portugalmail.pt
Sun Feb 25 21:33:00 GMT 2007


Hi all,

This patch adds support for sending OUTPUT_DEBUG_STRING_EVENT
messages to the controller gdb.  Compared to the version found in
gdb/win32-nat.c, this handles Unicode messages, needed for
WinCE, but will not handle the special cygwin signal markers.
Perhaps someone (maybe me) will get annoyed by the spurious console
messages and implement proper support later.  I'm sending the messages
using the 'O' packet, but somehow I guess that there should be an
extra packet for these debugger-specific messages, and 'O' should be
left for real output redirection, or would it be the other way
around?  Anyway, the native debugger also puts the output debug
strings into the console using warning, so...

OK?

Cheers,
Pedro Alves

---
gdb/gdbserver/ChangeLog:

2007-02-25  Pedro Alves  <pedro_alves@portugalmail.pt>

     * server.h (console_output): Declare.
     * remote-utils.c (console_output): Define.
     * win32-i386-low.c (handle_output_debug_string): New.
     (win32_kill): Use handle_output_debug_string.
     (get_child_debug_event): Use handle_output_debug_string.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: outputdebustring.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20070225/a5b8d46a/attachment.ksh>


More information about the Gdb-patches mailing list