This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Remove duplicate target creation.
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 15 Aug 2008 12:09:51 +0400
- Subject: [ob] Remove duplicate target creation.
I've noticed ia64-linux-nat.c calls linux_target twice, without
using the result of the first call. This is apparently a result
of some copy-paste error, so I've checked in the below as obvious.
- Volodya
* ia64-linux.nat (_initialize_ia64_linux_nat): Don't
call linux_target twice.
---
gdb/ia64-linux-nat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c
index dc39935..45befb0 100644
--- a/gdb/ia64-linux-nat.c
+++ b/gdb/ia64-linux-nat.c
@@ -810,7 +810,7 @@ void _initialize_ia64_linux_nat (void);
void
_initialize_ia64_linux_nat (void)
{
- struct target_ops *t = linux_target ();
+ struct target_ops *t;
/* Fill in the generic GNU/Linux methods. */
t = linux_target ();
--
1.5.3.5