From owner-freebsd-current Wed Mar 4 13:29:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA00903 for freebsd-current-outgoing; Wed, 4 Mar 1998 13:29:17 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from peedub.muc.de (newpc.muc.ditec.de [194.120.126.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA00883 for ; Wed, 4 Mar 1998 13:29:13 -0800 (PST) (envelope-from garyj@peedub.muc.de) Received: from peedub.muc.de (localhost [127.0.0.1]) by peedub.muc.de (8.8.8/8.6.9) with ESMTP id WAA13983 for ; Wed, 4 Mar 1998 22:30:16 +0100 (CET) Message-Id: <199803042130.WAA13983@peedub.muc.de> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-current@FreeBSD.ORG Subject: gdb dying in -current From: Gary Jennejohn Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 04 Mar 1998 22:30:16 +0100 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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