mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
Remove ptid_lwp_p
This removes ptid_lwp_p in favor of the ptid_t::lwp_p method. gdb/ChangeLog 2018-07-03 Tom Tromey <tom@tromey.com> * common/ptid.c (ptid_lwp_p): Remove. * common/ptid.h (ptid_lwp_p): Don't declare. * fbsd-nat.c: Update. * linux-nat.c: Update. * nat/linux-procfs.c: Update. * nat/x86-linux-dregs.c: Update. * sol-thread.c: Update.
This commit is contained in:
@ -240,7 +240,7 @@ linux_proc_tid_get_name (ptid_t ptid)
|
||||
char comm_path[100];
|
||||
const char *comm_val;
|
||||
pid_t pid = ptid.pid ();
|
||||
pid_t tid = ptid_lwp_p (ptid) ? ptid.lwp () : ptid.pid ();
|
||||
pid_t tid = ptid.lwp_p () ? ptid.lwp () : ptid.pid ();
|
||||
|
||||
xsnprintf (comm_path, sizeof (comm_path),
|
||||
"/proc/%ld/task/%ld/comm", (long) pid, (long) tid);
|
||||
|
Reference in New Issue
Block a user