summaryrefslogtreecommitdiff
path: root/contrib/winedbg-procmap
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/winedbg-procmap')
-rwxr-xr-xcontrib/winedbg-procmap4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/winedbg-procmap b/contrib/winedbg-procmap
index 3922150..1138636 100755
--- a/contrib/winedbg-procmap
+++ b/contrib/winedbg-procmap
@@ -5,10 +5,10 @@
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
-winedbg-share "$1" > "$tmpdir/share"
+winedbg-share "$1" | sed 's/^ *\\-PE[\t ]*//;s/^PE[\t ]*//;s/^ELF[\t ]*//;s/-/ /' > "$tmpdir/share"
winedbg-map "$1" > "$tmpdir/map"
-awk '{print substr($2, 1, length($2)-1); print $3; print $5}' < "$tmpdir/share" |\
+awk '{print $1; print $2; print $4}' < "$tmpdir/share" |\
while {
read -r start
read -r end