Commit a55e03a
authored
[linux] fix fatal error on user-invoked
## Purpose
A `SIGTRAP` in the inferior process originating from a user process
other than ds2 is not an error.
## Overview
* Treat `SIGTRAP` with a code <= 0 as non-fatal as long as it originates
from a process other than ds2.
* Leave the fatal error for unrecognized signal codes > 0 or if the
signal originates from the ds2 process.
* Re-enable the lldb test that was failing due to this issue.
## Problem Details
`SIGTRAP` with a code <= 0 indicates it originates from a user process.
It should not be treated as a fatal error if it comes from a process
other than ds2.
## Validation
The re-enabled lldb test now passes consistently locally on Android.SIGTRAP
1 parent 3a08337 commit a55e03a
File tree
2 files changed
+10
-5
lines changed- Sources/Target/Linux
- Support/Testing/Excluded/ds2
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| |||
111 | 108 | | |
112 | 109 | | |
113 | 110 | | |
114 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
0 commit comments