From ec5d5d0fb9f1bd5a5053fc7a65334b7757059b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Tue, 18 Oct 2022 18:35:21 +0200 Subject: [PATCH] Fix `parse_drmingw.sh` not finding module offset on Linux systems The end anchor is removed from the grep RegEx, as it's not necessary and as it doesn't work on Linux systems when the crash log uses Windows line endings. --- scripts/parse_drmingw.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/parse_drmingw.sh b/scripts/parse_drmingw.sh index bbf4ff83d..e4ac1c978 100755 --- a/scripts/parse_drmingw.sh +++ b/scripts/parse_drmingw.sh @@ -16,7 +16,7 @@ fi TMP_OFFSET=$(grep -E -o "\(with offset [0-9A-F]+\)" "$2" | grep -E -o "[A-F0-9]*") if [ -z "$TMP_OFFSET" ]; then - TMP_OFFSET=$(grep -E -o "^[0-9A-F]+-[0-9A-F]+ .+\.exe$" "$2" | grep -E -o "^[A-F0-9]+") + TMP_OFFSET=$(grep -E -o "^[0-9A-F]+-[0-9A-F]+ .+\.exe" "$2" | grep -E -o "^[A-F0-9]+") if [ -z "$TMP_OFFSET" ]; then printf "\e[31m%s\e[30m\n" "Module offset not found; addresses will be absolute" echo -en "\e[0m"