summaryrefslogtreecommitdiff
path: root/contrib/winedbg-pid
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/winedbg-pid')
-rwxr-xr-xcontrib/winedbg-pid4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/winedbg-pid b/contrib/winedbg-pid
new file mode 100755
index 0000000..0c04115
--- /dev/null
+++ b/contrib/winedbg-pid
@@ -0,0 +1,4 @@
+#!/bin/sh
+# usage: winedbg-pid process-name
+# Get windows process id with process name
+winedbg --command 'info process' | awk '/'"${@:-0xdeadbeef}"'/ { print strtonum("0x"$1) }'