binutils-gdb/gdb/compile
Keith Seitz 68f115f8c0 Fix TYPE_DECLARED_CLASS thinko
Simon pointed out an error that I made in
compile_cplus_conver_struct_or_union in my original C++ compile submission:

  if (type->code () == TYPE_CODE_STRUCT)
    {
      const char *what = TYPE_DECLARED_CLASS (type) ? "struct" : "class";

      resuld = instance->plugin ().build_decl
        (what, name.get (), (GCC_CP_SYMBOL_CLASS | nested_access
                             | (TYPE_DECLARED_CLASS (type)
                                ? GCC_CP_FLAG_CLASS_NOFLAG
                                : GCC_CP_FLAG_CLASS_IS_STRUCT)),
         0, nullptr, 0, filename, line);
    }

Notice that WHAT will contain "struct" for TYPE_DECLARED_CLASS. Whoops.

Fortunately this first parameter of build_decl is only used for
debugging.

gdb/ChangeLog
2021-03-24  Keith Seitz  <keiths@redhat.com>

	* compile/compile-cplus-types.c
	(compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
	thinko.
2021-03-24 13:44:17 -07:00
..
compile-c-support.c Return unique_ptr from language_defn::get_compile_context 2021-02-05 07:17:12 -07:00
compile-c-symbols.c Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
compile-c-types.c gdb: rename type::{arch,objfile} -> type::{arch_owner,objfile_owner} 2021-01-28 10:09:02 -05:00
compile-c.h Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
compile-cplus-symbols.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-cplus-types.c Fix TYPE_DECLARED_CLASS thinko 2021-03-24 13:44:17 -07:00
compile-cplus.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-internal.h Remove call to reset from compile_to_object 2021-01-23 17:48:48 -07:00
compile-loc2c.c Avoid crash when "compile" expression uses cooked register 2021-01-23 20:33:25 -07:00
compile-object-load.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-load.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-run.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile-object-run.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
compile.c Return unique_ptr from language_defn::get_compile_context 2021-02-05 07:17:12 -07:00
compile.h Use std::vector for "registers_used" in compile feature 2021-01-23 20:33:25 -07:00
gcc-c-plugin.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
gcc-cp-plugin.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00