aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-22 01:53:19 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-22 01:53:19 +0000
commita2ca50ae64c82fac1d5ed8f31b9cf830738b80f7 (patch)
tree456ba06fd4de029231bea11558f04cf3cbaef10b /gdb/valops.c
parent54e116dd35c70dd899ed393a8af2cac7a41dfd1d (diff)
downloadgdb-a2ca50ae64c82fac1d5ed8f31b9cf830738b80f7.zip
gdb-a2ca50ae64c82fac1d5ed8f31b9cf830738b80f7.tar.gz
gdb-a2ca50ae64c82fac1d5ed8f31b9cf830738b80f7.tar.bz2
2007-08-21 Michael Snyder <msnyder@access-company.com>
* valops.c (find_overload_match): Guard against NULL.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 0a5ae14..433099e 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1895,6 +1895,7 @@ find_overload_match (struct type **arg_types, int nargs,
/* Get the list of overloaded methods or functions. */
if (method)
{
+ gdb_assert (obj);
obj_type_name = TYPE_NAME (value_type (obj));
/* Hack: evaluate_subexp_standard often passes in a pointer
value rather than the object itself, so try again. */