aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2013-01-07 11:38:35 +0000
committerJoel Brobecker <brobecker@gnat.com>2013-01-07 11:38:35 +0000
commit7fda33ae8d596863ddfbf1521934bb23675c9390 (patch)
tree713416f30e05467d8d26f3d6527ecccd3080a75d /gdb
parentb967eb24ede0a3a3bf3f51b9436f68143817f532 (diff)
downloadgdb-7fda33ae8d596863ddfbf1521934bb23675c9390.zip
gdb-7fda33ae8d596863ddfbf1521934bb23675c9390.tar.gz
gdb-7fda33ae8d596863ddfbf1521934bb23675c9390.tar.bz2
Delete unused variable in lynx_resume
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Delete variable ret.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/lynx-low.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 0c4a286..4aeb3f9 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-07 Joel Brobecker <brobecker@adacore.com>
+
+ * lynx-low.c (lynx_resume): Delete variable ret.
+
2013-01-01 Joel Brobecker <brobecker@adacore.com>
* gdbreplay.c (gdbreplay_version): Update copyright year.
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c
index 36bfd6d..9aa0140 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdb/gdbserver/lynx-low.c
@@ -354,10 +354,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. */