This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC/commit 3/3] Delete unused variable in lynx_resume
- 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:11 -0500
- Subject: [RFC/commit 3/3] Delete unused variable in lynx_resume
- References: <1355741951-16867-1-git-send-email-brobecker@adacore.com>
Hello,
This patch eliminates a local variable that we never use.
It is an RFC, because I couldn't determine whether there was
something we were expected to do if the ptrace request failed
- which has never happened to us so far, AFAICT.
gdb/gdbserver/ChangeLog:
* lynx-low.c (lynx_resume): Delete variable ret.
Tested on ppc-lynx5. OK to commit, or is there some error handling
protocol?
Thanks,
--
Joel
---
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 29f5e62..766843b 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdb/gdbserver/lynx-low.c
@@ -351,10 +351,9 @@ lynx_resume (struct thread_resume *resume_info, size_t n)
const int request = (resume_info[0].kind == resume_step
? PTRACE_SINGLESTEP : PTRACE_CONT);
const int signal = resume_info[0].sig;
- int ret;
regcache_invalidate ();
- ret = lynx_ptrace (request, inferior_ptid, 1, signal, 0);
+ lynx_ptrace (request, inferior_ptid, 1, signal, 0);
}
/* Resume the execution of the given PTID. */
--
1.7.0.4