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
↓ 134 callers
Method
Write
Write writes the contents of the parsed archive to disk.
goobj2/write.go:22
↓ 107 callers
Method
Uint32
(x uint32)
goobj2/internal/goobj2/goobj2.go:948
↓ 77 callers
Method
Read
(p []byte)
elf/reader.go:17
↓ 52 callers
Function
stringName
(i uint32, names []intName, goSyntax bool)
elf/elf.go:2953
↓ 37 callers
Method
Size
()
dwarf/type.go:18
↓ 34 callers
Method
Val
Val returns the value associated with attribute Attr in Entry, or nil if there is no such attribute. A common idiom is to merge the check for nil ret
dwarf/entry.go:342
↓ 26 callers
Method
ReadAt
ReadAt writes len(p) 0s into p.
pe/file.go:315
↓ 26 callers
Method
uint
Unsigned int is just a varint.
dwarf/buf.go:135
↓ 25 callers
Method
Seek
(Offset)
dwarf/type.go:267
↓ 22 callers
Method
Offset
()
goobj2/internal/bio/buf.go:69
↓ 19 callers
Method
uint8
()
dwarf/buf.go:57
↓ 18 callers
Method
error
(s string)
dwarf/buf.go:177
↓ 17 callers
Method
Next
()
dwarf/type.go:268
↓ 16 callers
Method
Bytes
Bytes - Returns the bytes of an assembled *macho.File
macho/write.go:14
↓ 16 callers
Method
Sym
(s *Sym)
goobj2/write.go:279
↓ 16 callers
Function
makeBuf
(d *Data, format dataFormat, name string, off Offset, data []byte)
dwarf/buf.go:53
↓ 16 callers
Method
uint32At
(off uint32)
goobj2/internal/goobj2/goobj2.go:1006
↓ 15 callers
Method
Bytes
Bytes - returns the bytes of an Elf file
elf/write.go:14
↓ 14 callers
Method
Bytes
(s []byte)
goobj2/internal/goobj2/goobj2.go:936
↓ 14 callers
Method
Section
Section returns a section with the given name, or nil if no such section exists.
elf/file.go:650
↓ 14 callers
Function
cstring
(b []byte)
macho/file.go:815
↓ 14 callers
Method
getSymbols
getSymbols returns a slice of Symbols from parsing the symbol table with the given type, along with the associated string table.
elf/file.go:530
↓ 14 callers
Method
uintptr
uintptr returns the pointer-sized value encoded at b. The pointer size is dictated by the table being read.
gosym/pclntab.go:149
↓ 13 callers
Method
AddString
(s string)
goobj2/internal/goobj2/goobj2.go:910
↓ 13 callers
Method
BytesAt
(off uint32, len int)
goobj2/internal/goobj2/goobj2.go:989
↓ 13 callers
Method
Section
Section returns the first section with the given name, or nil if no such section exists.
macho/file.go:835
↓ 13 callers
Method
String
()
dwarf/type.go:17
↓ 13 callers
Method
Uint16
(x uint16)
goobj2/internal/goobj2/goobj2.go:955
↓ 13 callers
Method
uint64
()
dwarf/buf.go:110
↓ 12 callers
Method
Close
()
goobj2/internal/bio/buf.go:89
↓ 12 callers
Method
Data
Data reads and returns the contents of the ELF section. Even if the section is stored compressed in the ELF file, Data returns uncompressed data.
elf/file.go:113
↓ 12 callers
Method
Reader
Reader returns a new Reader for Data. The reader is positioned at byte offset 0 in the DWARF ``info'' section.
dwarf/entry.go:535
↓ 12 callers
Method
Uint64
(x uint64)
goobj2/internal/goobj2/goobj2.go:941
↓ 12 callers
Function
assertString
(t *testing.T, dsc, out, tgt string)
gosym/symtab_test.go:12
↓ 12 callers
Method
setDynTag
(tag DynTag, value uint64)
elf/reloc_edit.go:634
↓ 12 callers
Method
uint32
()
dwarf/buf.go:102
↓ 11 callers
Method
Close
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect.
pe/file.go:67
↓ 11 callers
Function
Open
Open opens the named file using os.Open and prepares it for use as an ELF binary.
elf/file.go:242
↓ 11 callers
Method
Replace
Replace swaps the section's data with the provided reader and length.
elf/file.go:149
↓ 11 callers
Method
Section
Section returns the first section with the given name, or nil if no such section exists.
pe/file.go:338
↓ 11 callers
Method
bytes
(n int)
dwarf/buf.go:68
↓ 11 callers
Function
maxUint64
(a, b uint64)
macho/reloc_write.go:557
↓ 10 callers
Method
Close
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect.
elf/file.go:259
↓ 10 callers
Method
Open
Open returns a new ReadSeeker reading the ELF program body.
elf/file.go:186
↓ 10 callers
Function
align32
(value, align uint32)
pe/reloc_write.go:172
↓ 10 callers
Function
elfData
(t *testing.T, name string)
dwarf/type_test.go:45
↓ 10 callers
Function
envOr
(key, value string)
goobj2/internal/objabi/objabi.go:1039
↓ 9 callers
Method
Flag
()
goobj2/internal/goobj2/goobj2.go:725
↓ 9 callers
Function
Open
Open opens the named file using os.Open and prepares it for use as a PE binary.
pe/file.go:50
↓ 9 callers
Method
error
error records that an error occurred. It returns only the first error, so that an error caused by an earlier error does not discard information about
goobj2/file.go:308
↓ 8 callers
Method
Close
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect.
macho/file.go:271
↓ 8 callers
Function
NewFile
NewFile creates a new File for accessing an ELF binary in an underlying reader. The ELF binary is expected to start at position 0 in the ReaderAt.
elf/file.go:292
↓ 8 callers
Method
Write
(w *Writer)
goobj2/internal/goobj2/goobj2.go:762
↓ 8 callers
Method
readFull
read reads exactly len(b) bytes from the input file. If an error occurs, read returns the error but also records it, so it is safe for callers to igno
goobj2/file.go:367
↓ 8 callers
Method
uint16
()
dwarf/buf.go:94
↓ 7 callers
Method
Data
Data reads and returns the contents of the PE section s.
pe/section.go:73
↓ 7 callers
Function
NewFile
NewFile creates a new macho.File for accessing a Mach-o binary file in an underlying reader.
macho/file.go:281
↓ 7 callers
Function
Open
Open opens the named file using os.Open and prepares it for use as a Mach-O binary.
macho/file.go:254
↓ 7 callers
Method
Reset
Reset repositions the line table reader at the beginning of the line table.
dwarf/line.go:503
↓ 7 callers
Method
aux1
(typ uint8, rs goobj2.SymRef)
goobj2/write.go:305
↓ 7 callers
Function
getString
getString extracts a string from symbol string table.
pe/file.go:323
↓ 6 callers
Method
Bytes
()
pe/write.go:10
↓ 6 callers
Method
Data
Data returns the i-th symbol's data.
goobj2/internal/goobj2/goobj2.go:1184
↓ 6 callers
Method
Error
()
elf/file.go:232
↓ 6 callers
Method
PackageName
PackageName returns the package part of the symbol name, or the empty string if there is none.
gosym/symtab.go:37
↓ 6 callers
Method
ReceiverName
ReceiverName returns the receiver type name of this symbol, or the empty string if there is none.
gosym/symtab.go:51
↓ 6 callers
Method
SectionByType
SectionByType returns the first section in f with the given type, or nil if there is no such section.
elf/file.go:270
↓ 6 callers
Method
addRelocations
(target *Section, rels interface{}, replace bool, linkOverride *int)
elf/reloc_edit.go:171
↓ 6 callers
Function
alignUp
(value, align uint64)
elf/reloc_edit.go:644
↓ 6 callers
Function
flagName
(i uint32, names []intName, goSyntax bool)
elf/elf.go:2979
↓ 6 callers
Function
getString
getString extracts a string from an ELF string table.
elf/file.go:635
↓ 6 callers
Function
stringName
(i uint32, names []intName, goSyntax bool)
macho/macho.go:404
↓ 6 callers
Function
trimSpace
trimSpace removes trailing spaces from b and returns the corresponding string. This effectively parses the form used in archive headers.
goobj2/file.go:493
↓ 5 callers
Method
DWARF
()
pe/file.go:347
↓ 5 callers
Method
Error
()
pe/file.go:440
↓ 5 callers
Method
Name
(r *Reader)
goobj2/internal/goobj2/goobj2.go:715
↓ 5 callers
Method
addr
Address-sized uint.
dwarf/buf.go:151
↓ 5 callers
Function
relocationAlign
(class Class)
elf/reloc_edit.go:324
↓ 4 callers
Method
Error
()
gosym/symtab.go:708
↓ 4 callers
Method
GoString
()
macho/macho.go:80
↓ 4 callers
Method
MustSeek
(offset int64, whence int)
goobj2/internal/bio/buf.go:46
↓ 4 callers
Function
NewFile
TODO(brainman): add Load function, as a replacement for NewFile, that does not call removeAuxSymbols (for performance) NewFile creates a new pe.File f
pe/file.go:84
↓ 4 callers
Method
RVAToFileOffset
RVAToFileOffset Converts a Relative offset to the actual offset in the file.
pe/file.go:445
↓ 4 callers
Function
R_INFO
(sym, typ uint32)
elf/elf.go:2934
↓ 4 callers
Method
ReadFile
(b []byte, filesoff uint32, k uint32)
goobj2/internal/goobj2/goobj2.go:428
↓ 4 callers
Method
SeekPC
SeekPC returns the Entry for the compilation unit that includes pc, and positions the reader to read the children of that unit. If pc is not covered
dwarf/entry.go:663
↓ 4 callers
Method
StringRef
(s string)
goobj2/internal/goobj2/goobj2.go:926
↓ 4 callers
Method
StringRef
(off uint32)
goobj2/internal/goobj2/goobj2.go:1046
↓ 4 callers
Function
cstring
cstring converts ASCII byte sequence b to string. It stops once it finds 0 or reaches end of b.
pe/string.go:16
↓ 4 callers
Method
offsetToUnit
offsetToUnit returns the index of the unit containing offset off. It returns -1 if no unit contains this offset.
dwarf/unit.go:97
↓ 4 callers
Function
pickLink
(index int)
elf/reloc_edit.go:164
↓ 4 callers
Method
sectionIndexByName
(name string)
elf/reloc_edit.go:362
↓ 4 callers
Method
string
()
dwarf/buf.go:81
↓ 4 callers
Method
unitLength
()
dwarf/buf.go:166
↓ 4 callers
Method
updateDynamicRelocTags
()
elf/reloc_edit.go:598
↓ 3 callers
Method
AddRelocation
AddRelocation appends a relocation to the named section.
macho/reloc_edit.go:18
↓ 3 callers
Method
AddSectionRelocation
AddSectionRelocation appends a COFF relocation to a section.
pe/reloc_edit.go:57
↓ 3 callers
Method
AddTypes
AddTypes will add one .debug_types section to the DWARF data. A typical object with DWARF version 4 debug info will have multiple .debug_types section
dwarf/open.go:94
↓ 3 callers
Method
AttrField
AttrField returns the Field associated with attribute Attr in Entry, or nil if there is no such attribute.
dwarf/entry.go:351
↓ 3 callers
Method
FullName
FullName finds real name of symbol sym. Normally name is stored in sym.Name, but if it is longer then 8 characters, it is stored in COFF string table
pe/symbol.go:55
next →
1–100 of 738, ranked by callers