Module Name: src
Committed By: christos
Date: Sun Dec 10 05:36:25 UTC 2017
Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c
Log Message:
PR/52799: Martin Husemann: Correct sysctl args to find executable.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/nbsd-nat.c
diff -u src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.4 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.5
--- src/external/gpl3/gdb/dist/gdb/nbsd-nat.c:1.4 Fri Dec 1 17:22:40 2017
+++ src/external/gpl3/gdb/dist/gdb/nbsd-nat.c Sun Dec 10 00:36:25 2017
@@ -50,9 +50,9 @@ nbsd_pid_to_exec_file (struct target_ops
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;