This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit 2/3] Delete unused variable in lynx_attach.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Mon, 17 Dec 2012 05:59:10 -0500
- Subject: [commit 2/3] Delete unused variable in lynx_attach.
- References: <1355741951-16867-1-git-send-email-brobecker@adacore.com>
Hello,
Same as in lynx_create_inferior; it eliminates a local variable
that we never use.
gdb/gdbserver/ChangeLog:
* lynx-low.c (lynx_attach): Delete variable new_process.
Tested on ppc-lynx5. Will commit momentarily.
---
gdb/gdbserver/lynx-low.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c
index cbdc085..29f5e62 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdb/gdbserver/lynx-low.c
@@ -329,14 +329,13 @@ lynx_create_inferior (char *program, char **allargs)
static int
lynx_attach (unsigned long pid)
{
- struct process_info *new_process;
ptid_t ptid = lynx_ptid_build (pid, 0);
if (lynx_ptrace (PTRACE_ATTACH, ptid, 0, 0, 0) != 0)
error ("Cannot attach to process %lu: %s (%d)\n", pid,
strerror (errno), errno);
- new_process = add_process (pid, 1);
+ add_process (pid, 1);
add_thread (ptid, NULL);
return 0;
--
1.7.0.4