diff options
author | Joel Brobecker <brobecker@gnat.com> | 2012-12-17 11:03:00 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2012-12-17 11:03:00 +0000 |
commit | 52d4cbd8055da09b56f655b8f80c3961b5da6d7c (patch) | |
tree | 0e0dbb34a0de231f9024477864738c3b8440811c | |
parent | ab8f6ca9c6b0f5e0c9cc6bcd00582144283d7017 (diff) | |
download | gdb-52d4cbd8055da09b56f655b8f80c3961b5da6d7c.zip gdb-52d4cbd8055da09b56f655b8f80c3961b5da6d7c.tar.gz gdb-52d4cbd8055da09b56f655b8f80c3961b5da6d7c.tar.bz2 |
Delete unused variable in lynx_attach.
gdb/gdbserver/ChangeLog:
* lynx-low.c (lynx_attach): Delete variable new_process.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/lynx-low.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e9ae379..e841c78 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,9 @@ 2012-12-17 Joel Brobecker <brobecker@adacore.com> + * lynx-low.c (lynx_attach): Delete variable new_process. + +2012-12-17 Joel Brobecker <brobecker@adacore.com> + * lynx-low.c (lynx_create_inferior): Delete variable new_process. 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; |