Discriminator is an arbitrary integer indicating the block to which these instructions belong. It serves to distinguish among multiple blocks that may all have with the same source file, line, and column. Where only one block exists for a given source position, it should be 0.
Added in DWARF 3.
case lneSetDiscriminator: // [DWARF4 220.127.116.11] r.state.Discriminator = int(r.buf.uint()) }
r.state.PrologueEnd = false r.state.EpilogueBegin = false r.state.Discriminator = 0 return true }
EpilogueBegin: false, ISA: 0, Discriminator: 0, } r.fileIndex = 1
Discriminator is referenced in 14 repositoriesgithub.com/golang/go github.com/deferpanic/gorump
- 3 references in 1.7/go/src/debug/dwarf/line_test.go
- 3 references in go1.5/src/debug/dwarf/line_test.go
- 3 references in src/debug/dwarf/line_test.go