PR/52799: Martin Husemann: Correct sysctl args to find executable.
This commit is contained in:
parent
57f560bc12
commit
dd3d2dc091
6
external/gpl3/gdb/dist/gdb/nbsd-nat.c
vendored
6
external/gpl3/gdb/dist/gdb/nbsd-nat.c
vendored
@ -50,9 +50,9 @@ nbsd_pid_to_exec_file (struct target_ops *self, int pid)
|
||||
int mib[4];
|
||||
|
||||
mib[0] = CTL_KERN;
|
||||
mib[1] = KERN_PROC;
|
||||
mib[2] = KERN_PROC_PATHNAME;
|
||||
mib[3] = pid;
|
||||
mib[1] = KERN_PROC_ARGS;
|
||||
mib[2] = pid;
|
||||
mib[3] = KERN_PROC_PATHNAME;
|
||||
buflen = sizeof buf;
|
||||
if (sysctl (mib, 4, buf, &buflen, NULL, 0) == 0)
|
||||
return buf;
|
||||
|
Loading…
Reference in New Issue
Block a user