]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
linux-nat: Remove unused parameter
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 3 Jun 2017 19:24:00 +0000 (21:24 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Sat, 3 Jun 2017 19:24:00 +0000 (21:24 +0200)
The parameter "first" of linux_nat_post_attach_wait is unused, remove
it.

gdb/ChangeLog:

* linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
parameter.
(linux_nat_attach): Adjust call to linux_nat_post_attach_wait.

gdb/ChangeLog
gdb/linux-nat.c

index ed063fc00cecc1bdada76e00195124fbd00d246f..af13bf268d4c02b7200c791edb256117fed8f1c2 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-03  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
+       parameter.
+       (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
+
 2017-06-02  Simon Marchi  <simon.marchi@ericsson.com>
 
        * event-loop.c (poll_timers): Unallocate timer using delete
index b008df0ac06cf8e3d81d22ce251182f0576a876f..8b29245c3d10476f891196f8d7b1d0a4d42ef748 100644 (file)
@@ -1045,7 +1045,7 @@ exit_lwp (struct lwp_info *lp)
    Returns a wait status for that LWP, to cache.  */
 
 static int
-linux_nat_post_attach_wait (ptid_t ptid, int first, int *signalled)
+linux_nat_post_attach_wait (ptid_t ptid, int *signalled)
 {
   pid_t new_pid, pid = ptid_get_lwp (ptid);
   int status;
@@ -1245,7 +1245,7 @@ linux_nat_attach (struct target_ops *ops, const char *args, int from_tty)
   /* Add the initial process as the first LWP to the list.  */
   lp = add_initial_lwp (ptid);
 
-  status = linux_nat_post_attach_wait (lp->ptid, 1, &lp->signalled);
+  status = linux_nat_post_attach_wait (lp->ptid, &lp->signalled);
   if (!WIFSTOPPED (status))
     {
       if (WIFEXITED (status))