Date: Mon, 27 Jan 1997 11:48:08 +0100 (MET) From: Robert Hoehne Reply-To: Robert Hoehne To: Eli Zaretskii Cc: DJ Delorie , DJGPP workers Subject: Re: GDB and static variables In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Here now my remarks to that topic. Adding stabs support to gcc in DJGPP is very easy. (Defining only some few macros on go32.h). I'm working with this since a long time without any problems but with many improvements. But there are some problems which I will mention here and because of them I didn't want to send a patch to the FSF (but if you think I should after reading below, I will do it): The biggest problem is, that you cannot mix stabs and coff debugging information. In general this is possible but it prevents you from debugging any file which has both formats. I tried to find the reason for some days, but I hadn't success. I have located the misfeature to the corrupted line number information but couldn't fix it. The next problem is, which format should be the default for DJGPP? I'm using for my own stabs as default (selected with -g), and as Eli asked, there is no problem to select coff debugging with -gcoff. To DJ's question, how easy it is to add stabs support to the stock DJGPP debuggers (edbug and fsdb): Because I don not know so much about the stabs format (I'm only using it) I cannot say how hard it is, but if I see the large source files in GDB which handle the stabs debugging, I think it will be no easy task. BTW: My patch fixes also the bug with the '-dumpbase foo.cc' when compiling foo.cpp. Robert