diff options
author | 2016-03-07 16:13:58 +0000 | |
---|---|---|
committer | 2016-03-08 15:48:02 +0000 | |
commit | 91cc06c1814bd1d0fd6635bc3d7632a2bb7b0e7c (patch) | |
tree | 7c57374bd28d245fd0f071ec66d9aad8501a878a /compiler/debug/dwarf/dwarf_test.cc | |
parent | 5d8112029d0e085c5a0099257daa4c7e29c12310 (diff) |
Mark DWARF lines in non-debuggable methods as "not a statement".
This is a hint to the debugger that breakpoints and stepping
might not function as intended (since we have limited information).
Change-Id: I23c4a816182cc7548fcd69fbd00112225e7b1710
Diffstat (limited to 'compiler/debug/dwarf/dwarf_test.cc')
-rw-r--r-- | compiler/debug/dwarf/dwarf_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/debug/dwarf/dwarf_test.cc b/compiler/debug/dwarf/dwarf_test.cc index e455d0d617..2ba3af5e10 100644 --- a/compiler/debug/dwarf/dwarf_test.cc +++ b/compiler/debug/dwarf/dwarf_test.cc @@ -217,7 +217,9 @@ TEST_F(DwarfTest, DebugLine) { DW_CHECK_NEXT("Advance Line by 2 to 3"); opcodes.SetColumn(4); DW_CHECK_NEXT("Set column to 4"); - opcodes.NegateStmt(); + opcodes.SetIsStmt(true); + DW_CHECK_NEXT("Set is_stmt to 1"); + opcodes.SetIsStmt(false); DW_CHECK_NEXT("Set is_stmt to 0"); opcodes.SetBasicBlock(); DW_CHECK_NEXT("Set basic block"); |