diff options
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r-- | gdb/auxv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c index 879d7e1fc54..437040a8d8c 100644 --- a/gdb/auxv.c +++ b/gdb/auxv.c @@ -48,7 +48,7 @@ procfs_xfer_auxv (gdb_byte *readbuf, int fd; LONGEST n; - pathname = xstrprintf ("/proc/%d/auxv", PIDGET (inferior_ptid)); + pathname = xstrprintf ("/proc/%d/auxv", ptid_get_pid (inferior_ptid)); fd = gdb_open_cloexec (pathname, writebuf != NULL ? O_WRONLY : O_RDONLY, 0); xfree (pathname); if (fd < 0) |