* [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c
@ 2007-10-30 9:56 Markus Deuling
2007-10-30 22:01 ` Ulrich Weigand
0 siblings, 1 reply; 4+ messages in thread
From: Markus Deuling @ 2007-10-30 9:56 UTC (permalink / raw)
To: GDB Patches; +Cc: Ulrich Weigand
[-- Attachment #1: Type: text/plain, Size: 312 bytes --]
Hi,
this patch gets rid of some of the current_gdbarch's in arm-linux-nat.c
Is this ok to commit?
ChangeLog:
* arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
to get at the current architecture by regcache.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
[-- Attachment #2: ChangeLog-arm-linux-nat --]
[-- Type: text/plain, Size: 121 bytes --]
* arm-linux-nat.c (fetch_register, fetch_regs): Use get_regcache_arch
to get at the current architecture by regcache.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c
2007-10-30 9:56 [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c Markus Deuling
@ 2007-10-30 22:01 ` Ulrich Weigand
2007-10-31 10:47 ` Markus Deuling
0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Weigand @ 2007-10-30 22:01 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Patches
Markus Deuling wrote:
> this patch gets rid of some of the current_gdbarch's in arm-linux-nat.c
No patch attached ;-)
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c
2007-10-30 22:01 ` Ulrich Weigand
@ 2007-10-31 10:47 ` Markus Deuling
2007-10-31 15:34 ` Ulrich Weigand
0 siblings, 1 reply; 4+ messages in thread
From: Markus Deuling @ 2007-10-31 10:47 UTC (permalink / raw)
To: Ulrich Weigand; +Cc: GDB Patches
[-- 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 *) ®s[ARM_PC_REGNUM]);
}
@@ -291,7 +292,7 @@ fetch_regs (struct regcache *regcache)
(char *) ®s[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 *) ®s[ARM_PC_REGNUM]);
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c
2007-10-31 10:47 ` Markus Deuling
@ 2007-10-31 15:34 ` Ulrich Weigand
0 siblings, 0 replies; 4+ messages in thread
From: Ulrich Weigand @ 2007-10-31 15:34 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Patches
Markus Deuling wrote:
> 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?
OK, checked in.
Thanks,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-31 14:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-30 9:56 [rfc] [04/20] Get rid of current_gdbarch in arm-linux-nat.c Markus Deuling
2007-10-30 22:01 ` Ulrich Weigand
2007-10-31 10:47 ` Markus Deuling
2007-10-31 15:34 ` Ulrich Weigand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox