From: Michael Snyder Date: Wed, 22 Aug 2007 01:53:19 +0000 (+0000) Subject: 2007-08-21 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2ca50ae64c82fac1d5ed8f31b9cf830738b80f7;p=binutils-gdb.git 2007-08-21 Michael Snyder * valops.c (find_overload_match): Guard against NULL. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3476111cedd..8c6751b0447 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-08-21 Michael Snyder + + * valops.c (find_overload_match): Guard against NULL. + 2007-08-21 Daniel Jacobowitz * 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 +2007-08-18 Michael Snyder * stabsread.c (dbx_lookup_type): Memory leak. diff --git a/gdb/valops.c b/gdb/valops.c index 0a5ae14b6a6..433099ea61b 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. */