Skip to content

Commit d9d1e16

Browse files
committed
explain the trap
1 parent 5891192 commit d9d1e16

File tree

1 file changed

+2
-0
lines changed
  • lldb/test/API/linux/aarch64/fpmr

1 file changed

+2
-0
lines changed

lldb/test/API/linux/aarch64/fpmr/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ int main(int argc, char *argv[]) {
3737
uint64_t new_fpmr = get_fpmr(); // Set break point at this line.
3838
uint64_t expected_fpmr = ((uint64_t)0b010101 << 32) | (uint64_t)0b010;
3939

40+
// If the debugger failed to update the value, exit uncleanly.
41+
// This also allows you to run this program standalone to create a core file.
4042
if (new_fpmr != expected_fpmr)
4143
__builtin_trap();
4244

0 commit comments

Comments
 (0)