From 2b9b6c13e23a9a0c6470607e85b1841fd3f35c4a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 25 Mar 2005 00:17:33 +0000 Subject: [PATCH] - Bump up release number. Thu Mar 24 2005 Jeff Johnston 6.3.0.0-1.4 - Fix printing of inherited members of C++ classes. - Fix for Bugzilla 146835. --- gdb-6.3-inheritance-20050324.patch | 31 ++++++++++++++++++++++++++++++ gdb.spec | 13 ++++++++++++- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 gdb-6.3-inheritance-20050324.patch diff --git a/gdb-6.3-inheritance-20050324.patch b/gdb-6.3-inheritance-20050324.patch new file mode 100644 index 0000000..cefeab0 --- /dev/null +++ b/gdb-6.3-inheritance-20050324.patch @@ -0,0 +1,31 @@ +2005-03-24 Jeff Johnston + + * valops.c (check_field_in): Use check_typedef for base classes + to avoid problems with opaque type references. + +--- gdb-6.3/gdb/valops.c.fix 2005-03-24 19:07:09.000000000 -0500 ++++ gdb-6.3/gdb/valops.c 2005-03-24 19:08:31.000000000 -0500 +@@ -1,6 +1,6 @@ + /* Perform non-arithmetic operations on values, for GDB. + Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, +- 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 ++ 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 + Free Software Foundation, Inc. + + This file is part of GDB. +@@ -2315,8 +2315,13 @@ check_field_in (struct type *type, const + } + + for (i = TYPE_N_BASECLASSES (type) - 1; i >= 0; i--) +- if (check_field_in (TYPE_BASECLASS (type, i), name)) +- return 1; ++ { ++ /* Check the base classes. Make sure we have the real type for ++ each base class as opposed to an opaque declaration. */ ++ struct type *baseclass = check_typedef (TYPE_BASECLASS (type, i)); ++ if (check_field_in (baseclass, name)) ++ return 1; ++ } + + return 0; + } diff --git a/gdb.spec b/gdb.spec index 03c85fb..958cdad 100644 --- a/gdb.spec +++ b/gdb.spec @@ -11,7 +11,7 @@ Name: gdb Version: 6.3.0.0 # The release always contains a leading reserved number, start it at 0. -Release: 1.3 +Release: 1.6 License: GPL Group: Development/Debuggers @@ -198,6 +198,9 @@ Patch146: gdb-6.3-follow-vfork-20050303.patch # Fix unexpected compiler warning messages. Patch147: gdb-6.3-warnings-20050317.patch +# Fix printing of inherited members +Patch148: gdb-6.3-inheritance-20050324.patch + %ifarch ia64 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu libunwind >= 0.96-3 %else @@ -278,6 +281,7 @@ and printing their data. %patch145 -p1 %patch146 -p1 %patch147 -p1 +%patch148 -p1 # Change the version that gets printed at GDB startup, so it is RedHat # specific. @@ -446,6 +450,13 @@ fi # don't include the files in include, they are part of binutils %changelog +* Thu Mar 24 2005 Jeff Johnston 6.3.0.0-1.6 +- Bump up release number. + +* Thu Mar 24 2005 Jeff Johnston 6.3.0.0-1.4 +- Fix printing of inherited members of C++ classes. +- Fix for Bugzilla 146835. + * Tue Mar 22 2005 Jeff Johnston 6.3.0.0-1.3 - Bump up release number.