2007-12-07 Pedro Alves * breakpoint.c (break_command_1): Update pending breakpoint query text. * linespec.c (symtab_from_filename): Don't call error if there are no symbols loaded. Update message. (decode_variable): Likewise. --- gdb/breakpoint.c | 3 ++- gdb/linespec.c | 14 ++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) Index: src/gdb/breakpoint.c =================================================================== --- src.orig/gdb/breakpoint.c 2007-12-06 20:53:32.000000000 +0000 +++ src/gdb/breakpoint.c 2007-12-07 00:07:14.000000000 +0000 @@ -5505,7 +5505,8 @@ break_command_1 (char *arg, int flag, in /* If pending breakpoint support is auto query and the user selects no, then simply return the error code. */ if (pending_break_support == AUTO_BOOLEAN_AUTO && - !nquery ("Make breakpoint pending on future shared library load? ")) + !nquery (_("\ +Make breakpoint pending on future symbol file addition? "))) return e.reason; /* At this point, either the user was queried about setting Index: src/gdb/linespec.c =================================================================== --- src.orig/gdb/linespec.c 2007-10-03 01:16:04.000000000 +0100 +++ src/gdb/linespec.c 2007-12-06 23:53:34.000000000 +0000 @@ -1534,11 +1534,11 @@ symtab_from_filename (char **argptr, cha file_symtab = lookup_symtab (copy); if (file_symtab == 0) { - if (!have_full_symbols () && !have_partial_symbols ()) - error (_("No symbol table is loaded. Use the \"file\" command.")); if (not_found_ptr) *not_found_ptr = 1; - throw_error (NOT_FOUND_ERROR, _("No source file named %s."), copy); + throw_error (NOT_FOUND_ERROR, + _("Source file not found in loaded symbols: %s"), + copy); } /* Discard the file name from the arg. */ @@ -1744,13 +1744,11 @@ decode_variable (char *copy, int funfirs if (msymbol != NULL) return minsym_found (funfirstline, msymbol); - if (!have_full_symbols () && - !have_partial_symbols () && !have_minimal_symbols ()) - error (_("No symbol table is loaded. Use the \"file\" command.")); - if (not_found_ptr) *not_found_ptr = 1; - throw_error (NOT_FOUND_ERROR, _("Function \"%s\" not defined."), copy); + throw_error (NOT_FOUND_ERROR, + _("Function not found in loaded symbols: %s"), + copy); }