aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-24 01:01:09 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-24 01:01:09 +0000
commite532974c430c3e8ead63286558d5e950b10f44d9 (patch)
tree3527813b495a99e37cfbd207df2b02e51c60a573 /gdb/valops.c
parent9107291db4840152f7ecff059d89f659965be4b2 (diff)
downloadgdb-e532974c430c3e8ead63286558d5e950b10f44d9.zip
gdb-e532974c430c3e8ead63286558d5e950b10f44d9.tar.gz
gdb-e532974c430c3e8ead63286558d5e950b10f44d9.tar.bz2
values.c (value_virtual_fn_field): If there is no fcontext,
then do things the way GDB 3.x did. valops.c (search_struct_method): Add type to value_virtual_fn_field arguments.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index a3269ac..0284ea0 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1041,7 +1041,7 @@ search_struct_method (name, arg1, args, offset, static_memfuncp, type)
TYPE_FN_FIELD_ARGS (f, j), args))
{
if (TYPE_FN_FIELD_VIRTUAL_P (f, j))
- return (value)value_virtual_fn_field (arg1, f, j);
+ return (value)value_virtual_fn_field (arg1, f, j, type);
if (TYPE_FN_FIELD_STATIC_P (f, j) && static_memfuncp)
*static_memfuncp = 1;
return (value)value_fn_field (arg1, i, j);