Date: Sun, 26 Jan 1997 16:15:54 +0200 (IST) From: Eli Zaretskii To: Scott Frazer cc: djgpp AT delorie DOT com Subject: Re: GDB and static variables In-Reply-To: <5c849s$rer@cnn.exu.ericsson.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 23 Jan 1997, Scott Frazer wrote: > Yes, the same thing happens without the "-m486". I have found that > if I declare things like: > > static int a_variable = { }; > > static struct a_struct_type a_struct = { { } }; > > GDB will have the proper debugging information. While this is both > a pain and ugly, it allows me to continue development. I downloaded > the sources for GDB and looked around in the source code hoping for > something obvious to be wrong, but didn't have any luck. Maybe > someone else can step up to the plate ... This might be just the right case to post a bug report to bug-gnu-utils AT prep DOT ai DOT mit DOT edu and/or bug-gdb AT prep DOT ai DOT mit DOT edu.