summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/test/unit/test_crash_win64cfi_unknown_op.js
blob: cdcd8c2aad08be06890fc68837ea42f0e37fc712 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
add_task(async function run_test() {
  // In the case of an unknown unwind code or missing CFI,
  // make certain we can still walk the stack via stack scan. The crashing
  // function places NO_MANS_LAND on the stack so it will get picked up via
  // stack scan.
  await do_x64CFITest("CRASH_X64CFI_UNKNOWN_OPCODE", [
    { symbol: "CRASH_X64CFI_UNKNOWN_OPCODE", trust: "context" },
    // Trust may either be scan or frame_pointer; we don't really care as
    // long as the address is expected.
    { symbol: "CRASH_X64CFI_NO_MANS_LAND", trust: null },
  ]);
});