Commit 5ec6024
x86: skip printing args when unwinding stack
On 32-bit x86, it was supposed to print the first argument to
the function during stack trace. However, it only works when
code optimizations are totally disabled (i.e. -O0). As such,
printing the args is not meaningful to aid with debugging.
So change it to simply print the function address, the same
as x86 64-bit.
Also, since unwind_stack() has exactly one caller, make it
ALWAYS_INLINE to skip a function call.
Signed-off-by: Daniel Leung <[email protected]>1 parent 968f674 commit 5ec6024
1 file changed
+6
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 127 | | |
133 | 128 | | |
134 | | - | |
| 129 | + | |
135 | 130 | | |
136 | 131 | | |
137 | 132 | | |
| |||
181 | 176 | | |
182 | 177 | | |
183 | 178 | | |
184 | | - | |
185 | | - | |
| 179 | + | |
186 | 180 | | |
187 | 181 | | |
188 | 182 | | |
| |||
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
198 | | - | |
| 192 | + | |
199 | 193 | | |
200 | 194 | | |
201 | 195 | | |
202 | 196 | | |
203 | 197 | | |
204 | | - | |
| 198 | + | |
205 | 199 | | |
206 | 200 | | |
207 | 201 | | |
208 | 202 | | |
209 | 203 | | |
210 | 204 | | |
211 | | - | |
| 205 | + | |
212 | 206 | | |
213 | 207 | | |
214 | 208 | | |
215 | 209 | | |
216 | 210 | | |
217 | | - | |
218 | | - | |
| 211 | + | |
219 | 212 | | |
220 | 213 | | |
221 | 214 | | |
| |||
0 commit comments