Patch to fix crashing experienced while using GDB

Coleman Kane cokane at FreeBSD.org
Fri Apr 18 01:23:06 UTC 2008


On Thu, 2008-04-17 at 17:20 -0700, David O'Brien wrote:
> On Mon, Apr 14, 2008 at 05:36:38PM -0400, Coleman Kane wrote:
> > On Mon, 2008-04-14 at 17:28 -0400, Coleman Kane wrote:
> > > Hello,
> > > 
> > > Some time ago, I got the attached patch from jhb (IIRC). It has worked
> > > for me and cured a problem that was making a bunch of my code
> > > un-traceable using GDB on FreeBSD. Debugging would result in a crash of
> > > GDB, preventing me from seeing what bug I had that crashed my program.
> > > 
> > > Anyhow, my question is: Is there any reason this shouldn't be pushed
> > > into the tree? Who do I need to talk to (obrien? the compiler
> > > maintainers?) about it?
> > 
> > BTW, this has already been fixed in the GDB sources (using nearly the
> > exact same code) since August 2004 in rev. 1.79 of gdb/target.c:
> > 
> > http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c?rev=1.79&content-type=text/x-cvsweb-markup&cvsroot=src
> 
> OK, I'll take a look at it.
> 

BTW,

I could do the commit myself, but I understand GDB/GCC stuff to be a
touchy part of the system, requiring extra care considering the
licensing issues involved and the sensitive nature of touching something
so important to everyone...

I've had it sitting in my git for at least a year or more...

-- 
Coleman Kane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20080418/8b559088/attachment.pgp


More information about the freebsd-current mailing list