This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] C++ify dwarf2_per_objfile


On 07/17/2017 10:29 AM, Simon Marchi wrote:
> On 2017-07-16 22:07, Pedro Alves wrote:
>> Hi Trevor,

>>  /* A set of CU "per_cu" pointer, DIE offset, and GDB type pointer.
> 
> Looks good to me.

Thanks guys.

I pushed it, with a tiny change to also explicitly disable copy:

  /* Disable copy.  */
  dwarf2_per_objfile (const dwarf2_per_objfile &) = delete;
  void operator= (const dwarf2_per_objfile &) = delete;

I'm thinking that several functions in the file that work with
the "dwarf2_per_objfile" global might be candidates for
being struct dwarf2_per_objfile methods instead.  But that's
for a rainy day.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]