summaryrefslogtreecommitdiff
path: root/libgo/go/debug
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/debug')
-rw-r--r--libgo/go/debug/elf/runtime.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/debug/elf/runtime.go b/libgo/go/debug/elf/runtime.go
index 23e79bff5db..17cb6fbc99e 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))