summaryrefslogtreecommitdiff
path: root/contrib/winedbg-pid
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-18 21:37:02 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-18 21:37:02 +0300
commit2efc087cd4f70c07523b82941259a5d2597b4460 (patch)
tree46d1ba26e158cc5a04ae857d2976a694732c47a6 /contrib/winedbg-pid
parentfcadd18b07e55f4a6d21f9f378de9ded25be7e67 (diff)
Add some tools
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) }'