projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9dd34b2
)
* varobj.c (c_type_of_child): Use get_target_type instead
author
Keith Seitz
<keiths@redhat.com>
Tue, 24 Sep 2002 18:50:34 +0000
(18:50 +0000)
committer
Keith Seitz
<keiths@redhat.com>
Tue, 24 Sep 2002 18:50:34 +0000
(18:50 +0000)
of TYPE_TARGET_TYPE.
gdb/ChangeLog
patch
|
blob
|
history
gdb/varobj.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 8180ac7b08542d6646c98f7d3e65ffefb99421e8..46a0bb1728462c5653328473f733787c30371fda 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,8
@@
+2002-09-24 Keith Seitz <keiths@redhat.com>
+
+ * varobj.c (c_type_of_child): Use get_target_type instead
+ of TYPE_TARGET_TYPE.
+
2002-09-22 Fernando Nasser <fnasser@redhat.com>
* source.c (get_current_or_default_source_symtab_and_line): Remove
2002-09-22 Fernando Nasser <fnasser@redhat.com>
* source.c (get_current_or_default_source_symtab_and_line): Remove
diff --git
a/gdb/varobj.c
b/gdb/varobj.c
index 4ae046aad4ef6fa717fb027473f3263d4fbeaab7..16ba528afe67dc2d2534124418932a4cb02adb75 100644
(file)
--- a/
gdb/varobj.c
+++ b/
gdb/varobj.c
@@
-1345,7
+1345,10
@@
make_cleanup_free_variable (struct varobj *var)
/* This returns the type of the variable. This skips past typedefs
and returns the real type of the variable. It also dereferences
/* This returns the type of the variable. This skips past typedefs
and returns the real type of the variable. It also dereferences
- pointers and references. */
+ pointers and references.
+
+ NOTE: TYPE_TARGET_TYPE should NOT be used anywhere in this file
+ except within get_target_type and get_type. */
static struct type *
get_type (struct varobj *var)
{
static struct type *
get_type (struct varobj *var)
{
@@
-1374,7
+1377,10
@@
get_type_deref (struct varobj *var)
}
/* This returns the target type (or NULL) of TYPE, also skipping
}
/* This returns the target type (or NULL) of TYPE, also skipping
- past typedefs, just like get_type (). */
+ past typedefs, just like get_type ().
+
+ NOTE: TYPE_TARGET_TYPE should NOT be used anywhere in this file
+ except within get_target_type and get_type. */
static struct type *
get_target_type (struct type *type)
{
static struct type *
get_target_type (struct type *type)
{
@@
-1959,7
+1965,7
@@
c_type_of_child (struct varobj *parent, int index)
switch (TYPE_CODE (parent->type))
{
case TYPE_CODE_ARRAY:
switch (TYPE_CODE (parent->type))
{
case TYPE_CODE_ARRAY:
- type =
TYPE_TARGET_TYPE
(parent->type);
+ type =
get_target_type
(parent->type);
break;
case TYPE_CODE_STRUCT:
break;
case TYPE_CODE_STRUCT:
@@
-1968,7
+1974,7
@@
c_type_of_child (struct varobj *parent, int index)
break;
case TYPE_CODE_PTR:
break;
case TYPE_CODE_PTR:
- switch (TYPE_CODE (
TYPE_TARGET_TYPE
(parent->type)))
+ switch (TYPE_CODE (
get_target_type
(parent->type)))
{
case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
{
case TYPE_CODE_STRUCT:
case TYPE_CODE_UNION:
@@
-1976,7
+1982,7
@@
c_type_of_child (struct varobj *parent, int index)
break;
default:
break;
default:
- type =
TYPE_TARGET_TYPE
(parent->type);
+ type =
get_target_type
(parent->type);
break;
}
break;
break;
}
break;