Xref: news2.mv.net comp.os.msdos.djgpp:7961 From: muller AT ics-crm DOT u-strasbg DOT fr (Pierre Muller) Newsgroups: comp.os.msdos.djgpp Subject: Problem with debugging with GDB Date: 28 Aug 1996 08:19:40 GMT Organization: Institut Charles Sadron Lines: 40 Message-ID: <500ves$ktr@news.u-strasbg.fr> NNTP-Posting-Host: laocoon.u-strasbg.fr Mime-Version: 1.0 Content-Type: Text/Plain; charset=ISO-8859-1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I am working on adding debugging instructions to FPK pascal. FPK pascal is a free 32 bit pascal compiler. It creates an assembler file and then uses gnu as and gnu ld to make executables. I added stabs information into the assembly code, and wanted to use it with the GBD debugger. Here comes the problem : - when compiling to a.out-i386 BFD format, I can check with objdump --syms that I have all my symbols in the a.out file. But trying to load this file with the GBD debugger v4.12 with GO32 v1.12m3 GDB claims that a.out is not an executable format and doesn't know how to load it. Is that a bug of GBD v4.12 ? - I then tried using the coff-go32 output format and that works : GDB can load this file and "info variables" and "info functions" work. But now I have lost all types information as well as all sources files and line numbers !!!! Changing formats using objcopy gives the same result ! This is because these informations are not present in the coff-go32 format. Does anybody know howto keep these informations. When executing "objdump --stabs " to the coff-go32 I obtain a line telling No $GDB_SYMBOLS$ section present. How can I force this ?