This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Mention some problems with using GDB on FreeBSD


   Date: Sat, 24 Aug 2002 12:36:32 +0300
   From: "Eli Zaretskii" <eliz@is.elta.co.il>

   > Date: Sat, 24 Aug 2002 02:35:30 +0200 (CEST)
   > From: Mark Kettenis <kettenis@chello.nl>
   > 
   > 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  <kettenis@gnu.org>
	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]