(p dwarfparser, name string)
| 73 | } |
| 74 | |
| 75 | func 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 | |
| 93 | type python struct { |
| 94 | pyrtaddr ptr32 |
no test coverage detected