func DumpMemoryRegions(as AS.AddressSpace) error { fmt.Printf("=== memory map ===\n") mmaps, e := as.GetMaps() check(e) for _, region := range mmaps { fmt.Printf(" name: %s\n", region.Name) fmt.Printf(" address: %s\n", region.Address) fmt.Printf(" length: %x\n", region.Length) } return nil }