From: Christopher Faylor <cgf-use-the-mailinglist-please@cygwin.com>
To: gdb@sources.redhat.com, Ben Greear <greearb@candelatech.com>
Subject: Re: Dumping core on windows?
Date: Wed, 16 Nov 2005 20:20:00 -0000 [thread overview]
Message-ID: <20051116202033.GC19023@trixie.casa.cgf.cx> (raw)
In-Reply-To: <437B8F4C.8060708@candelatech.com>
On Wed, Nov 16, 2005 at 11:58:04AM -0800, Ben Greear wrote:
>Brian Dessent wrote:
>>Ben Greear wrote:
>>>Is there any way to configure windows to dump a core file that GDB can
>>>decode?
>>
>>If you are using Cygwin, the dumper utility is provided for this. See
>>the users guide.
>
>I'm using mingw on Linux to cross-compile a windows executable. It
>does not require/use cygwin, but I can use cygwin if that will do what
>I need. I'll investigate the dumper tool.
AFAIK, the only thing that's cygwin-specific about dumper.exe is to use
cygwin's "just in time" debugging facility so, although dumper.exe
should be able to produce a core file that gdb will understand, I don't
think there's any way to have it called automatically when a SEGV (or
whatever) happens.
>>>(Or, get a stack-trace some other way?)
>>
>>Attach to the process and "bt"? No core file is needed for that.
>>Maybe you should supply some more details.
>
>After hours or days, my application crashes. It's not overly
>convenient for me to attach gdb to the process(es), but it can be done
>if that is the only way.
>
>Is there a way to have gdb automatically start running an app, for
>instance, something like this:
>
>gdb --exe=foo.exe --autostart --command="--arg1 --arg2=bar"
>
>I know you can pipe commands in, but that's a bit inconvenient...
Perhaps "gdb --help" would be of some interest to you. It reveals this
option:
gdb --args foo --arg1 --arg2
cgf
next prev parent reply other threads:[~2005-11-16 20:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 19:26 Ben Greear
2005-11-16 19:50 ` Brian Dessent
2005-11-16 19:58 ` Ben Greear
2005-11-16 20:20 ` Christopher Faylor [this message]
2005-11-16 22:23 ` Brian Dessent
2005-11-16 22:29 ` Ben Greear
2005-11-17 0:09 ` Christopher Faylor
2005-11-17 1:18 ` Brian Dessent
2005-11-17 1:29 ` Ben Greear
2005-11-17 1:38 ` Brian Dessent
2005-11-17 3:29 ` Christopher Faylor
2005-11-17 4:07 ` gdb and threads on windows Ben Greear
2005-11-17 6:06 ` Dumping core on windows? Ben Greear
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051116202033.GC19023@trixie.casa.cgf.cx \
--to=cgf-use-the-mailinglist-please@cygwin.com \
--cc=gdb@sources.redhat.com \
--cc=greearb@candelatech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).