[C++/mingw] handle_output_debug_string

Fixes:

 ../../../src/gdb/gdbserver/win32-low.c: In function 'int win32_kill(int)':
 ../../../src/gdb/gdbserver/win32-low.c:823:46: error: invalid conversion from 'int' to 'target_waitkind' [-fpermissive]
     struct target_waitstatus our_status = { 0 };
					       ^

handle_output_debug_string doesn't use the parameter for anything
(it's an output parameter in the gdb version), so just remove it.

gdb/gdbserver/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

	* win32-low.c (handle_output_debug_string): Remove parameter.
	(win32_kill): Remove our_status local and adjust call to
	handle_output_debug_string.
	(get_child_debug_event): Adjust call to
	handle_output_debug_string.
This commit is contained in:
Pedro Alves 2015-11-17 15:17:45 +00:00
parent 69e976f8cc
commit c08790597c
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2015-11-17 Pedro Alves <palves@redhat.com>
* win32-low.c (handle_output_debug_string): Remove parameter.
(win32_kill): Remove our_status local and adjust call to
handle_output_debug_string.
(get_child_debug_event): Adjust call to
handle_output_debug_string.
2015-11-03 Simon Marchi <simon.marchi@polymtl.ca> 2015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
* linux-mips-low.c (mips_fill_gregset): Add cast. * linux-mips-low.c (mips_fill_gregset): Add cast.

View File

@ -747,7 +747,7 @@ win32_attach (unsigned long pid)
/* Handle OUTPUT_DEBUG_STRING_EVENT from child process. */ /* Handle OUTPUT_DEBUG_STRING_EVENT from child process. */
static void static void
handle_output_debug_string (struct target_waitstatus *ourstatus) handle_output_debug_string (void)
{ {
#define READ_BUFFER_LEN 1024 #define READ_BUFFER_LEN 1024
CORE_ADDR addr; CORE_ADDR addr;
@ -819,10 +819,7 @@ win32_kill (int pid)
if (current_event.dwDebugEventCode == EXIT_PROCESS_DEBUG_EVENT) if (current_event.dwDebugEventCode == EXIT_PROCESS_DEBUG_EVENT)
break; break;
else if (current_event.dwDebugEventCode == OUTPUT_DEBUG_STRING_EVENT) else if (current_event.dwDebugEventCode == OUTPUT_DEBUG_STRING_EVENT)
{ handle_output_debug_string ();
struct target_waitstatus our_status = { 0 };
handle_output_debug_string (&our_status);
}
} }
win32_clear_inferiors (); win32_clear_inferiors ();
@ -1572,7 +1569,7 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
"for pid=%u tid=%x\n", "for pid=%u tid=%x\n",
(unsigned) current_event.dwProcessId, (unsigned) current_event.dwProcessId,
(unsigned) current_event.dwThreadId)); (unsigned) current_event.dwThreadId));
handle_output_debug_string (ourstatus); handle_output_debug_string ();
break; break;
default: default: