aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2loc.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-04-26 14:57:22 +0000
committerAndrew Cagney <cagney@redhat.com>2005-04-26 14:57:22 +0000
commit109c3e397e8c8c131128f2bcf6cea8b6ce6f2d51 (patch)
tree50ab4aa65866fe207f9839270050bad311d89d0f /gdb/dwarf2loc.c
parentdb5152b48da0a2ba407dac5516ab621063aa063c (diff)
downloadgdb-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/dwarf2loc.c')
-rw-r--r--gdb/dwarf2loc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index 00b2196..47c8101 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -204,12 +204,8 @@ dwarf_expr_tls_address (void *baton, CORE_ADDR offset)
objfile);
/* If it's 0, throw the appropriate exception. */
if (lm_addr == 0)
- {
- struct gdb_exception e
- = { RETURN_ERROR, TLS_LOAD_MODULE_NOT_FOUND_ERROR, 0 };
-
- throw_exception (e);
- }
+ throw_error (TLS_LOAD_MODULE_NOT_FOUND_ERROR,
+ _("TLS load module not found"));
addr = target_get_thread_local_address (ptid, lm_addr, offset);
}