Linux-kernel mailing list archive 2000-40,: Re: How to get thread context?

# Re: How to get thread context?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 1 Oct 2000 16:51:14 +0100 (BST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Ernesto Vargas: "RE: Soft-Updates for Linux ?"
- Previous message: bert hubert: "Re: Soft-Updates for Linux ?"

> Does anyone know how to get thread context?
> Ie, can I look at the register state of a non-running process or thread
> from user space?

ptrace is the syscall you need. Have a play with gdb's 'attach pid' command

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

- Next message: Ernesto Vargas: "RE: Soft-Updates for Linux ?"
- Previous message: bert hubert: "Re: Soft-Updates for Linux ?"