// errors.cc -- handle errors for gold
-// Copyright (C) 2006-2018 Free Software Foundation, Inc.
+// Copyright (C) 2006-2021 Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
fputc('\n', stderr);
}
+// Print a trace message.
+
+void
+Errors::trace(const char* format, va_list args)
+{
+ vfprintf(stdout, format, args);
+ fputc('\n', stdout);
+}
+
// Report an error at a reloc location.
template<int size, bool big_endian>
va_end(args);
}
+// Print a trace message (to stdout).
+
+void
+gold_trace(const char* format, ...)
+{
+ va_list args;
+ va_start(args, format);
+ parameters->errors()->trace(format, args);
+ va_end(args);
+}
+
// Report an error at a location.
template<int size, bool big_endian>