[MPlayer-dev-eng] [PATCH] automatic gdb attaching

D Richard Felker III dalias at aerifal.cx
Mon Oct 18 22:55:24 CEST 2004


On Mon, Oct 18, 2004 at 09:48:06PM +0200, Reimar Döffinger wrote:
> Hi,
> the attached patch will try to attach gdb on receiving an "excpetional" 
> signal. You can also trigger this by sending a SIGTRAP (might be useful 
> for debugging hangs).
> The main purpose of this is helping in debugging rare bugs. So you can
> just go about playing your files, and if that bug occurs you can right
> start developing ;-).
> Of course, the code should not be enabled by default as it currently is,
> and the gdb path should probably be detected by configure as well...
> Please commment...

not a bad idea but you're right it should be optional, and
configurable from the runtime config file as well as at compiletime.

also imo it should use execlp for running gdb, so it uses the user's
path. anything else seems dumb to me.

rich




More information about the MPlayer-dev-eng mailing list