]> Cypherpunks repositories - gostls13.git/commit
cmd/link: resolve magic value in gdbscript section generation
authorVyacheslav Pachkov <slava.pach@gmail.com>
Mon, 23 Aug 2021 08:40:32 +0000 (08:40 +0000)
committerCherry Mui <cherryyz@google.com>
Tue, 7 Sep 2021 16:20:11 +0000 (16:20 +0000)
commitbca8c6ffa2dd19d49685531650ea6553262837e3
tree9d8a8ff9f97b94f56004087bc52fa81c86057cb7
parent21de6bc463e52af01bcbfda478e2cb221e982e41
cmd/link: resolve magic value in gdbscript section generation

According to the .debug_gdb_scripts section specification
[https://sourceware.org/gdb/onlinedocs/gdb/dotdebug_005fgdb_005fscripts-section.html],
each entry begins with a non-null prefix byte that specifies the kind of entry.
This commit resolves a question about magic byte and replaces a
hardcoded value with a meaningful constant "GdbScriptPythonFileId"
inside writegdbscript function.

Change-Id: I456c742bcb539a5853b9e2a6811033f35c37e7d4
GitHub-Last-Rev: 2f1c4cb9eec582a6e381fa866738aa17278005c2
GitHub-Pull-Request: golang/go#47646
Reviewed-on: https://go-review.googlesource.com/c/go/+/341391
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/dwarf.go