aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-12-27 12:29:48 -0700
committerTom Tromey <tom@tromey.com>2018-12-27 12:29:48 -0700
commitaf9a216102c27e308e338f77b6f9ad78dd0d2c09 (patch)
treed73d16c57bca414f8159e0dbfa1932129003392f /gdb
parent075c55e0cc0a68eeab777027213c2f545618e844 (diff)
downloadfsf-binutils-gdb-af9a216102c27e308e338f77b6f9ad78dd0d2c09.zip
fsf-binutils-gdb-af9a216102c27e308e338f77b6f9ad78dd0d2c09.tar.gz
fsf-binutils-gdb-af9a216102c27e308e338f77b6f9ad78dd0d2c09.tar.bz2
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/minsyms.h5
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;