* gdb.base/gcore.c: Include <string.h>.
* gdb.base/gcore.c: Add copyright notice.
* gdb.base/gcore.exp: New test for generate-core-file command. * gdb.base/gcore.c: Testcase for above. * gdb.threads/gcore-thread.exp: New test for gcore (threaded).