summaryrefslogtreecommitdiff
path: root/sys/src/cmd/python/Modules/_sqlite/prepare_protocol.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-12-02 23:32:24 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-12-02 23:32:24 +0100
commit5d59a44c21a14ed30034c27681f76efe1856b993 (patch)
tree43b75d1339d535ab1ee38d47a62876f625e425e7 /sys/src/cmd/python/Modules/_sqlite/prepare_protocol.c
parenta8152739604244b0ab77c339955d799e63df5ce8 (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