Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Binject/debug
/ functions
Functions
738 in github.com/Binject/debug
⨍
Functions
738
◇
Types & classes
261
↓ 3 callers
Method
LookupFunc
LookupFunc returns the text, data, or bss symbol with the given name, or nil if no such symbol is found.
gosym/symtab.go:559
↓ 3 callers
Method
NSym
()
goobj2/internal/goobj2/goobj2.go:1096
↓ 3 callers
Method
Next
Next sets *entry to the next row in this line table and moves to the next row. If there are no more entries and the line table is properly terminated,
dwarf/line.go:316
↓ 3 callers
Method
Open
Open returns a new ReadSeeker reading the segment.
macho/file.go:130
↓ 3 callers
Function
OpenFat
OpenFat opens the named file using os.Open and prepares it for use as a Mach-O universal binary.
macho/fat.go:125
↓ 3 callers
Method
Ranges
Ranges returns the PC ranges covered by e, a slice of [low,high) pairs. Only some entry types, such as TagCompileUnit or TagSubprogram, have PC ranges
dwarf/entry.go:695
↓ 3 callers
Method
Raw
()
macho/file.go:45
↓ 3 callers
Method
StringAt
(off uint32, len uint32)
goobj2/internal/goobj2/goobj2.go:1025
↓ 3 callers
Method
Symbols
Symbols returns the symbol table for f. The symbols will be listed in the order they appear in f. For compatibility with Go 1.0, Symbols omits the nu
elf/file.go:766
↓ 3 callers
Method
Type
()
goobj2/internal/goobj2/goobj2.go:723
↓ 3 callers
Method
WriteString
(s string)
goobj2/internal/bio/must.go:37
↓ 3 callers
Method
advancePC
advancePC advances "operation pointer" (the combination of Address and OpIndex) in r.state by opAdvance steps.
dwarf/line.go:466
↓ 3 callers
Function
alignUp64
(value, align uint64)
macho/reloc_write.go:546
↓ 3 callers
Method
dwarf64
64-bit DWARF format?
dwarf/buf.go:32
↓ 3 callers
Method
entry
Entry reads a single entry from buf, decoding according to the given abbreviation table.
dwarf/entry.go:366
↓ 3 callers
Function
fn
dwarf/testdata/ranges.c:7
↓ 3 callers
Method
isGo12
Go 1.2 symbol table format. See golang.org/s/go12symtab. A general note about the methods here: rather than try to avoid index out of bounds errors,
gosym/pclntab.go:140
↓ 3 callers
Method
lineFromAline
* * Object files */ This is legacy code for Go 1.1 and earlier, which used the Plan 9 format for pc-line tables. This code was never quite correct.
gosym/symtab.go:594
↓ 3 callers
Method
parse
(targetPC uint64, targetLine int)
gosym/pclntab.go:55
↓ 3 callers
Method
relocationSection
(targetIndex int, relType SectionType)
elf/reloc_edit.go:331
↓ 3 callers
Method
sectionFromDirectoryEntry
(directory uint32)
pe/imports.go:144
↓ 3 callers
Method
skip
(n int)
dwarf/buf.go:79
↓ 3 callers
Function
splitDrive
splitDrive splits the DOS drive letter or UNC share point from path, if any. path == drive + rest
dwarf/line.go:636
↓ 3 callers
Method
step
step advances to the next pc, value pair in the encoded table.
gosym/pclntab.go:281
↓ 3 callers
Method
string
string returns a Go string found at off.
gosym/pclntab.go:270
↓ 3 callers
Method
stringOff
(s string)
goobj2/internal/goobj2/goobj2.go:918
↓ 3 callers
Method
stringTable
stringTable reads and returns the string table given by the specified link value.
elf/file.go:121
↓ 3 callers
Function
testCgoDWARF
(t *testing.T, linktype int)
pe/file_cgo_test.go:14
↓ 3 callers
Function
testLineTable
(t *testing.T, want []LineEntry, d *Data)
dwarf/line_test.go:194
↓ 3 callers
Function
testTypedefs
(t *testing.T, d *Data, kind string)
dwarf/type_test.go:92
↓ 3 callers
Method
updateFile
updateFile updates r.state.File after r.fileIndex has changed or r.fileEntries has changed.
dwarf/line.go:302
↓ 2 callers
Method
AddBaseReloc
AddBaseReloc adds a single base relocation to the block for the containing page.
pe/reloc_edit.go:35
↓ 2 callers
Method
AddRelocationForSymbol
AddRelocationForSymbol creates a non-scattered relocation that references a symbol.
macho/reloc_edit.go:77
↓ 2 callers
Method
AddRelocationForSymbol
AddRelocationForSymbol builds and adds a relocation for the named symbol. If addend is nil, a REL entry is created. Otherwise a RELA entry is used.
elf/reloc_edit.go:110
↓ 2 callers
Method
AddRelocationForSymbolWithDylibOrdinal
AddRelocationForSymbolWithDylibOrdinal creates a relocation and records the dylib ordinal to use when generating bind info (0-15).
macho/reloc_edit.go:96
↓ 2 callers
Method
AddRelocationsToRelocSection
AddRelocationsToRelocSection appends relocation entries to a specific relocation section (e.g. ".rela.dyn" or ".rel.plt").
elf/reloc_edit.go:52
↓ 2 callers
Method
AuxOff
AuxOff returns the offset of the j-th aux symbol of the i-th symbol.
goobj2/internal/goobj2/goobj2.go:1152
↓ 2 callers
Method
Common
()
dwarf/type.go:16
↓ 2 callers
Method
DWARF
DWARF - No idea what this does
elf/file.go:660
↓ 2 callers
Method
Defn
()
dwarf/type.go:169
↓ 2 callers
Method
DynamicSymbols
DynamicSymbols returns the dynamic symbol table for f. The symbols will be listed in the order they appear in f. For compatibility with Symbols, Dyna
elf/file.go:777
↓ 2 callers
Function
Expstring
()
goobj2/internal/objabi/objabi.go:1213
↓ 2 callers
Method
ImportDirectoryTable
ImportDirectoryTable - returns the Import Directory Table, a pointer to the section, and the section raw data
pe/imports.go:40
↓ 2 callers
Method
LineReader
LineReader returns a new reader for the line table of compilation unit cu, which must be an Entry with tag TagCompileUnit. If this compilation unit h
dwarf/line.go:138
↓ 2 callers
Method
NNonpkgdef
()
goobj2/internal/goobj2/goobj2.go:1100
↓ 2 callers
Method
Next
Next reads the next entry from the encoded entry stream. It returns nil, nil when it reaches the end of the section. It returns an error if the curren
dwarf/entry.go:586
↓ 2 callers
Function
Open
Open opens the named file using os.Open and prepares it for use as a Plan 9 a.out binary.
plan9obj/file.go:98
↓ 2 callers
Method
PCToFunc
PCToFunc returns the function containing the program counter pc, or nil if there is no such function.
gosym/symtab.go:478
↓ 2 callers
Method
PCToLine
PCToLine looks up line number information for a program counter. If there is no information, it returns fn == nil.
gosym/symtab.go:497
↓ 2 callers
Function
Parse
Parse parses an object file or archive from objPath, assuming that its import path is pkgpath. A function that returns paths of object files from impo
goobj2/file.go:438
↓ 2 callers
Function
R_INFO32
(sym, typ uint32)
elf/elf.go:2832
↓ 2 callers
Method
RawString
(s string)
goobj2/internal/goobj2/goobj2.go:931
↓ 2 callers
Method
Read
(r *Reader)
goobj2/internal/goobj2/goobj2.go:648
↓ 2 callers
Method
RelocOff
RelocOff returns the offset of the j-th relocation of the i-th symbol.
goobj2/internal/goobj2/goobj2.go:1126
↓ 2 callers
Method
Seek
Seek positions the Reader at offset off in the encoded entry stream. Offset 0 can be used to denote the first entry.
dwarf/entry.go:549
↓ 2 callers
Method
SetAdd
(x int64)
goobj2/internal/goobj2/goobj2.go:805
↓ 2 callers
Method
SetBindKindForSymbol
SetBindKindForSymbol records a bind kind for the named symbol.
macho/reloc_edit.go:151
↓ 2 callers
Method
SetDylibOrdinalForSymbolIndex
SetDylibOrdinalForSymbolIndex records a dylib ordinal for a symbol index.
macho/reloc_edit.go:139
↓ 2 callers
Method
SetOff
(x int32)
goobj2/internal/goobj2/goobj2.go:799
↓ 2 callers
Method
SetSiz
(x uint8)
goobj2/internal/goobj2/goobj2.go:801
↓ 2 callers
Method
SetSym
(x SymRef)
goobj2/internal/goobj2/goobj2.go:807
↓ 2 callers
Method
SetType
(x uint8)
goobj2/internal/goobj2/goobj2.go:803
↓ 2 callers
Method
Siz
()
goobj2/internal/goobj2/goobj2.go:727
↓ 2 callers
Method
SkipChildren
SkipChildren skips over the child entries associated with the last Entry returned by Next. If that Entry did not have children or Next has not been ca
dwarf/entry.go:614
↓ 2 callers
Method
String
()
dwarf/tag_string.go:23
↓ 2 callers
Method
SymbolIndexByName
SymbolIndexByName returns the COFF symbol table index for the given name.
pe/reloc_edit.go:77
↓ 2 callers
Method
Tell
Tell returns the current position in the line table.
dwarf/line.go:485
↓ 2 callers
Method
Type
Type reads the type at off in the DWARF ``info'' section.
dwarf/type.go:277
↓ 2 callers
Method
WriteFile
(destFile string)
pe/write.go:198
↓ 2 callers
Method
addRelocationEntry
(target *Section, symIndex uint32, symtabIndex int, offset uint64, rType uint32, addend *int64)
elf/reloc_edit.go:132
↓ 2 callers
Method
addrsize
Size of an address, in bytes. Zero means unknown.
dwarf/buf.go:35
↓ 2 callers
Method
alineFromLine
(path string, line int)
gosym/symtab.go:636
↓ 2 callers
Function
crack
(file string, t *testing.T)
gosym/pclntab_test.go:70
↓ 2 callers
Function
decompress
elf.NewFile requires io.ReaderAt, which compress/gzip cannot provide. Decompress the file to a bytes.Reader.
elf/file_test.go:293
↓ 2 callers
Function
dumpLines
(t *testing.T, lines []LineEntry)
dwarf/line_test.go:272
↓ 2 callers
Function
encodeRelocations
(order binary.ByteOrder, rels interface{})
elf/reloc_edit.go:261
↓ 2 callers
Function
encodeULEB128
(value uint64)
macho/reloc_write.go:297
↓ 2 callers
Method
ensureSectionName
(section *Section)
elf/reloc_edit.go:399
↓ 2 callers
Method
findFunc
findFunc returns the func corresponding to the given program counter.
gosym/pclntab.go:229
↓ 2 callers
Function
getTable
(t *testing.T)
gosym/pclntab_test.go:64
↓ 2 callers
Method
go12PCToLine
go12PCToLine maps program counter to line number for the Go 1.2 pcln table.
gosym/pclntab.go:358
↓ 2 callers
Function
hasPathPrefix
Does s have t as a path prefix? That is, does s == t or does s begin with t followed by a slash? For portability, we allow ASCII case folding, so that
goobj2/internal/objabi/objabi.go:590
↓ 2 callers
Method
initFileMap
initFileMap initializes the map from file name to file number.
gosym/pclntab.go:426
↓ 2 callers
Method
int
Signed int is a sign-extended varint.
dwarf/buf.go:141
↓ 2 callers
Function
matchSection
(sections []*Section, name, seg string, offset uint32, addr uint64)
macho/reloc_write.go:530
↓ 2 callers
Function
newFileInternal
NewFile creates a new File for accessing a PE binary in an underlying reader.
macho/file.go:291
↓ 2 callers
Function
newFileInternal
NewFile creates a new File for accessing a PE binary in an underlying reader.
pe/file.go:94
↓ 2 callers
Function
parse
(objPath string, p *Package, importMap ImportMap, returnReader bool)
goobj2/file.go:449
↓ 2 callers
Method
parseAbbrev
ParseAbbrev returns the abbreviation table that starts at byte off in the .debug_abbrev section.
dwarf/entry.go:36
↓ 2 callers
Method
parseObject
parseObject parses a single Go object file. The prefix is the bytes already read from the file, typically in order to detect that this is an object fi
goobj2/file.go:611
↓ 2 callers
Function
pathIsAbs
pathIsAbs reports whether path is an absolute path (or "full path name" in DWARF parlance). This is in "whatever form makes sense for the host system"
dwarf/line.go:599
↓ 2 callers
Function
pathJoin
pathJoin joins dirname and filename. filename must be relative. DWARF paths can be UNIX-style or DOS-style, so this handles both.
dwarf/line.go:606
↓ 2 callers
Method
pcvalue
pcvalue reports the value associated with the target pc. off is the offset to the beginning of the pc-value table, and entry is the start PC for the c
gosym/pclntab.go:301
↓ 2 callers
Method
peek
peek returns the next n bytes without advancing the reader.
goobj2/file.go:320
↓ 2 callers
Method
pushSection
(sh *Section, r io.ReaderAt)
macho/file.go:759
↓ 2 callers
Method
readByte
readByte reads and returns a byte from the input file. On I/O error or EOF, it records the error but returns byte 0. A sequence of 0 bytes will eventu
goobj2/file.go:342
↓ 2 callers
Method
readFileEntry
readFileEntry reads a file entry from either the header or a DW_LNE_define_file extended opcode and adds it to r.fileEntries. A true return value indi
dwarf/line.go:277
↓ 2 callers
Method
readType
readType reads a type from r at off of name. It adds types to the type cache, appends new typedef types to typedefs, and computes the sizes of types.
dwarf/type.go:285
↓ 2 callers
Method
readvarint
readvarint reads, removes, and returns a varint from *pp.
gosym/pclntab.go:254
↓ 2 callers
Method
relayoutAllocRelocationSection
(section *Section)
elf/reloc_edit.go:480
← previous
next →
101–200 of 738, ranked by callers