From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5b19267799290e77,start X-Google-Attributes: gidfee84,public From: Rob Kirkbride Subject: Kernel debugger Date: 1997/05/21 Message-ID: <4dEahEAqLygzEwyc@RK-COMP.DEMON.CO.UK>#1/1 X-Deja-AN: 242873561 Distribution: world X-NNTP-Posting-Host: rk-comp.demon.co.uk [194.222.52.8] Organization: Bedrock Corp. Reply-To: Rob Kirkbride Newsgroups: comp.unix.osf.osf1 I have been trying with not much success to write an extention to kdbx on osf3.2g to show me details of the thread map. I have tried calling the various read_sym, read_sym_val etc. calls using "thread", "thread_map" etc. Sometimes the calls work but when I try and use a read_field_vals (which apparently works) the fields that is returns just appear to be rubbish. I am sure I missing something / doing something daft but I can't fathom it and unfortunately the examples in the kernel debugging manual are a bit spartan. One of my ultimate aims is to print out the stack pointer for each thread within a given process which I can use to tune the stack sizes. If there is an easier way of doing this I would be interested to know, but I would also like to able to read the thread map within a kernel extension if possible. I realise I can do a certain amount by using a thread_action from the command line, but I would like to do some analysis and it would be useful to have this in a C program. Any help would be much appreciated, Rob -- Rob Kirkbride rob@rk-comp.demon.co.uk