Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [rfc] Remove unnecessary variables from arch-utils
@ 2008-02-15  8:59 Markus Deuling
  2008-02-15 17:41 ` Ulrich Weigand
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Deuling @ 2008-02-15  8:59 UTC (permalink / raw)
  To: GDB Patches; +Cc: Ulrich Weigand

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

Hi,

this patch removes two unnecessary variables from gdbarch_from_bfd in arch-utils.

Ok to commit ?


ChangeLog:

	* arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
	variables. 

Regards,
Markus

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


[-- Attachment #2: diff-arch-utils --]
[-- Type: text/plain, Size: 468 bytes --]

diff -urpN src/gdb/arch-utils.c dev/gdb/arch-utils.c
--- src/gdb/arch-utils.c	2008-01-01 23:53:09.000000000 +0100
+++ dev/gdb/arch-utils.c	2008-02-15 08:29:34.000000000 +0100
@@ -454,8 +454,6 @@ gdbarch_update_p (struct gdbarch_info in
 struct gdbarch *
 gdbarch_from_bfd (bfd *abfd)
 {
-  struct gdbarch *old_gdbarch = current_gdbarch;
-  struct gdbarch *new_gdbarch;
   struct gdbarch_info info;
 
   /* If we call gdbarch_find_by_info without filling in info.abfd,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [rfc] Remove unnecessary variables from arch-utils
  2008-02-15  8:59 [rfc] Remove unnecessary variables from arch-utils Markus Deuling
@ 2008-02-15 17:41 ` Ulrich Weigand
  2008-02-18 10:57   ` Markus Deuling
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Weigand @ 2008-02-15 17:41 UTC (permalink / raw)
  To: Markus Deuling; +Cc: GDB Patches

Markus Deuling wrote:

> 	* arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
> 	variables. 

This is OK, thanks.

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] 3+ messages in thread

* Re: [rfc] Remove unnecessary variables from arch-utils
  2008-02-15 17:41 ` Ulrich Weigand
@ 2008-02-18 10:57   ` Markus Deuling
  0 siblings, 0 replies; 3+ messages in thread
From: Markus Deuling @ 2008-02-18 10:57 UTC (permalink / raw)
  To: Ulrich Weigand; +Cc: GDB Patches

Ulrich Weigand schrieb:
> Markus Deuling wrote:
> 
>> 	* arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
>> 	variables. 
> 
> This is OK, thanks.
> 
> Bye,
> Ulrich
> 

Committed, thank you !

Regards,
Markus


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-18 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-15  8:59 [rfc] Remove unnecessary variables from arch-utils Markus Deuling
2008-02-15 17:41 ` Ulrich Weigand
2008-02-18 10:57   ` Markus Deuling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox