sim: profile: implement --profile-file backend
[deliverable/binutils-gdb.git] / gdb / completer.c
index b14edafbeef2b3b366b64de34450375ed98cd88c..e678fb1b20cdef487ffcd100d3ff190e5c1ed80b 100644 (file)
@@ -1,5 +1,6 @@
 /* Line completion stuff for GDB, the GNU debugger.
-   Copyright (C) 2000, 2001, 2007, 2008, 2009 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2007, 2008, 2009, 2010
+   Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -400,7 +401,7 @@ add_struct_fields (struct type *type, int *nextp, char **output,
              computed_type_name = 1;
            }
          /* Omit constructors from the completion list.  */
-         if (type_name && strcmp (type_name, name))
+         if (!type_name || strcmp (type_name, name))
            {
              output[*nextp] = xstrdup (name);
              ++*nextp;
This page took 0.031796 seconds and 4 git commands to generate.