From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26476 invoked by alias); 24 Aug 2002 14:33:18 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 25754 invoked from network); 24 Aug 2002 14:29:31 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.250) by 209.249.29.67 with SMTP; 24 Aug 2002 14:29:31 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.5/8.12.5) with ESMTP id g7OESNUo004977; Sat, 24 Aug 2002 16:28:23 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.5/8.12.5) with ESMTP id g7OESNiK066007; Sat, 24 Aug 2002 16:28:23 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.5/8.12.5/Submit) id g7OESLLe066004; Sat, 24 Aug 2002 16:28:21 +0200 (CEST) Date: Sat, 24 Aug 2002 08:09:00 -0000 Message-Id: <200208241428.g7OESLLe066004@elgar.kettenis.dyndns.org> From: Mark Kettenis To: eliz@is.elta.co.il CC: gdb-patches@sources.redhat.com In-reply-to: <8011-Sat24Aug2002123631+0300-eliz@is.elta.co.il> Subject: Re: [PATCH] Mention some problems with using GDB on FreeBSD References: <200208240035.g7O0ZU65032156@elgar.kettenis.dyndns.org> <8011-Sat24Aug2002123631+0300-eliz@is.elta.co.il> X-SW-Source: 2002-08/txt/msg00799.txt.bz2 Date: Sat, 24 Aug 2002 12:36:32 +0300 From: "Eli Zaretskii" > Date: Sat, 24 Aug 2002 02:35:30 +0200 (CEST) > From: Mark Kettenis > > This patch makes PROBLEMS mention two problems with using GDB on > FreeBSD. Would it be possible to give users some idea about the phenomena they will see as the result of these problems? As the text goes now, I don't think a user could decide whether some problem they see is due to this bug or not. Also, it might be a good idea to tell them how to work around the bug (I'm guessing "gcc -gdwarf-2" or some such?). Thanks for the suggestion. I checked in the attached patch. Index: ChangeLog from Mark Kettenis * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest workaround. Index: PROBLEMS =================================================================== RCS file: /cvs/src/src/gdb/PROBLEMS,v retrieving revision 1.7 diff -u -p -r1.7 PROBLEMS --- PROBLEMS 23 Aug 2002 23:05:39 -0000 1.7 +++ PROBLEMS 24 Aug 2002 14:27:44 -0000 @@ -17,8 +17,11 @@ i386-*-freebsd[34]* There is a bug (bin/41671) in FreeBSD's gcc that causes it to emit bad debug information when using the stabs format (which is the default). -In earlier versions of GDB the effects were rather limited, but -starting with GDB 5.3 the influence is much more prominent. +As a result GDB tends to place breakpoints on functions before the +function prologue, and information about function parameters and local +variables is lost. In earlier versions of GDB the effects were rather +limited, but starting with GDB 5.3 the influence is much more +prominent. As a workaround, compile your code with -gdwarf-2. hppa2.0-hp-hpux10.20