diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-22 01:53:19 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-22 01:53:19 +0000 |
commit | a2ca50ae64c82fac1d5ed8f31b9cf830738b80f7 (patch) | |
tree | 456ba06fd4de029231bea11558f04cf3cbaef10b | |
parent | 54e116dd35c70dd899ed393a8af2cac7a41dfd1d (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/valops.c | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3476111..8c6751b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-08-21 Michael Snyder <msnyder@access-company.com> + + * valops.c (find_overload_match): Guard against NULL. + 2007-08-21 Daniel Jacobowitz <dan@codesourcery.com> * MAINTAINERS (Patch Champions): Remove self. @@ -7,7 +11,7 @@ * cli/cli-script.c (read_command_lines): Call dont_repeat for each line. -2007-08-18 Michael Snyder <msnyder@svkmacdonelllnx> +2007-08-18 Michael Snyder <msnyder@access-company.com> * stabsread.c (dbx_lookup_type): Memory leak. 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. */ |