dwarf

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryFileReader

func EntryFileReader(cu *dwarf.Entry, d *dwarf.Data) func(entry *dwarf.Entry) string

func EntryPrettyPrint added in v1.3.4

func EntryPrettyPrint(entry *dwarf.Entry) string

func EntryShouldIgnore

func EntryShouldIgnore(entry *dwarf.Entry) bool

func LanguageString

func LanguageString(l Language) string

LanguageString returns the string representation of the Language constant.

Types

type Content

type Content struct {
	Name string
	Addr uint64
	Size uint64
}

func SizeForDWARFVar

func SizeForDWARFVar(
	d *dwarf.Data,
	entry *dwarf.Entry,
	addr uint64,
	readMemory MemoryReader,
) ([]Content, uint64, error)

SizeForDWARFVar need addr because it may in .bss section readMemory should only be called once return addr, size, type size, error

type Language

type Language = int64
const (
	DwLangC89          Language = 0x0001
	DwLangC            Language = 0x0002
	DwLangAda83        Language = 0x0003
	DwLangCPP          Language = 0x0004
	DwLangCobol74      Language = 0x0005
	DwLangCobol85      Language = 0x0006
	DwLangFortran77    Language = 0x0007
	DwLangFortran90    Language = 0x0008
	DwLangPascal83     Language = 0x0009
	DwLangModula2      Language = 0x000a
	DwLangJava         Language = 0x000b
	DwLangC99          Language = 0x000c
	DwLangAda95        Language = 0x000d
	DwLangFortran95    Language = 0x000e
	DwLangPLI          Language = 0x000f
	DwLangObjC         Language = 0x0010
	DwLangObjCPP       Language = 0x0011
	DwLangUPC          Language = 0x0012
	DwLangD            Language = 0x0013
	DwLangPython       Language = 0x0014
	DwLangOpenCL       Language = 0x0015
	DwLangGo           Language = 0x0016
	DwLangModula3      Language = 0x0017
	DwLangHaskell      Language = 0x0018
	DwLangCPP03        Language = 0x0019
	DwLangCPP11        Language = 0x001a
	DwLangOCaml        Language = 0x001b
	DwLangRust         Language = 0x001c
	DwLangC11          Language = 0x001d
	DwLangSwift        Language = 0x001e
	DwLangJulia        Language = 0x001f
	DwLangDylan        Language = 0x0020
	DwLangCPP14        Language = 0x0021
	DwLangFortran03    Language = 0x0022
	DwLangFortran08    Language = 0x0023
	DwLangRenderScript Language = 0x0024
	DwLangBLISS        Language = 0x0025
	DwLangKotlin       Language = 0x0026
	DwLangZig          Language = 0x0027
	DwLangCrystal      Language = 0x0028
	DwLangCPP17        Language = 0x002a
	DwLangCPP20        Language = 0x002b
	DwLangC17          Language = 0x002c
	DwLangFortran18    Language = 0x002d
	DwLangAda2005      Language = 0x002e
	DwLangAda2012      Language = 0x002f
	DwLangHIP          Language = 0x0030
	DwLangAssembly     Language = 0x0031
	DwLangCSharp       Language = 0x0032
	DwLangMojo         Language = 0x0033
	DwLangGLSL         Language = 0x0034
	DwLangGLSLES       Language = 0x0035
	DwLangHLSL         Language = 0x0036
	DwLangOpenCLCPP    Language = 0x0037
	DwLangCPPForOpenCL Language = 0x0038
	DwLangSYCL         Language = 0x0039
	DwLangRuby         Language = 0x0040
	DwLangMove         Language = 0x0041
	DwLangHylo         Language = 0x0042
)

type MemoryReader

type MemoryReader func(addr, size uint64) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL