convert to_get_thread_local_address to use target delegation
authorTom Tromey <tromey@redhat.com>
Wed, 25 Jun 2014 16:16:55 +0000 (10:16 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 7 Jul 2014 15:06:14 +0000 (09:06 -0600)
commitf0f9ff9530992cb86c7022310af223b2721117d1
tree8ce203cef87c35218567961b74b6f755f901e25c
parent3bb9e7b43fb3bef0ecfef14b9185661afbe5f4c5
convert to_get_thread_local_address to use target delegation

This converts to_get_thread_local_address to use
TARGET_DEFAULT_NORETURN.  One possible oddity is that this changes the
text of the kind of exception thrown in some cases.  This doesn't seem
to be a problem; in fact perhaps the final call to 'error' in
target_translate_tls_address should be changed to call
generic_tls_error.

2014-07-07  Tom Tromey  <tromey@redhat.com>

* target.h (struct target_ops) <to_get_thread_local_address>: Use
TARGET_DEFAULT_NORETURN.
* target.c (generic_tls_error): New function.
(target_translate_tls_address): Don't search target stack.
* target-delegates.c: Rebuild.
* ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
stack.
* linux-thread-db.c (thread_db_get_thread_local_address):
Unconditionally call beneath target.
gdb/ChangeLog
gdb/linux-thread-db.c
gdb/ppc-linux-tdep.c
gdb/target-delegates.c
gdb/target.c
gdb/target.h