I use gdb for OSX, which has no gcore and generate-core-file commands:
$ gdb GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin". (gdb) gcore Undefined command: "gcore". Try "help". (gdb) generate-core-file Undefined command: "generate-core-file". Try "help". (gdb)
Given this, how can I start generating a core dump or something approaching it through GDB?
(I suspect I can use dump memory , but this requires a range of addresses, and I try my best to find the correct info call to get the correct memory range ...)
Kristian glass
source share