Error when gdb_is_target_1 is called without running gdb instance
[binutils-gdb.git] / gdb / tracefile.c
index 79ba5414136a64d97cfb9db1da38bb16f72373b9..f7d9331e5b7f60d710bb64f9493481084fc6c587 100644 (file)
@@ -1,6 +1,6 @@
 /* Trace file support in GDB.
 
-   Copyright (C) 1997-2019 Free Software Foundation, Inc.
+   Copyright (C) 1997-2022 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -24,6 +24,7 @@
 #include "regcache.h"
 #include "gdbsupport/byte-vector.h"
 #include "gdbarch.h"
+#include "gdbsupport/buildargv.h"
 
 /* Helper macros.  */
 
@@ -471,8 +472,9 @@ tracefile_target::get_trace_status (struct trace_status *ts)
   return -1;
 }
 
+void _initialize_tracefile ();
 void
-_initialize_tracefile (void)
+_initialize_tracefile ()
 {
   add_com ("tsave", class_trace, tsave_command, _("\
 Save the trace data to a file.\n\