Enable TLS support in aarch64-linux-tdep.c
authorMarcus Shawcroft <mshawcroft@sourceware.org>
Thu, 7 Feb 2013 10:49:29 +0000 (10:49 +0000)
committerMarcus Shawcroft <mshawcroft@sourceware.org>
Thu, 7 Feb 2013 10:49:29 +0000 (10:49 +0000)
2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>

        * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
        set_gdbarch_fetch_tls_load_module_address.

gdb/ChangeLog
gdb/aarch64-linux-tdep.c

index 32f0c49293f2ba32a750f67c47e80f0ea17dedf2..50e54453ae23c8bb47fb90e80d51dacbee56dae0 100644 (file)
@@ -1,3 +1,8 @@
+2013-02-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
+
+       * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
+       set_gdbarch_fetch_tls_load_module_address.
+
 2013-02-06  David S. Miller  <davem@davemloft.net>
 
        * sparc-tdep.c (sparc32_return_value): Handle writing return value when
index 1622a43a99229d2d1d0332310ce113166efc2d08..3055a0ae61cbcb38593f5b08d6ad4f189a9c5349 100644 (file)
@@ -273,6 +273,10 @@ aarch64_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
   set_solib_svr4_fetch_link_map_offsets (gdbarch,
                                         svr4_lp64_fetch_link_map_offsets);
 
+  /* Enable TLS support.  */
+  set_gdbarch_fetch_tls_load_module_address (gdbarch,
+                                             svr4_fetch_objfile_link_map);
+
   /* Shared library handling.  */
   set_gdbarch_skip_trampoline_code (gdbarch, find_solib_trampoline_target);