diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-04-26 14:57:22 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-04-26 14:57:22 +0000 |
commit | 109c3e397e8c8c131128f2bcf6cea8b6ce6f2d51 (patch) | |
tree | 50ab4aa65866fe207f9839270050bad311d89d0f /gdb/cli/cli-script.c | |
parent | db5152b48da0a2ba407dac5516ab621063aa063c (diff) | |
download | gdb-109c3e397e8c8c131128f2bcf6cea8b6ce6f2d51.zip gdb-109c3e397e8c8c131128f2bcf6cea8b6ce6f2d51.tar.gz gdb-109c3e397e8c8c131128f2bcf6cea8b6ce6f2d51.tar.bz2 |
2005-04-26 Andrew Cagney <cagney@gnu.org>
* remote.c (remote_open_1): Move "ex"'s declaration to where it is
used.
(remote_get_thread_local_address): Use throw_error, include a
printed string.
* linux-thread-db.c (thread_db_get_thread_local_address): Ditto.
* dwarf2loc.c (dwarf_expr_tls_address): Ditto.
* cli/cli-script.c (script_from_file): Mark up throw_error message.
* linespec.c (symtab_from_filename, decode_variable): Ditto.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 3d69601..a4da9c5 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -1286,7 +1286,8 @@ script_from_file (FILE *stream, char *file) case RETURN_ERROR: /* Re-throw the error, but with the file name information prepended. */ - throw_error (e.error, "%s:%d: Error in sourced command file:\n%s", + throw_error (e.error, + _("%s:%d: Error in sourced command file:\n%s"), source_file_name, source_line_number, e.message); default: internal_error (__FILE__, __LINE__, _("bad reason")); |