From: Markus Deuling <deuling@de.ibm.com>
To: GDB Patches <gdb-patches@sourceware.org>
Cc: Ulrich Weigand <uweigand@de.ibm.com>
Subject: [patch]: Remove current_gdbarch from target.c
Date: Mon, 19 May 2008 15:19:00 -0000 [thread overview]
Message-ID: <483143AE.8060704@de.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 326 bytes --]
Hi,
this patch removes the last occurence of current_gdbarch from target.c Tested on x86_64 without
regression.
Ok to commit?
ChangeLog:
* target.c (target_translate_tls_address): Replace current_gdbarch by
objfile arch.
Regards,
Markus
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
[-- Attachment #2: diff-target --]
[-- Type: text/plain, Size: 1098 bytes --]
diff -urpN src/gdb/target.c dev/gdb/target.c
--- src/gdb/target.c 2008-05-13 13:42:06.000000000 +0200
+++ dev/gdb/target.c 2008-05-16 08:31:42.000000000 +0200
@@ -825,9 +825,10 @@ CORE_ADDR
target_translate_tls_address (struct objfile *objfile, CORE_ADDR offset)
{
volatile CORE_ADDR addr = 0;
+ struct gdbarch *gdbarch = get_objfile_arch (objfile);
if (target_get_thread_local_address_p ()
- && gdbarch_fetch_tls_load_module_address_p (current_gdbarch))
+ && gdbarch_fetch_tls_load_module_address_p (gdbarch))
{
ptid_t ptid = inferior_ptid;
volatile struct gdb_exception ex;
@@ -837,8 +838,7 @@ target_translate_tls_address (struct obj
CORE_ADDR lm_addr;
/* Fetch the load module address for this objfile. */
- lm_addr = gdbarch_fetch_tls_load_module_address (current_gdbarch,
- objfile);
+ lm_addr = gdbarch_fetch_tls_load_module_address (gdbarch, objfile);
/* If it's 0, throw the appropriate exception. */
if (lm_addr == 0)
throw_error (TLS_LOAD_MODULE_NOT_FOUND_ERROR,
next reply other threads:[~2008-05-19 9:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-19 15:19 Markus Deuling [this message]
2008-05-20 17:04 ` Ulrich Weigand
2008-05-20 17:53 ` Daniel Jacobowitz
2008-05-20 18:38 ` Ulrich Weigand
2008-05-20 18:39 ` Daniel Jacobowitz
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=483143AE.8060704@de.ibm.com \
--to=deuling@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--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