aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/lynx-low.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-12-17 11:02:47 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-12-17 11:02:47 +0000
commitab8f6ca9c6b0f5e0c9cc6bcd00582144283d7017 (patch)
treecfa2c7bd8b680784919bf0d3cf0e76cd8bcbfb6b /gdb/gdbserver/lynx-low.c
parent78cbc0240c66d43cad111ad577f6b654f92cec37 (diff)
downloadgdb-ab8f6ca9c6b0f5e0c9cc6bcd00582144283d7017.zip
gdb-ab8f6ca9c6b0f5e0c9cc6bcd00582144283d7017.tar.gz
gdb-ab8f6ca9c6b0f5e0c9cc6bcd00582144283d7017.tar.bz2
remove unused variable in lynx_create_inferior.
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_create_inferior): Delete variable new_process.
Diffstat (limited to 'gdb/gdbserver/lynx-low.c')
-rw-r--r--gdb/gdbserver/lynx-low.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbserver/lynx-low.c b/gdb/gdbserver/lynx-low.c
index 2f81ee7..cbdc085 100644
--- a/gdb/gdbserver/lynx-low.c
+++ b/gdb/gdbserver/lynx-low.c
@@ -293,7 +293,6 @@ lynx_ptrace (int request, ptid_t ptid, int addr, int data, int addr2)
static int
lynx_create_inferior (char *program, char **allargs)
{
- struct process_info *new_process;
int pid;
lynx_debug ("lynx_create_inferior ()");
@@ -318,7 +317,7 @@ lynx_create_inferior (char *program, char **allargs)
_exit (0177);
}
- new_process = add_process (pid, 0);
+ add_process (pid, 0);
/* Do not add the process thread just yet, as we do not know its tid.
We will add it later, during the wait for the STOP event corresponding
to the lynx_ptrace (PTRACE_TRACEME) call above. */