diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-24 14:43:24 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-24 14:43:24 +0300 |
commit | cd22ff6f17209982a4920d451b887131df24773e (patch) | |
tree | fc211a8f502ec3ae86d9a278721f28efab7855dc /contrib | |
parent | 8447865a5c559c50dfbebc7124171bcaa73b2cd1 (diff) |
winedbg-procmap: fix share format parsing
The format isn't really machine friendly, so we need to do some
additional pre-processing.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/winedbg-procmap | 4 |
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 |