Don't allow copying of auto_obstack
authorTom Tromey <tom@tromey.com>
Wed, 12 Feb 2020 00:31:10 +0000 (17:31 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 12 Feb 2020 00:57:46 +0000 (17:57 -0700)
commitf92ff6b55219a7c4c54a62412e194bbda713cf46
tree75f1ddff6f0afd3b60a093a659156c88ddbc20f2
parent3fd6912bb1066ae047de2ade1201a823f366fc8e
Don't allow copying of auto_obstack

Add DISABLE_COPY_AND_ASSIGN to struct auto_obstack, to prevent copying
it.  Copying an auto_obstack would be a bug.

2020-02-11  Tom Tromey  <tom@tromey.com>

* gdb_obstack.h (struct auto_obstack): Use
DISABLE_COPY_AND_ASSIGN.

Change-Id: Ic9e5ab20acfcfa61c241fed4d99bbb1caefba3cd
gdb/ChangeLog
gdb/gdb_obstack.h