#!/bin/sh
# usage: winedbg-map wpid
# Get windows process map information

# --file doesn't work for some reason
winedbg << EOF | sed 's/Wine-dbg>//g' | tail -n +3
attach $1
info map
detach
EOF