* [rfc] [4/5] Get rid of current_gdbarch in reggroups.c
@ 2007-10-22 10:00 Markus Deuling
2007-10-22 14:40 ` Ulrich Weigand
0 siblings, 1 reply; 2+ messages in thread
From: Markus Deuling @ 2007-10-22 10:00 UTC (permalink / raw)
To: GDB Patches; +Cc: Ulrich Weigand
[-- Attachment #1: Type: text/plain, Size: 271 bytes --]
Hi,
this patch gets rid of some of the current_gdbarch's in reggroups.c
Is this ok to commit?
ChangeLog:
* reggroups.c (default_register_reggroup_p): Replace current_gdbarch
by gdbarch.
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
[-- Attachment #2: diff-reggroups --]
[-- Type: text/plain, Size: 1023 bytes --]
diff -urpN src/gdb/reggroups.c dev/gdb/reggroups.c
--- src/gdb/reggroups.c 2007-08-23 20:08:36.000000000 +0200
+++ dev/gdb/reggroups.c 2007-10-22 11:36:15.000000000 +0200
@@ -157,8 +157,8 @@ default_register_reggroup_p (struct gdba
int float_p;
int raw_p;
- if (gdbarch_register_name (current_gdbarch, regnum) == NULL
- || *gdbarch_register_name (current_gdbarch, regnum) == '\0')
+ if (gdbarch_register_name (gdbarch, regnum) == NULL
+ || *gdbarch_register_name (gdbarch, regnum) == '\0')
return 0;
if (group == all_reggroup)
return 1;
@@ -166,7 +166,7 @@ default_register_reggroup_p (struct gdba
float_p = TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT;
/* FIXME: cagney/2003-04-13: Can't yet use gdbarch_num_regs
(gdbarch), as not all architectures are multi-arch. */
- raw_p = regnum < gdbarch_num_regs (current_gdbarch);
+ raw_p = regnum < gdbarch_num_regs (gdbarch);
if (group == float_reggroup)
return float_p;
if (group == vector_reggroup)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [rfc] [4/5] Get rid of current_gdbarch in reggroups.c
2007-10-22 10:00 [rfc] [4/5] Get rid of current_gdbarch in reggroups.c Markus Deuling
@ 2007-10-22 14:40 ` Ulrich Weigand
0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Weigand @ 2007-10-22 14:40 UTC (permalink / raw)
To: Markus Deuling; +Cc: GDB Patches
Markus Deuling wrote:
> float_p = TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT;
> /* FIXME: cagney/2003-04-13: Can't yet use gdbarch_num_regs
> (gdbarch), as not all architectures are multi-arch. */
> - raw_p = regnum < gdbarch_num_regs (current_gdbarch);
> + raw_p = regnum < gdbarch_num_regs (gdbarch);
I've also removed this FIXME, as this is now obsolete :-)
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] 2+ messages in thread
end of thread, other threads:[~2007-10-22 14:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-22 10:00 [rfc] [4/5] Get rid of current_gdbarch in reggroups.c Markus Deuling
2007-10-22 14:40 ` Ulrich Weigand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox