Commit 1d8f9ea
committed
feat: add build-ID based debug file lookup
On Ubuntu/Debian, debug packages (e.g. libc6-dbg) install debug files
at /usr/lib/debug/.build-id/XX/YYYYYY.debug — not at the paths checked
by .gnu_debuglink. The binary has a .note.gnu.build-id section but the
debuglink search paths are empty, so the previous implementation could
never find the debug file.
Now tries build-ID lookup first, then falls back to .gnu_debuglink.
The search root is parameterized internally so both mechanisms are
independently testable with a tempdir.1 parent ad25e2a commit 1d8f9ea
2 files changed
Lines changed: 92 additions & 9 deletions
Submodule instrument-hooks updated 31 files
- .clang-format+4-4
- .pre-commit-config.yaml+1-9
- AGENTS.md-85
- CLAUDE.md-1
- Justfile+1-9
- build.zig-18
- dist/core.c+10.7k-39.7k
- example/CMakeLists.txt+2-4
- includes/core.h+4-18
- scripts/release.py+2-27
- scripts/stub.c+23-99
- src/c.zig+14-62
- src/environment/linked_libraries/elf_view.zig-222
- src/environment/linked_libraries/root.zig-155
- src/environment/linked_libraries/testdata/test_lib.c-7
- src/environment/linked_libraries/testdata/test_lib.ver-9
- src/environment/root.zig-333
- src/helpers/valgrind_wrapper.c+15-15
- src/instrument_hooks.zig-25
- src/instruments/fifo_instrument.zig+2-2
- src/instruments/root.zig+3-3
- src/instruments/valgrind.zig+1-1
- src/logger.zig+1-4
- src/root.zig-3
- src/runner_fifo.zig+3-3
- src/shared.zig+2-2
- src/tests/deserialize_rust/Cargo.lock-308
- src/tests/deserialize_rust/Cargo.toml-14
- src/tests/deserialize_rust/create_serialized.rs+16-8
- src/tests/deserialize_rust/serialized.zig+258-18
- src/tests/runner.zig+2-9
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
200 | 197 | | |
201 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
202 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
203 | 243 | | |
204 | 244 | | |
205 | 245 | | |
206 | 246 | | |
207 | 247 | | |
208 | 248 | | |
209 | 249 | | |
210 | | - | |
| 250 | + | |
211 | 251 | | |
212 | 252 | | |
213 | 253 | | |
| |||
227 | 267 | | |
228 | 268 | | |
229 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
0 commit comments