mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
Normalize handle_output_debug_string API
This changes gdbserver's implementation of handle_output_debug_string to have the same calling convention as that of gdb. This allows for sharing some more code in a subsequent patch. gdb/ChangeLog 2020-04-08 Tom Tromey <tromey@adacore.com> * windows-nat.c (windows_nat::handle_output_debug_string): Rename. No longer static. * nat/windows-nat.h (handle_output_debug_string): Declare. gdbserver/ChangeLog 2020-04-08 Tom Tromey <tromey@adacore.com> * win32-low.c (handle_output_debug_string): Add parameter. Change return type. (win32_kill, get_child_debug_event): Update.
This commit is contained in:
@ -1004,11 +1004,10 @@ signal_event_command (const char *args, int from_tty)
|
||||
CloseHandle ((HANDLE) event_id);
|
||||
}
|
||||
|
||||
/* Handle DEBUG_STRING output from child process.
|
||||
Cygwin prepends its messages with a "cygwin:". Interpret this as
|
||||
a Cygwin signal. Otherwise just print the string as a warning. */
|
||||
static int
|
||||
handle_output_debug_string (struct target_waitstatus *ourstatus)
|
||||
/* See nat/windows-nat.h. */
|
||||
|
||||
int
|
||||
windows_nat::handle_output_debug_string (struct target_waitstatus *ourstatus)
|
||||
{
|
||||
gdb::unique_xmalloc_ptr<char> s;
|
||||
int retval = 0;
|
||||
|
Reference in New Issue
Block a user