Dumping core on windows?
Ben Greear
greearb@candelatech.com
Thu Nov 17 01:29:00 GMT 2005
Brian Dessent wrote:
> Christopher Faylor wrote:
>
>
>>Have you actually tried this, Brian? I was going to suggest something
>>like this but I wasn't sure if it worked with dumper.
>
>
> Yeah, I tried it before posting and it seemed to work - it created the
> core but I didn't try loading it into GDB. At first I thought it did
> not, though, because I was trying to specify a path to the filename
> argument of dumper, which does not work - it seems to create it using
> the given filename in the CWD of the faulting program, regardless of any
> path you give it.
Is there a way to get the program name programatically so that this
works with any application? For instance, I'm using this value
for Debugger:
c:\cygwin\bin\dumper.exe btserver %ld
but I'm guessing that it will not work if any other application dies.
Also, is there a way to cause a fault in a program for
testing, similar to 'kill -11 pid' ?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Gdb
mailing list