From: Tom Tromey Date: Thu, 27 Dec 2018 19:29:48 +0000 (-0700) Subject: Use DISABLE_COPY_AND_ASSIGN in minimal_symbol_reader X-Git-Tag: binutils-2_32~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af9a216102c27e308e338f77b6f9ad78dd0d2c09;p=platform%2Fupstream%2Fbinutils.git 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 * minsyms.h (class minimal_symbol_reader): Use DISABLE_COPY_AND_ASSIGN. --- 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 + * minsyms.h (class minimal_symbol_reader): Use + DISABLE_COPY_AND_ASSIGN. + +2018-12-27 Tom Tromey + * 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;