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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11035d,da5b71ffd7e4b4f3 X-Google-Attributes: gid11035d,public X-Google-Thread: 103376,f13c27e864abca4a,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-15 17:51:26 PST Path: nntp.gmd.de!xlink.net!news.dfn.de!swiss.ans.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!news.trw.com!gatekeeper.svl.trw.com!macsac03.esl.com!user From: cary@svl.trw.com (Cary Jamison) Newsgroups: comp.unix.solaris,comp.lang.ada Subject: GCC on Sparc (was Re: GCC/GDB for UnixWare) Followup-To: comp.unix.solaris,comp.lang.ada Date: 16 Nov 1994 01:51:26 GMT Organization: TRW ASG Distribution: inet Message-ID: References: <39707e$k94@csbh.mhv.net> <39de69$69g@potogold.rmii.com> <3a5r6o$rnb@hustle.rahul.net> NNTP-Posting-Host: macsac03.esl.com Xref: nntp.gmd.de comp.unix.solaris:31104 comp.lang.ada:16825 Date: 1994-11-16T01:51:26+00:00 List-Id: In article <3a5r6o$rnb@hustle.rahul.net>, "Ronald F. Guilmette" wrote: > The truth is that the vendor (Cygnus) has already acted to `fix' this > problem. You can already get versions of GCC and G++ and GDB which > know how to write (and read) STABS-in-ELF. Just call Cygnus and sign > up as a support customer. (This functionality may be available in the > FSF versions of these tools someday also. For all I know, it may already > be available in the FSF versions. It certainly already is if you happen > to be working on a Sparc. Just don't try using GCC or G++ with Sun's > DBX debugger or using Sun's C or C++ compilers with GDB. This doesn't > work because Sun's STABS are different from, and incompatible with Cygnus' > STABS.) I've got an Ada application that calls C routines. I'm using SunAda 2.1 and GCC 2.5.8 on Solaris 2.3. The GCC manual says it can produce stabs info either with or without extra GDB stuff. Are you saying that without the extra GDB stuff, it still isn't compatible (-gstabs)? The SunAda debugger says it can debug C routines, but I'm having trouble getting it to work properly. One problem is that it crashes with a signal 11 if I turn on 'set verbose on' in the .dbrc file, which it says to do to debug C. Has anyone else got this to work, either with GCC or Sun's CC? (SunAda also says to compile C with -xs, from reading the man pages, it appears I can do the same with GCC -Wa,-s.) My next step is to try to debug the Ada program in GDB! I hope I can at least step through the C code I want to look at. -- Cary Jamison cary@svl.trw.com