aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/dwarf
diff options
context:
space:
mode:
authorJeremy Faller <jeremy@golang.org>2019-07-30 17:48:11 -0400
committerJeremy Faller <jeremy@golang.org>2019-09-23 19:40:07 +0000
commit376fc48338bfd05192ebb87cdbca8c0d74d23b6a (patch)
treed6be922ff146081c874de53a3fba0884d28a4523 /src/cmd/internal/dwarf
parentf4ca3c1e0a2066ca4f7bd6203866d282ed34acf2 (diff)
downloadgo-376fc48338bfd05192ebb87cdbca8c0d74d23b6a.tar.xz
cmd/compile: add new symbol for debug line numbers
This is broken out from: CL 187117 This new symbol will be populated by the compiler and contain debug line information that's currently generated in the linker. One might say it's sad to create a new symbol, but this symbol will replace the isStmt symbols. Testing: Ran go build -toolexec 'toolstash -cmp' Change-Id: If8f7ae4b43b7247076605b6429b7d03a1fd239c5 Reviewed-on: https://go-review.googlesource.com/c/go/+/188238 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/internal/dwarf')
-rw-r--r--src/cmd/internal/dwarf/dwarf.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/internal/dwarf/dwarf.go b/src/cmd/internal/dwarf/dwarf.go
index 1f5786f1ad..3feb81a5b4 100644
--- a/src/cmd/internal/dwarf/dwarf.go
+++ b/src/cmd/internal/dwarf/dwarf.go
@@ -30,6 +30,9 @@ const RangePrefix = "go.range."
// IsStmtPrefix is the prefix for all the symbols containing DWARF is_stmt info for the line number table.
const IsStmtPrefix = "go.isstmt."
+// DebugLinesPrefix is the prefix for all the symbols containing DWARF debug_line information from the compiler.
+const DebugLinesPrefix = "go.debuglines."
+
// ConstInfoPrefix is the prefix for all symbols containing DWARF info
// entries that contain constants.
const ConstInfoPrefix = "go.constinfo."