X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Ftracefile.c;h=f7d9331e5b7f60d710bb64f9493481084fc6c587;hb=ea764154c27a11619ba764a4c92f395ba5007234;hp=b367f6e403b34bc12deabefed0a28741f9cda806;hpb=296956befef3711ed458c7cba8041fde0dab9c50;p=binutils-gdb.git diff --git a/gdb/tracefile.c b/gdb/tracefile.c index b367f6e403b..f7d9331e5b7 100644 --- a/gdb/tracefile.c +++ b/gdb/tracefile.c @@ -1,6 +1,6 @@ /* Trace file support in GDB. - Copyright (C) 1997-2018 Free Software Foundation, Inc. + Copyright (C) 1997-2022 Free Software Foundation, Inc. This file is part of GDB. @@ -19,10 +19,12 @@ #include "defs.h" #include "tracefile.h" -#include "ctf.h" +#include "tracectf.h" #include "exec.h" #include "regcache.h" -#include "common/byte-vector.h" +#include "gdbsupport/byte-vector.h" +#include "gdbarch.h" +#include "gdbsupport/buildargv.h" /* Helper macros. */ @@ -470,13 +472,9 @@ tracefile_target::get_trace_status (struct trace_status *ts) return -1; } -tracefile_target::tracefile_target () -{ - this->to_stratum = process_stratum; -} - +void _initialize_tracefile (); void -_initialize_tracefile (void) +_initialize_tracefile () { add_com ("tsave", class_trace, tsave_command, _("\ Save the trace data to a file.\n\