Raghuveer Reddy wrote:
> Hi,
>
> I have Cygwin installed on Vista OS.
> I wrote a program to generate a segmentation fault.
> I observed that gcc created a stackdump file in Cgywin.
> Are stackdump and coredump same? if not how can i generate coredump instead
> of stackdump in Cygwin?
>
> Thanks,
> Raghuveer
>   
Hi Raghuveer,

Stack dump, as the name suggests, only contains the stack information of
the executable that generated it, at the point in time it was generated.

Core dump contains information about memory and registers apart from the 
stack info.

You can generate a core dump of a running executable using 'gcore' on 
linux or 'dumper' on cygwin.
If you questions is about programatically generating core dump, you 
would need to take a look at
gcore's implementation to see what it does.

Let us know what you find.

Namita

Reply via email to