Path to executable of current process?
- From: "Michael B Allen" <ioplex@xxxxxxxxx>
- Date: Thu, 19 Jul 2007 20:25:27 -0400
Hello,
I'm looking for an example that uses kvm_getargv but from just
googling around I can't seem to find an example. Can someone give me a
pointer?
Actually what I'm *really* trying to do is port some code that invokes
GDB to do a backtrace and I need to give GDB the path to the
executable of the current process (e.g. on linux this is
/proc/<pid>/exe) and the pid of the process to trace (easy - getpid).
The first argument is trickey since FreeBSD frequently does not have a
/proc filesystem. So it seems kvm_getargv should have this path no?
Mike
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Path to executable of current process?
- From: Steve Watt
- Re: Path to executable of current process?
- From: Michael B Allen
- Re: Path to executable of current process?
- Prev by Date: Re: change control on FreeBSD servers
- Next by Date: Re: Path to executable of current process?
- Previous by thread: change control on FreeBSD servers
- Next by thread: Re: Path to executable of current process?
- Index(es):
Relevant Pages
|
|