[rfc] Remove unnecessary variables from arch-utils

Markus Deuling
2008-02-15T08:59:51Z

[-- 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,