From cd22ff6f17209982a4920d451b887131df24773e Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 24 Oct 2018 14:43:24 +0300 Subject: winedbg-procmap: fix share format parsing The format isn't really machine friendly, so we need to do some additional pre-processing. --- contrib/winedbg-procmap | 4 ++-- 1 file 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 -- cgit v1.2.3