Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Markus Deuling <deuling@de.ibm.com>
To: Ulrich Weigand <uweigand@de.ibm.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c
Date: Wed, 31 Oct 2007 10:47:00 -0000	[thread overview]
Message-ID: <4728087F.3050005@de.ibm.com> (raw)
In-Reply-To: <200710302136.l9ULamF4013605@d12av02.megacenter.de.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

Ulrich Weigand schrieb:
> Markus Deuling wrote:
> 
>> this patch gets rid of some of the current_gdbarch's in arm-linux-nat.c
> 
> No patch attached ;-)

Oh, really :-) I attached the ChangeLog. Sorry, here is the patch. Ok to commit?



-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com


[-- Attachment #2: diff-arm-linux-nat --]
[-- Type: text/plain, Size: 911 bytes --]

diff -urpN src/gdb/arm-linux-nat.c dev/gdb/arm-linux-nat.c
--- src/gdb/arm-linux-nat.c	2007-10-15 21:19:17.000000000 +0200
+++ dev/gdb/arm-linux-nat.c	2007-10-30 06:05:38.000000000 +0100
@@ -255,7 +255,8 @@ fetch_register (struct regcache *regcach
   if (ARM_PC_REGNUM == regno)
     { 
       regs[ARM_PC_REGNUM] = gdbarch_addr_bits_remove
-			      (current_gdbarch, regs[ARM_PC_REGNUM]);
+			      (get_regcache_arch (regcache),
+			       regs[ARM_PC_REGNUM]);
       regcache_raw_supply (regcache, ARM_PC_REGNUM,
 			   (char *) &regs[ARM_PC_REGNUM]);
     }
@@ -291,7 +292,7 @@ fetch_regs (struct regcache *regcache)
 			 (char *) &regs[ARM_PC_REGNUM]);
 
   regs[ARM_PC_REGNUM] = gdbarch_addr_bits_remove
-			  (current_gdbarch, regs[ARM_PC_REGNUM]);
+			  (get_regcache_arch (regcache), regs[ARM_PC_REGNUM]);
   regcache_raw_supply (regcache, ARM_PC_REGNUM,
 		       (char *) &regs[ARM_PC_REGNUM]);
 }

  reply	other threads:[~2007-10-31  4:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-30  9:56 Markus Deuling
2007-10-30 22:01 ` Ulrich Weigand
2007-10-31 10:47   ` Markus Deuling [this message]
2007-10-31 15:34     ` Ulrich Weigand

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=4728087F.3050005@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