From 1b076f2540e51055a7c6a4ee8fdfc604b54fb70a Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 20 Feb 2017 08:01:04 -0500 Subject: [PATCH] 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 PR gdb/16188 * fork-child.c (trace_start_error): Fix thinko. va_end should refer to 'ap', not 'args'. --- gdb/ChangeLog | 6 ++++++ gdb/fork-child.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cf68c7e78c0..610755cfe7d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-02-20 Sergio Durigan Junior + + 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 Pedro Alves diff --git a/gdb/fork-child.c b/gdb/fork-child.c index f6256fb01ad..dc2a314edf0 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -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); -- 2.30.2