Article View: gnu.gdb.bug
Article #8798Bug in GDB 4.7: Debugging in shared libraries.
From: Dan R. Greening
Date: Thu, 10 Dec 1992 10:48
Date: Thu, 10 Dec 1992 10:48
30 lines
1904 bytes
1904 bytes
I regularly debug through a huge shared library with gdb. Occasionally gdb will do odd things like: Sometimes it will allow me to place a breakpoint, then never break at the location I specified. Sometimes when I hit a breakpoint or an abort statement, it will show the current program counter at the last line of the file that it's in. These two events occur on a Sparc, running 4.1.1. The entire library is compiled with gcc 2.3.2. It is possible that this is a known bug. If it is, then add my name to those who request it fixed. If it is NOT a known bug, I can supply the appropriate shared libraries and executables to make it happen. Be warned, the shared library is 3.6MB (including debugging information). Unfortunately, this bug has not lent itself to creating a small sample program...it happens infrequently, and when we rebuild, it sometimes disappears! When I have built and linked the library statically, it works. However, if you've ever tried building a 3.6MB library (takes a few minutes on a sparc 2), you probably know that debugging through a shared library is much quicker. Let me know how I should proceed. -- ____ \ /Dan Greening Software Transformation 1601 Saratoga-Sunnyvale Rd, #100 \/dgreen@sti.com (408) 973-8081 x313 Cupertino, CA 95014
Technical Details
Message-ID:
<1g8vihINN3gd@smurf.sti.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sti.com!dgreenShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,aece1ab87fc21b72,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1992-12-11 09:13:46 PST Newsgroups: gnu.gdb.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!sti.com!dgreen From: dgreen@sti.com (Dan R. Greening) Subject: Bug in GDB 4.7: Debugging in shared libraries. Message-ID: <1g8vihINN3gd@smurf.sti.com> Sender: gnulists@ai.mit.edu Organization: Software Transformation, Inc. Distribution: gnu Date: Thu, 10 Dec 1992 10:48:49 GMT Approved: bug-gdb@prep.ai.mit.edu Lines: 31