Ignore more files

* .gitignore: Add gdb related files.
* tests/.gitignore: Ignore test logs.
diff --git a/.gitignore b/.gitignore
index ca5703f..2c1e8d8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,9 @@
 .libs
 .version
 .*.swp
+*.gdb
+.gdbinit
+.gdb_history
 
 /ChangeLog
 /CREDITS
@@ -30,6 +33,7 @@
 /ioctldefs.h
 /ioctlsort
 /strace
+/test-driver
 
 /linux/ioctlent.h
 
diff --git a/tests/.gitignore b/tests/.gitignore
index cf5bbd7..7e563b8 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -1 +1,2 @@
-check.log
+*.log
+*.trs