From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a4469a3a933d9276 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-02 08:03:01 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: harryr@ssd.fsi.com (Harry Rockefeller) Newsgroups: comp.lang.ada Subject: Re: gdb 5.2.1 doesn't know Ada, gcc 3.2.1 does Date: 2 Jan 2003 08:03:01 -0800 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1041523381 2438 127.0.0.1 (2 Jan 2003 16:03:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Jan 2003 16:03:01 GMT Xref: archiver1.google.com comp.lang.ada:32450 Date: 2003-01-02T16:03:01+00:00 List-Id: hebisch@math.uni.wroc.pl (Waldek Hebisch) wrote in message news:... > The question seem to be almost a frequently asked question but as > long as I can see there is no really good answer (this may explain > the silence). I hit the same problem (AFAIKS) -- gcc-3.x on Linux > by default uses Dwarf-2 debugging format. It seems that Dwarf-2 > debugging does not work with gdb for Ada (and also Pascal). The > good answer would be to implement the missing functionality (but > we are talking about free software so the one who needs it should > do the work...). > There are two possible workarounds: > -- use stabs debug format (-gstabs or -gstabs+ instead of -g) > -- make gdb treat unknown language as C. The -gstabs option supplied to gcc 3.2.1 works for me. I'm happy now. Here is blurb from the gdb info page: _Warning:_ GDB can only debug C++ code if you use the proper compiler. Typically, C++ debugging depends on the use of additional debugging information in the symbol table, and thus requires special support. In particular, if your compiler generates a.out, MIPS ECOFF, RS/6000 XCOFF, or ELF with stabs extensions to the symbol table, these facilities are all available. (With GNU CC, you can use the `-gstabs' option to request stabs debugging extensions explicitly.) Where the object code format is standard COFF or DWARF in ELF, on the other hand, most of the C++ support in GDB does _not_ work. Thank you for your help.