[RFC/commit 3/3] Delete unused variable in lynx_resume
Joel Brobecker
brobecker@adacore.com
Mon Dec 17 10:59:00 GMT 2012
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
More information about the Gdb-patches
mailing list