/* Helper routines for C++ support in GDB.
- Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010
+ Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc.
Contributed by MontaVista Software.
/* Look in the static block. */
block = block_static_block (get_selected_block (0));
- make_symbol_overload_list_block (name, block);
+ if (block)
+ make_symbol_overload_list_block (name, block);
/* Look in the global block. */
block = block_global_block (block);
- make_symbol_overload_list_block (name, block);
+ if (block)
+ make_symbol_overload_list_block (name, block);
}
}
}
-/* Adds the the overload list overload candidates for FUNC_NAME found
+/* Adds the overload list overload candidates for FUNC_NAME found
through argument dependent lookup. */
struct symbol **
static void
maint_cplus_command (char *arg, int from_tty)
{
- printf_unfiltered (_("\"maintenance cplus\" must be followed by the name of a command.\n"));
+ printf_unfiltered (_("\"maintenance cplus\" must be followed "
+ "by the name of a command.\n"));
help_list (maint_cplus_cmd_list,
"maintenance cplus ",
-1, gdb_stdout);