OSDN Git Service

2007-08-21 Michael Snyder <msnyder@access-company.com>
authormsnyder <msnyder>
Wed, 22 Aug 2007 01:53:19 +0000 (01:53 +0000)
committermsnyder <msnyder>
Wed, 22 Aug 2007 01:53:19 +0000 (01:53 +0000)
* valops.c (find_overload_match): Guard against NULL.

gdb/ChangeLog
gdb/valops.c

index 3476111..8c6751b 100644 (file)
@@ -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.
 
index 0a5ae14..433099e 100644 (file)
@@ -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.  */