diff --git a/.gdbinit b/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..607cb82bdfaf5e5e42d02947c8cf8925c6e44af3
--- /dev/null
+++ b/.gdbinit
@@ -0,0 +1,5 @@
+target remote localhost:3333
+
+define reset
+    mon mww 0x40000004 0x80000000
+end
diff --git a/hw-tests/bmatest/.gdbinit b/hw-tests/bmatest/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..19a76570f0c950133a4009d9d2f4b62b4aa0a439
--- /dev/null
+++ b/hw-tests/bmatest/.gdbinit
@@ -0,0 +1,2 @@
+file ../../build/hw-tests/bmatest/bmatest.elf
+source ../../.gdbinit
diff --git a/hw-tests/bmetest/.gdbinit b/hw-tests/bmetest/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..e58a91e99e013bdc1983d1ab565c7bc056586138
--- /dev/null
+++ b/hw-tests/bmetest/.gdbinit
@@ -0,0 +1,2 @@
+file ../../build/hw-tests/bmetest/bmetest.elf
+source ../../.gdbinit
diff --git a/hw-tests/ecgtest/.gdbinit b/hw-tests/ecgtest/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..501e14c4239bc8d22618cb551e41c67600ea01e1
--- /dev/null
+++ b/hw-tests/ecgtest/.gdbinit
@@ -0,0 +1,2 @@
+file ../../build/hw-tests/ecgtest/ecgtest.elf
+source ../../.gdbinit
diff --git a/hw-tests/hello-world/.gdbinit b/hw-tests/hello-world/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..d6af84880bcc872d416f647959fe9d81cca548a8
--- /dev/null
+++ b/hw-tests/hello-world/.gdbinit
@@ -0,0 +1,2 @@
+file ../../build/hw-tests/hello-world/hello-world.elf
+source ../../.gdbinit
diff --git a/hw-tests/imutest/.gdbinit b/hw-tests/imutest/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..73f4d1457f1e84c887f694ce0530daf85f86b239
--- /dev/null
+++ b/hw-tests/imutest/.gdbinit
@@ -0,0 +1,2 @@
+file ../../build/hw-tests/imutest/imutest.elf
+source ../../.gdbinit
diff --git a/hw-tests/ips/.gdbinit b/hw-tests/ips/.gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..1199e494444b83032698a2c5dec7cfafd6556f27
--- /dev/null
+++ b/hw-tests/ips/.gdbinit
@@ -0,0 +1,2 @@
+file ../../build/hw-tests/ips/ips.elf
+source ../../.gdbinit