From: Brian Dessent <brian@dessent.net>
To: Taras D <taras.di@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: stack trace and breaking before crash
Date: Tue, 11 Mar 2008 17:49:00 -0000 [thread overview]
Message-ID: <47D6C524.69AECE6F@dessent.net> (raw)
In-Reply-To: <4024fa2d0803110805ob860320i5684c361f388c80f@mail.gmail.com>
Taras D wrote:
> What am I doing wrong here? I'd like to get this 'core' option working
> as the other option starts gdb in a DOS command prompt, which prevents
> you from using any other type of interface with gdb (emacs/gui/etc)
I don't think you're doing anything wrong. It looks like the JIT
debugger code in Cygwin and/or dumper might need some bugfixes. The
reason that continuing works is that it simply retriggers the fault
again at the same location where it faulted the first time. Apparently
at the point where gdb and/or dumper attaches to the process, the
location of the fault is already lost and execution is somewhere inside
the ntdll bowels in the exception handling code.
If you don't like the command prompt (note: not DOS!) you can easily
write a simple wrapper executable that invokes whatever debugger you
prefer... in fact you can put your debugger as the error_start
parameter. The only catch is that error_start has to name a real
executable, it can't name a script or interpreter or batch file. And
you don't have control over the arguments passed, $1 is the path to the
binary and $2 is the pid.
Brian
next prev parent reply other threads:[~2008-03-11 17:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4024fa2d0803100747g289cf2abl248dbc80b007356a@mail.gmail.com>
2008-03-10 15:45 ` Taras D
2008-03-10 15:54 ` Andreas Schwab
2008-03-10 16:02 ` Brian Dessent
2008-03-10 16:36 ` Brian Dessent
2008-03-11 15:25 ` Taras D
2008-03-11 17:49 ` Brian Dessent [this message]
2008-03-11 17:53 ` Daniel Jacobowitz
2008-03-11 21:03 ` Brian Dessent
2008-03-12 12:34 ` Taras D
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=47D6C524.69AECE6F@dessent.net \
--to=brian@dessent.net \
--cc=gdb@sourceware.org \
--cc=taras.di@gmail.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