aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2017-06-03 21:24:00 +0200
committerSimon Marchi <simon.marchi@ericsson.com>2017-06-03 21:24:00 +0200
commit22827c51338ce25574ed7b204a2e5bd40f45bdad (patch)
tree046541c30126ca632ab99896d7a7d9a6943be06b /gdb
parent0af6b29b9dcd8ff2c34d07a76e3416acf3758bfc (diff)
downloadgdb-22827c51338ce25574ed7b204a2e5bd40f45bdad.zip
gdb-22827c51338ce25574ed7b204a2e5bd40f45bdad.tar.gz
gdb-22827c51338ce25574ed7b204a2e5bd40f45bdad.tar.bz2
linux-nat: Remove unused parameter
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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/linux-nat.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ed063fc..af13bf2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index b008df0..8b29245 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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))