Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37661658
en ru br
Репозитории ALT
S:13.2.0.43.854f46b6377-alt2
5.1: 6.6-alt3
4.1: 6.6-alt3
4.0: 6.6-alt2
3.0: 6.3-alt2
www.altlinux.org/Changes

Группа :: Разработка/Отладчики
Пакет: gdb

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gdb-6.3-inheritance-20050324.patch
Скачать


2005-03-24  Jeff Johnston  <jjohnstn@redhat.com>
	* valops.c (check_field_in): Use check_typedef for base classes
	to avoid problems with opaque type references.
Index: gdb-6.5/gdb/valops.c
===================================================================
--- gdb-6.5.orig/gdb/valops.c	2005-12-17 20:34:03.000000000 -0200
+++ gdb-6.5/gdb/valops.c	2006-07-07 02:35:09.000000000 -0300
@@ -2257,8 +2257,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;
 }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin