gdb: adding examples for gdb

examples have content for valgrind