commit | 1e3ce32a4fadb58230bca4f16baf8152579dd3d0 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <dvlasenk@redhat.com> | Mon Dec 22 19:14:47 2008 +0000 |
committer | Denys Vlasenko <dvlasenk@redhat.com> | Mon Dec 22 19:14:47 2008 +0000 |
tree | d1bd7dd3b190b7379d3d4250c8157724559206e9 | |
parent | 732d1bf4d4aaff68eff1c41d8900264637a57dfe [diff] |
Make strace correctly handle SIGTRAP produced by e.g. kill(2) and by trapping instruction. * defs.h: Add sigtrap80 field to struct tcb. * strace.c (alloc_tcb): Initialize it to SIGTRAP. (detach): Use tcp->sigtrap80 instead of SIGTRAP constant. (trace): Attempt to set PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEEXEC options on each newly attached process, distinquish between SIGTRAP and (SIGTRAP | 0x80) stops. Fixes RH#162774 "strace ignores int3 SIGTRAP".