Fix thinko on last commit

On fork-child.c:trace_start_error, va_end should refer to 'ap', not
'args.  This fixes it.

Sorry about the breakage.

gdb/ChangeLog:
2017-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>

	PR gdb/16188
	* fork-child.c (trace_start_error): Fix thinko.  va_end should
	refer to 'ap', not 'args'.
This commit is contained in:
Sergio Durigan Junior 2017-02-20 08:01:04 -05:00
parent 9c7e3b0e6b
commit 1b076f2540
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
PR gdb/16188
* fork-child.c (trace_start_error): Fix thinko. va_end should
refer to 'ap', not 'args'.
2017-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
Pedro Alves <palves@redhat.com>

View File

@ -120,7 +120,7 @@ trace_start_error (const char *fmt, ...)
fprintf_unfiltered (gdb_stderr, "Could not trace the inferior "
"process.\nError: ");
vfprintf_unfiltered (gdb_stderr, fmt, ap);
va_end (args);
va_end (ap);
gdb_flush (gdb_stderr);
_exit (0177);