()
| 376 | #[test] |
| 377 | #[ignore] |
| 378 | pub fn dwarf_spilled_frame_base() -> Result<()> { |
| 379 | let output = lldb_with_script( |
| 380 | &[ |
| 381 | "-Ccache=n", |
| 382 | "-Oopt-level=0", |
| 383 | "-Ddebug-info", |
| 384 | DWARF_SPILLED_FRAME_BASE, |
| 385 | ], |
| 386 | r#"b dwarf_spilled_frame_base.c:13 |
| 387 | r |
| 388 | fr v i |
| 389 | n |
| 390 | fr v i |
| 391 | n |
| 392 | fr v i |
| 393 | n |
| 394 | fr v i |
| 395 | n |
| 396 | fr v i |
| 397 | n |
| 398 | fr v i |
| 399 | c |
| 400 | "#, |
| 401 | )?; |
| 402 | |
| 403 | // Check that if the frame base (shadow frame pointer) local |
| 404 | // is spilled, we can still read locals that reference it. |
| 405 | check_lldb_output( |
| 406 | &output, |
| 407 | r#" |
| 408 | check: i = 0 |
| 409 | check: i = 1 |
| 410 | check: i = 1 |
| 411 | check: i = 1 |
| 412 | check: i = 1 |
| 413 | check: i = 1 |
| 414 | check: exited with status |
| 415 | "#, |
| 416 | )?; |
| 417 | Ok(()) |
| 418 | } |
| 419 | |
| 420 | #[test] |
| 421 | #[ignore] |
nothing calls this directly
no test coverage detected