Date: Wed, 04 Mar 1998 22:30:16 +0100 From: Gary Jennejohn <garyj@muc.de> To: freebsd-current@FreeBSD.ORG Subject: gdb dying in -current Message-ID: <199803042130.WAA13983@peedub.muc.de>
next in thread | raw e-mail | index | archive | help
I forget who had a problem with gdb core dumping under -current (but the program he was trying to debug is called pot). Anyway, here's a diff that allows me to run gdb on that binary. Check it out and provide feedback, whoever you were :-) [beware - cut&paste !!!] --- /contrib/gdb/gdb/partial-stab.h.ctm Wed Mar 4 22:16:31 1998 +++ /contrib/gdb/gdb/partial-stab.h Wed Mar 4 22:18:22 1998 @@ -568,10 +568,10 @@ the bounds created by N_SO symbols. If that's the case use the address of this function as the low bound for the partial symbol table. */ - if (pst->textlow == 0 + if (pst && (pst->textlow == 0 || (CUR_SYMBOL_VALUE < pst->textlow && CUR_SYMBOL_VALUE - != ANOFFSET (section_offsets, SECT_OFF_TEXT))) + != ANOFFSET (section_offsets, SECT_OFF_TEXT)))) pst->textlow = CUR_SYMBOL_VALUE; #endif /* DBXREAD_ONLY */ add_psymbol_to_list (namestring, p - namestring, @@ -607,10 +607,10 @@ the bounds created by N_SO symbols. If that's the case use the address of this function as the low bound for the partial symbol table. */ - if (pst->textlow == 0 + if (pst && (pst->textlow == 0 || (CUR_SYMBOL_VALUE < pst->textlow && CUR_SYMBOL_VALUE - != ANOFFSET (section_offsets, SECT_OFF_TEXT))) + != ANOFFSET (section_offsets, SECT_OFF_TEXT)))) pst->textlow = CUR_SYMBOL_VALUE; #endif /* DBXREAD_ONLY */ add_psymbol_to_list (namestring, p - namestring, -------- Gary Jennejohn Home - garyj@muc.de Work - garyj@fkr.dec.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803042130.WAA13983>