public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: - Rebase to FSF GDB 7.2.50.20110125 (which is a 7.3 pre-release).
Date: Sat, 27 Jun 2026 23:54:58 GMT	[thread overview]
Message-ID: <178260449803.1.15574550995727440744.rpms-gdb-ea07d44ec298@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/gdb
            Branch : gdb-17.2-rebase-f44
            Commit : ea07d44ec298f210aea4ca907241f66c07133073
            Author : Jan Kratochvil <jan.kratochvil@redhat.com>
            Date   : 2011-01-25T22:59:16+01:00
            Stats  : +86/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gdb/c/ea07d44ec298f210aea4ca907241f66c07133073?branch=gdb-17.2-rebase-f44

            Log:
            - Rebase to FSF GDB 7.2.50.20110125 (which is a 7.3 pre-release).
- Fix discontiguous address ranges in .gdb_index - v3->v4 (BZ 672281).
- Fix DWARF-3+ DW_AT_accessibility default assumption for F15 gcc-4.6.

---
diff --git a/gdb-dwarf3-accessibility.patch b/gdb-dwarf3-accessibility.patch
new file mode 100644
index 0000000..d54dc34
--- /dev/null
+++ b/gdb-dwarf3-accessibility.patch
@@ -0,0 +1,86 @@
+http://sourceware.org/ml/gdb-patches/2011-01/msg00507.html
+Subject: [patch] Fix DWARF-3+ DW_AT_accessibility default assumption
+
+Hi,
+
+GDB regresses on default compiler option -gdwarf-3 on gcc-4.6+ as this gcc
+started to omit DW_AT_accessibility for the default value case.  Normal
+upstream gcc still has -gdwarf-2 default (Fedora uses -gdwarf-3 default).
+
+No regressions on {x86_64,x86_64-m32,i686}-fedora15-linux-gnu.
+(There are other regressions to be fixed due to gcc45->gcc46.)
+
+I will check it in in some time.
+
+
+Thanks,
+Jan
+
+
+-FAIL: gdb.cp/casts.exp: dynamic_cast simple downcast
+-FAIL: gdb.cp/casts.exp: dynamic_cast simple downcast to intermediate class
+-FAIL: gdb.cp/casts.exp: dynamic_cast unique downcast
+-FAIL: gdb.cp/casts.exp: dynamic_cast to sibling
+-FAIL: gdb.cp/classes.exp: ptype class default_private_class // wrong access specifier for field: public
+-FAIL: gdb.cp/classes.exp: ptype class explicit_private_class // wrong access specifier for field: public
+-FAIL: gdb.cp/classes.exp: ptype class mixed_protection_class // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype A // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype B // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype a // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype b // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype pAa // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype pAe // wrong access specifier for field: public
+-FAIL: gdb.cp/virtfunc.exp: ptype pBe // wrong access specifier for field: public
+-FAIL: gdb.mi/gdb792.exp: list children of class A
+-FAIL: gdb.mi/gdb792.exp: list children of A.public
+-FAIL: gdb.mi/gdb792.exp: list children of A.private
+-FAIL: gdb.mi/gdb792.exp: list children of A.protected
+-FAIL: gdb.mi/gdb792.exp: list children of A.protected.b
+-FAIL: gdb.mi/gdb792.exp: list children of A.protected.b.public
+-FAIL: gdb.mi/gdb792.exp: list children of A.protected.b.private
+-FAIL: gdb.mi/gdb792.exp: list children of class C
+-FAIL: gdb.python/py-value.exp: python print bool(gdb.parse_and_eval('base').dynamic_cast(gdb.lookup_type('Derived').pointer()))
+
+
+gdb/
+2011-01-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix DWARF-3+ DW_AT_accessibility default assumption.
+	* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
+	cu->header.version >= 3.
+
+--- a/gdb/dwarf2read.c
++++ b/gdb/dwarf2read.c
+@@ -6186,13 +6186,25 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die,
+     }
+   fip->nfields++;
+ 
+-  /* Handle accessibility and virtuality of field.
+-     The default accessibility for members is public, the default
+-     accessibility for inheritance is private.  */
+-  if (die->tag != DW_TAG_inheritance)
+-    new_field->accessibility = DW_ACCESS_public;
++  if (cu->header.version < 3)
++    {
++      /* The default DWARF 2 accessibility for members is public, the default
++	 accessibility for inheritance is private.  */
++
++      if (die->tag != DW_TAG_inheritance)
++	new_field->accessibility = DW_ACCESS_public;
++      else
++	new_field->accessibility = DW_ACCESS_private;
++    }
+   else
+-    new_field->accessibility = DW_ACCESS_private;
++    {
++      /* DWARF 3 specifies the default accessibility explicitly.  */
++
++      if (die->parent->tag == DW_TAG_class_type)
++	new_field->accessibility = DW_ACCESS_private;
++      else
++	new_field->accessibility = DW_ACCESS_public;
++    }
+   new_field->virtuality = DW_VIRTUALITY_none;
+ 
+   attr = dwarf2_attr (die, DW_AT_accessibility, cu);
+

             reply	other threads:[~2026-06-27 23:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-27 23:54 Jan Kratochvil [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-06-27 23:54 [rpms/gdb] gdb-17.2-rebase-f44: - Rebase to FSF GDB 7.2.50.20110125 (which is a 7.3 pre-release) Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178260449803.1.15574550995727440744.rpms-gdb-ea07d44ec298@fedoraproject.org \
    --to=jan.kratochvil@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox