Skip to content

Commit 64022ca

Browse files
committed
Typo fix & add skip method
1 parent 5358a71 commit 64022ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ObjFileBase.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export printfield, printentry, printfield_with_color, deref,
88
load_strtab, readmeta, StrTab, symname, Sections, symbolvalue,
99
isundef, symbolnum, Symbols
1010

11-
import Base: read, seek, readbytes, position, show, showcompact, readuntil
11+
import Base: read, seek, readbytes, position, show, showcompact, readuntil, skip
1212

1313
########## ObjFileBase.jl - Basic shared functionality for all object files ####
1414
#
@@ -327,7 +327,7 @@ function readmeta(io::IO)
327327
end
328328
end
329329
error("""
330-
Object file is not any of $(join(ts, ", "))!
330+
Object file is not any of $(join(ObjHandles, ", "))!
331331
To force one object file use readmeta(io,T).
332332
If the format you want is not listed, make sure
333333
the appropriate pacakge is loaded before calling
@@ -340,7 +340,7 @@ readmeta(file::AbstractString) = readmeta(open(file,"r"))
340340
read{T<:ObjectHandle}(oh::T, args...) = read(oh.io,args...)
341341
read{H<:ObjectHandle,T}(oh::H, ::Type{T}) = read(oh.io, T)::T
342342
readuntil{H<:ObjectHandle}(oh::H, x) = readuntil(oh.io, x)
343-
343+
skip{H<:ObjectHandle}(oh::H, x) = skip(oh.io, x)
344344
# Others
345345

346346
function getSectionLoadAddress

0 commit comments

Comments
 (0)