func wrapType(d *dwarf.Data, off dwarf.Offset) (dt dwarf.Type, err error) {
	defer func() {
		if r := recover(); r != nil {
			if false {
				fmt.Fprintf(os.Stderr, "bad offset: %d\n", off)
			}
			dt = nil
			err = r.(error)
		}
	}()
	dt, err = d.Type(off)
	return
}
Wrappers to recover in case debug/dwarf panics.
TODO: fix the bug in the debug/dwarf library instead.
package gocore
import (
	"debug/dwarf"
	"fmt"
	"os"
	"regexp"
	"sort"
	"strings"
	"github.com/randall77/corelib/core"
)