This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use DISABLE_COPY_AND_ASSIGN in minimal_symbol_reader
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Dec 2018 19:34:23 -0000
- Subject: [binutils-gdb] Use DISABLE_COPY_AND_ASSIGN in minimal_symbol_reader
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=af9a216102c27e308e338f77b6f9ad78dd0d2c09
commit af9a216102c27e308e338f77b6f9ad78dd0d2c09
Author: Tom Tromey <tom@tromey.com>
Date: Thu Dec 27 12:29:48 2018 -0700
Use DISABLE_COPY_AND_ASSIGN in minimal_symbol_reader
This changes minimal_symbol_reader to use DISABLE_COPY_AND_ASSIGN,
rather than the manual approach it currently uses.
Tested by rebuilding.
gdb/ChangeLog
2018-12-27 Tom Tromey <tom@tromey.com>
* minsyms.h (class minimal_symbol_reader): Use
DISABLE_COPY_AND_ASSIGN.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/minsyms.h | 5 +----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a6adc53..dc4dd30 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2018-12-27 Tom Tromey <tom@tromey.com>
+ * minsyms.h (class minimal_symbol_reader): Use
+ DISABLE_COPY_AND_ASSIGN.
+
+2018-12-27 Tom Tromey <tom@tromey.com>
+
* python/python.c (python_interactive_command): Use std::string.
(gdbpy_parameter): Likewise.
* python/py-utils.c (unicode_to_encoded_string): Update comment.
diff --git a/gdb/minsyms.h b/gdb/minsyms.h
index f6799ef..9e8e4c7 100644
--- a/gdb/minsyms.h
+++ b/gdb/minsyms.h
@@ -128,10 +128,7 @@ class minimal_symbol_reader
private:
- /* No need for these. They are intentionally not defined anywhere. */
- minimal_symbol_reader &operator=
- (const minimal_symbol_reader &);
- minimal_symbol_reader (const minimal_symbol_reader &);
+ DISABLE_COPY_AND_ASSIGN (minimal_symbol_reader);
struct objfile *m_objfile;