* gdb-events.sh: Make if statements and tests