mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-05 19:29:35 +00:00
Delete unused variable in lynx_attach.
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_attach): Delete variable new_process.
This commit is contained in:
parent
ab8f6ca9c6
commit
52d4cbd805
@ -1,3 +1,7 @@
|
||||
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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user