This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[rfc] Remove unnecessary variables from arch-utils
- From: Markus Deuling <deuling at de dot ibm dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Fri, 15 Feb 2008 09:57:26 +0100
- Subject: [rfc] Remove unnecessary variables from arch-utils
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
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,