Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index eeb84128d76bdf5f0ef2d12294de9adf2d47f8f1..59c15f5dcf8ad4d5ad118b5e291ee53dd7e59635 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -905,6 +905,11 @@ void PositionsRecorder::RecordPosition(int pos) { |
ASSERT(pos != RelocInfo::kNoPosition); |
ASSERT(pos >= 0); |
state_.current_position = pos; |
+#ifdef ENABLE_GDBJIT_INTERFACE |
+ if (gdbjit_lineinfo_ != NULL) { |
+ gdbjit_lineinfo_->SetPosition(assembler_->pc_offset(), pos, false); |
+ } |
+#endif |
} |
@@ -912,6 +917,11 @@ void PositionsRecorder::RecordStatementPosition(int pos) { |
ASSERT(pos != RelocInfo::kNoPosition); |
ASSERT(pos >= 0); |
state_.current_statement_position = pos; |
+#ifdef ENABLE_GDBJIT_INTERFACE |
+ if (gdbjit_lineinfo_ != NULL) { |
+ gdbjit_lineinfo_->SetPosition(assembler_->pc_offset(), pos, true); |
+ } |
+#endif |
} |