The attached patch solves a bug that caused GDB to wrongly read core dump files generated with the gcore command, running on solaris. A define (_STRUCTURE_PROC) was needed before including procfs.h. Additionally, fp regs are properly read. I tested this with the gdb test suite, comparing results before and after (the only differences were caused by timeouts). Please let me know any comments, or commit it for me since I don't have write access. Thanks, Daniel. 2009-11-10 Daniel Gutson bfd/ * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC before including procfs.h. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. * configure.in: Added autoconf probe for the pr_fpreg member. * configure: Regenerated. * config.in: Regenerated. * elf.c: Define _STRUCTURE_PROC before including procfs.h. gdb/ * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus. -- Daniel Gutson CodeSourcery www.codesourcery.com