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: 2002-12-31 10:20:39 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!204.71.34.3!newsfeed.cwix.com!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!t-online.de!newsfeed.tpinternet.pl!newsfeed.gazeta.pl!news.internetia.pl!news.nask.pl!uw.edu.pl!news.icm.edu.pl!pwr.wroc.pl!panorama.wcss.wroc.pl!hebisch From: hebisch@math.uni.wroc.pl (Waldek Hebisch) Newsgroups: comp.lang.ada Subject: Re: gdb 5.2.1 doesn't know Ada, gcc 3.2.1 does Date: 31 Dec 2002 18:20:41 GMT Organization: Politechnika Wroclawska Message-ID: References: NNTP-Posting-Host: hera.math.uni.wroc.pl X-Trace: panorama.wcss.wroc.pl 1041358841 22813 156.17.86.1 (31 Dec 2002 18:20:41 GMT) X-Complaints-To: abuse@news.pwr.wroc.pl NNTP-Posting-Date: 31 Dec 2002 18:20:41 GMT X-Newsreader: TIN [version 1.2 PL2] Xref: archiver1.google.com comp.lang.ada:32413 Date: 2002-12-31T18:20:41+00:00 List-Id: Harry Rockefeller (harryr@ssd.fsi.com) wrote: : harryr@ssd.fsi.com (Harry Rockefeller) wrote in message news:... : I was wondering why there was no response. I think I : misdiagnosed the problem and so will provide a bit more : detail too. : > I have a gentoo Linux system and applied the : > bugzilla patch to get Ada built into gcc 3.2.1 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 first workaround requires that Ada runtime is compiled with -gstabs too, otherwise gdb dies when getting into runtime (actually I have not tried recompiling runtime, but checked that debugging seem to work as long as as stabs are used). The second approach requires patching gdb (I did a little dirty hack to this end, may post a patch if there is nothing better around), and using C syntax (in particular using mangled names). I would like to hear about good answer (no, I have no plans to do more hacking on gdb). -- Waldek Hebisch hebisch@math.uni.wroc.pl or hebisch@hera.math.uni.wroc.pl