rust/tests/debuginfo
Matthias Krüger dea325e583
Rollup merge of #128627 - khuey:DUMMY_SP-line-no, r=nnethercote
Special case DUMMY_SP to emit line 0/column 0 locations on DWARF platforms.

Line 0 has a special meaning in DWARF. From the version 5 spec:

    The compiler may emit the value 0 in cases
    where an instruction cannot be attributed to any
    source line.

DUMMY_SP spans cannot be attributed to any line. However, because rustc internally stores line numbers starting at zero, lookup_debug_loc() adjusts every line number by one. Special casing DUMMY_SP to actually emit line 0 ensures rustc communicates to the debugger that there's no meaningful source code for this instruction, rather than telling the debugger to jump to line 1 randomly.
2024-08-21 18:15:01 +02:00
..
2024-08-18 17:41:01 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 16:58:26 -04:00
2024-08-19 17:10:43 -07:00
2024-08-18 16:58:26 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:41:01 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 16:58:26 -04:00
2024-08-18 16:58:26 -04:00
2024-08-18 16:58:26 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 12:39:07 -04:00
2024-08-18 12:39:07 -04:00
2024-08-18 17:41:01 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-03-12 15:41:06 +01:00
2024-03-15 20:30:45 +01:00
2024-08-18 12:39:07 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 12:39:07 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 16:58:26 -04:00
2024-08-18 12:39:07 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 16:58:26 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 12:39:07 -04:00
2024-08-18 17:00:33 -04:00
2024-08-18 17:00:33 -04:00