Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb PR/52799: Martin Husemann: Correc...
details: https://anonhg.NetBSD.org/src/rev/5ea52ed0807e
branches: trunk
changeset: 358065:5ea52ed0807e
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 10 05:36:25 2017 +0000
description:
PR/52799: Martin Husemann: Correct sysctl args to find executable.
diffstat:
external/gpl3/gdb/dist/gdb/nbsd-nat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r dc46a5e19831 -r 5ea52ed0807e external/gpl3/gdb/dist/gdb/nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-nat.c Sun Dec 10 03:08:32 2017 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-nat.c Sun Dec 10 05:36:25 2017 +0000
@@ -50,9 +50,9 @@
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;
Home |
Main Index |
Thread Index |
Old Index