MCPcopy Index your code
hub / github.com/dispatchrun/wzprof / pythonAddress

Function pythonAddress

python.go:75–91  ·  view source on GitHub ↗
(p dwarfparser, name string)

Source from the content-addressed store, hash-verified

73}
74
75func pythonAddress(p dwarfparser, name string) uint32 {
76 for {
77 ent, err := p.r.Next()
78 if err != nil || ent == nil {
79 break
80 }
81 if ent.Tag != dwarf.TagVariable {
82 continue
83 }
84 n, _ := ent.Val(dwarf.AttrName).(string)
85 if n != name {
86 continue
87 }
88 return getDwarfLocationAddress(ent)
89 }
90 return 0
91}
92
93type python struct {
94 pyrtaddr ptr32

Callers 2

supportedPythonFunction · 0.85
preparePythonFunction · 0.85

Calls 2

getDwarfLocationAddressFunction · 0.85
NextMethod · 0.45

Tested by

no test coverage detected