diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-09 05:33:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-09 05:33:10 +0000 |
commit | 060b4284aa1e081d438805ad7375700fb9c884eb (patch) | |
tree | dfde033bdd712795a47e779b45ee7132bf6176e5 /libgo/go | |
parent | cc8459239b4a2dbdaf042e6e108cccaa249e554c (diff) | |
download | gcc-060b4284aa1e081d438805ad7375700fb9c884eb.zip gcc-060b4284aa1e081d438805ad7375700fb9c884eb.tar.gz gcc-060b4284aa1e081d438805ad7375700fb9c884eb.tar.bz2 |
debug/elf: Don't crash if line numbers are not available.
From-SVN: r185124
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/debug/elf/runtime.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/debug/elf/runtime.go b/libgo/go/debug/elf/runtime.go index 23e79bf..17cb6fb 100644 --- a/libgo/go/debug/elf/runtime.go +++ b/libgo/go/debug/elf/runtime.go @@ -129,7 +129,7 @@ func openExecutable() { // and line number for a PC value. func funcFileLine(pc uintptr, function *string, file *string, line *int) bool { openExecutable() - if executable.dwarf == nil { + if executable == nil || executable.dwarf == nil { return false } f, ln, err := executable.dwarf.FileLine(uint64(pc)) |