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
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD whoever-brings-the-night.aprisoft.de 6.99.11 NetBSD 6.99.11 
(WHOEVER) #2: Sun Sep 9 23:30:41 CEST 2012 
martin%emmas.aprisoft.de@localhost:/usr/src/sys/arch/sparc64/compile/WHOEVER 
sparc64
Architecture: sparc64
Machine: sparc64
>Description:

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).

>How-To-Repeat:
Read the source

>Fix:
Provide p_slflag in struct kinfo_proc2.



Home | Main Index | Thread Index | Old Index