summaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2001-07-06 19:17:05 +0000
committerDaniel Berlin <dberlin@dberlin.org>2001-07-06 19:17:05 +0000
commitefae50153d4577bd05fc34b76c47bdca79982233 (patch)
treeebfdde719009a58b2f719cb06926eb6aab787aba /gdb/findvar.c
parentd30f071864b3938dd9d197547c65b33980a243f8 (diff)
downloadgdb-cvs/dberlin-typesystem-branch.tar.gz
Note that this currently isn't building, i'm in the middle of converting make_function_type/lookup_function_type
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r--gdb/findvar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index c5bf50755dc..35db176cf90 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -501,7 +501,6 @@ symbol_read_needs_frame (struct symbol *sym)
}
return 1;
}
-
/* Given a struct symbol for a variable,
and a stack frame id, read the value of the variable
and return a (pointer to a) struct value containing the value.
@@ -524,7 +523,6 @@ read_var_value (register struct symbol *var, struct frame_info *frame)
if (frame == NULL)
frame = selected_frame;
-
switch (SYMBOL_CLASS (var))
{
case LOC_CONST:
@@ -942,8 +940,8 @@ value_from_register (struct type *type, int regnum, struct frame_info *frame)
snum = (unsigned short)
extract_unsigned_integer (VALUE_CONTENTS_RAW (v), 2);
- if (TYPE_TARGET_TYPE (type) /* pointer to function */
- && (TYPE_CODE (TYPE_TARGET_TYPE (type)) == TYPE_CODE_FUNC))
+ if (POINTER_TARGET_TYPE (type) /* pointer to function */
+ && (TYPE_CODE (POINTER_TARGET_TYPE (type)) == TYPE_CODE_FUNC))
num = D10V_MAKE_IADDR (snum);
else /* pointer to data */
num = D10V_MAKE_DADDR (snum);