From: "Dave Korn" <dave.korn@artimi.com>
To: "'Renzhong Xiao'" <rzxiao@gmail.com>, <gdb@sources.redhat.com>
Subject: RE: How GDB handle this case while program works well in GDB but crash in mormal mode
Date: Tue, 07 Jun 2005 16:10:00 -0000 [thread overview]
Message-ID: <SERRANOa0xtAEHLB8Tr00000310@SERRANO.CAM.ARTIMI.COM> (raw)
In-Reply-To: <2be97658050605075650ee2704@mail.gmail.com>
----Original Message----
>From: Renzhong Xiao
>Sent: 05 June 2005 15:57
> Hi,
> I have some trouble in using GDB 6.3.50_2004-12-28-cvs in Cygwin
> to debug the mencoder (which is a program in MPlayer).When I run
> mencoder in normal mode,it will pop up an error message saying
> mencoder.exe has error and will be closed. But I run mencoder in
> gdb,it works well.
> I don't know how to find this bug in GDB,Does GDB has the some
> feature to handle this case?
>
> Any information will be very appreciate!
>
> Renzhong Xiao
Perhaps you can use the cygwin just-in-time debugging ability to solve the
problem; that way the program will run as usual, without the debugger
attached, up to the point when the error occurs; then cygwin will attach the
debugger once the error has happened. Hopefully that means the initial
stages of running the program will be undisturbed and the error will not be
masked.
To make this work, add 'error_start=C:\cygwin\bin\gdb.exe' (or whatever
else is the win32 path to gdb.exe, according to where you installed cygwin)
to your $CYGWIN environment variable before you start a cygwin shell, then
run mencoder. Hopefully as soon as it crashes cygwin will attach teh
debugger for you.
cheers,
DaveK
--
Can't think of a witty .sigline today....
prev parent reply other threads:[~2005-06-07 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2be9765805060507424526b153@mail.gmail.com>
2005-06-05 14:56 ` Renzhong Xiao
2005-06-05 20:57 ` Bob Rossi
2005-06-06 4:34 ` Renzhong Xiao
2005-06-07 16:10 ` Dave Korn [this message]
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=SERRANOa0xtAEHLB8Tr00000310@SERRANO.CAM.ARTIMI.COM \
--to=dave.korn@artimi.com \
--cc=gdb@sources.redhat.com \
--cc=rzxiao@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