Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] Move TLS load module addr fetching to dwarf2loc.c
Date: Thu, 24 Mar 2005 22:51:00 -0000	[thread overview]
Message-ID: <20050324155105.3eec0b42@ironwood.lan> (raw)
In-Reply-To: <200503242227.j2OMRptl027698@53v30g15.boeblingen.de.ibm.com>

On Thu, 24 Mar 2005 23:27:50 +0100 (CET)
Ulrich Weigand <uweigand@de.ibm.com> wrote:

> > 	* alpha-linux-tdep.c (solib-svr4.h): Include.
> > 	(alpha_linux_init_abi): Register TLS load module fetcher.
> > 	* amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
> > 	* hppa-linux-tdep.c (hppa_linux_init_abi): Likewise.
> > 	* i386-linux-tdep.c (i386_linux_init_abi): Likewise.
> > 	* ia64-linux-tdep.c (solib-svr4.h): Include.
> > 	(ia64_linux_init_abi): Register TLS load module fetcher.
> > 	* m32r-linux-tdep.c (m32r_linux_init_abi): Likewise.
> > 	* m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
> > 	* mips-linux-tdep.c (mips_linux_init_abi): Likewise.
> > 	* sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
> > 	* sparc64-linux-tdep.c (solib-svr4.h): Include.
> > 	(sparc64_linux_init_abi): Register TLS load module fetcher.
> > 	* Makefile.in (alpha-linux-tdep.o, ia64-linux-tdep.o)
> > 	(sparc-linux-tdep.o): Update dependencies.
> 
> What about s390?  I guess we need the same change ...

I apologize for missing the s390.  (I did my search on *linux-tdep.c.)
How does the patch below look to you?  I've added this to my sandbox
and, if it looks okay to you, I'll check it in when the rest of the
changes go in.

	* s390-tdep.c (s390_gdbarch_init): Register TLS load module fetcher.

Index: s390-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/s390-tdep.c,v
retrieving revision 1.142
diff -u -p -r1.142 s390-tdep.c
--- s390-tdep.c	17 Mar 2005 17:44:14 -0000	1.142
+++ s390-tdep.c	24 Mar 2005 22:45:57 -0000
@@ -3007,6 +3007,10 @@ s390_gdbarch_init (struct gdbarch_info i
 
   set_gdbarch_print_insn (gdbarch, print_insn_s390);
 
+  /* Enable TLS support.  */
+  set_gdbarch_fetch_tls_load_module_address (gdbarch,
+                                             svr4_fetch_objfile_link_map);
+
   return gdbarch;
 }
 


  reply	other threads:[~2005-03-24 22:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 19:45 Kevin Buettner
2005-03-24 22:28 ` Ulrich Weigand
2005-03-24 22:51   ` Kevin Buettner [this message]
2005-03-25 17:07     ` Ulrich Weigand
2005-03-31 20:00 ` Kevin Buettner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050324155105.3eec0b42@ironwood.lan \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=uweigand@de.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox