diff options
Diffstat (limited to 'gdb/gdbserver/linux-low.c')
-rw-r--r-- | gdb/gdbserver/linux-low.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 984464f..701f3e8 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -1255,7 +1255,7 @@ last_thread_of_process_p (int pid) { bool seen_one = false; - thread_info *thread = find_thread (pid, [&] (thread_info *thread) + thread_info *thread = find_thread (pid, [&] (thread_info *thr_arg) { if (!seen_one) { @@ -1811,10 +1811,10 @@ status_pending_p_callback (thread_info *thread, ptid_t ptid) struct lwp_info * find_lwp_pid (ptid_t ptid) { - thread_info *thread = find_thread ([&] (thread_info *thread) + thread_info *thread = find_thread ([&] (thread_info *thr_arg) { int lwp = ptid.lwp () != 0 ? ptid.lwp () : ptid.pid (); - return thread->id.lwp () == lwp; + return thr_arg->id.lwp () == lwp; }); if (thread == NULL) @@ -1845,9 +1845,9 @@ iterate_over_lwps (ptid_t filter, iterate_over_lwps_ftype callback, void *data) { - thread_info *thread = find_thread (filter, [&] (thread_info *thread) + thread_info *thread = find_thread (filter, [&] (thread_info *thr_arg) { - lwp_info *lwp = get_thread_lwp (thread); + lwp_info *lwp = get_thread_lwp (thr_arg); return callback (lwp, data); }); @@ -7032,16 +7032,16 @@ linux_qxfer_libraries_svr4 (const char *annex, unsigned char *readbuf, { const char *sep; CORE_ADDR *addrp; - int len; + int name_len; sep = strchr (annex, '='); if (sep == NULL) break; - len = sep - annex; - if (len == 5 && startswith (annex, "start")) + name_len = sep - annex; + if (name_len == 5 && startswith (annex, "start")) addrp = &lm_addr; - else if (len == 4 && startswith (annex, "prev")) + else if (name_len == 4 && startswith (annex, "prev")) addrp = &lm_prev; else { |