This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit]+[brach commit] DWARF-3+ DW_AT_accessibility defaults #3 (GCC PR debug/45124)
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tromey at redhat dot com>, Dodji Seketeli <dseketel at redhat dot com>, Joel Brobecker <brobecker at adacore dot com>
- Date: Sat, 9 Apr 2011 13:20:54 +0200
- Subject: [commit]+[brach commit] DWARF-3+ DW_AT_accessibility defaults #3 (GCC PR debug/45124)
- References: <20110321154428.GA3761@host1.jankratochvil.net> <20110322095904.GA29625@host1.jankratochvil.net> <m38vw7rppg.fsf@fleche.redhat.com> <20110322181620.GA21984@host1.jankratochvil.net> <20110328091943.GA21984@host1.jankratochvil.net> <20110401210345.GA31785@host1.jankratochvil.net>
On Fri, 01 Apr 2011 23:03:45 +0200, Jan Kratochvil wrote:
> so here is a patch which works for everything but regresses gcc-4.5.x
> -gdwarf-4, as suggested/allowed by Jakub:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48229#c6
>
> As it has been regression tested enough I will check it in in some time (and
> definitely for gdb-7.3).
[...]
> gdb/
> 2011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * dwarf2read.c: Include ctype.h.
> (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
> functions.
> (dwarf2_add_field): Fix new_field->accessibility by calling
> dwarf2_default_access_attribute. Restructure setting accessibility
> vs. virtuality.
> (dwarf2_add_member_fn): New variable accessibility. Fix fnp
> is_private and is_protected by calling
> dwarf2_default_access_attribute.
Checked it on HEAD and on 7.3:
http://sourceware.org/ml/gdb-cvs/2011-04/msg00059.html
http://sourceware.org/ml/gdb-cvs/2011-04/msg00060.html
The 7.3 check in seems to me pre-approved as present on:
http://sourceware.org/gdb/wiki/GDB_7.3_Release
Thanks,
Jan