diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-02 23:32:24 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-02 23:32:24 +0100 |
commit | 5d59a44c21a14ed30034c27681f76efe1856b993 (patch) | |
tree | 43b75d1339d535ab1ee38d47a62876f625e425e7 /sys/src/cmd/python/Modules/_sqlite/prepare_protocol.c | |
parent | a8152739604244b0ab77c339955d799e63df5ce8 (diff) |
pc, pc64: clear debug watchpoint registers on exec and exit
when a process does an exec syscall, procsetup() is called and
we have to disable the debug watchpoint registers. just clearing
p->dr is not enougth as we are not going thru a procsave() and
procrestore() cycle which would disable and reload the saved
debug registers.
instead of clearing debug registers in procfork(), we should
clear the saved debug registers before a process goes to die
(pexit() calls sched() with up->state = Moribund) as the Proc
structure can get reused for kernel processes (kproc) which
never call procfork() and would therefore have debug registers
loaded.
Diffstat (limited to 'sys/src/cmd/python/Modules/_sqlite/prepare_protocol.c')
0 files changed, 0 insertions, 0 deletions