X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fmaint.h;h=d8475044da31e5b02ff8331117a5de9dcec3520b;hb=975f8708de015fb2b813edbf8b714f4777c57a41;hp=7312eaceb5c8728509306d2619818df0c6d3523b;hpb=42a4f53d2bf8938c2aeda9f52be7a20534b214a9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/maint.h b/gdb/maint.h index 7312eaceb5..d8475044da 100644 --- a/gdb/maint.h +++ b/gdb/maint.h @@ -1,5 +1,5 @@ /* Support for GDB maintenance commands. - Copyright (C) 2013-2019 Free Software Foundation, Inc. + Copyright (C) 2013-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -19,7 +19,7 @@ #ifndef MAINT_H #define MAINT_H -#include "run-time-clock.h" +#include "gdbsupport/run-time-clock.h" #include extern void set_per_command_time (int); @@ -38,9 +38,10 @@ class scoped_command_stats private: - // No need for these. They are intentionally not defined anywhere. - scoped_command_stats &operator= (const scoped_command_stats &); - scoped_command_stats (const scoped_command_stats &); + DISABLE_COPY_AND_ASSIGN (scoped_command_stats); + + /* Print the time, along with a string. */ + void print_time (const char *msg); /* Zero if the saved time is from the beginning of GDB execution. One if from the beginning of an individual command execution. */