NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/46933: Can not find out wether a process is debugged

>Number:         46933
>Category:       kern
>Synopsis:       Can not find out wether a process is debugged
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 10 09:15:00 +0000 2012
>Originator:     Martin Husemann
>Release:        NetBSD 6.99.11
The NetBSD Foundation, Inc.
System: NetBSD 6.99.11 NetBSD 6.99.11 
(WHOEVER) #2: Sun Sep 9 23:30:41 CEST 2012 
Architecture: sparc64
Machine: sparc64

For reasons that do not matter here I am trying to write a function that tells
the caller, if the process is being debugged.

This turns out to be harder as I initially thought: the PSL_TRACED flag has
been moved from struct proc:p_flag to :p_slflag. Only the former is copied
over to struct kinfo_proc2.

We need to fix that (by adding a p_slflag field in kinfo2?), then update the
code in ps(1) and fix its manual page (which still documents P_TRACED to be
available in the process flags).

Read the source

Provide p_slflag in struct kinfo_proc2.

Home | Main Index | Thread Index | Old Index