cvs commit: src/sys/ddb db_command.c

Robert Watson rwatson at FreeBSD.org
Sun Oct 2 14:32:40 PDT 2005


On Sun, 2 Oct 2005, Robert Watson wrote:

> rwatson     2005-10-02 11:41:12 UTC
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/ddb              db_command.c
>  Log:
>  Add a DDB "traceall" function, which stack traces all known process
>  threads.  This is quite useful if generating a debug log for post-mortem
>  by another developer, in which case the person at the console may not
>  know which threads are of interest.  The output of this can be quite
>  long.
>
>  Discussed with: kris
>  MFC after:      3 days

I wasn't sure how to hook up the DDB paging code to it, so didn't.  Or at 
least, I tried what seemed obvious (copy and paste from db_ps.c) and it 
didn't work for me.  If someone else would like to hook up the DDB pager, 
that would be great.

BTW, when I glanced at the DDB paging code, I noticed that &quit is passed 
into the setup routine, but didn't actually see a teardown.  This is 
probably because I didn't look very hard, but if it's actually the case 
that &quit is never unregistered, that might result in stack stomping...?

Robert N M Watson


More information about the cvs-src mailing list