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-Thread: 103376,594ba004bb886c71 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone.bc.net!nntp.cs.ubc.ca!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!news02.tsnz.net!news.iconz.co.nz From: Craig Carey Newsgroups: comp.lang.ada Subject: Re: gcc 3.4.2 Ada Message-ID: References: <4155167B.C0DC007B@yahoo.com> <0Pk5d.9793$gG4.888@newsread1.news.pas.earthlink.net> X-Newsreader: Forte Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Original-NNTP-Posting-Host: ip-210-185-9-6.internet.co.nz X-Original-Trace: 27 Sep 2004 21:49:12 +1200, ip-210-185-9-6.internet.co.nz Organization: "ICONZ Ltd." Date: Mon, 27 Sep 2004 22:01:37 +1200 NNTP-Posting-Host: 210.48.22.5 X-Complaints-To: abuse@tsnz.net X-Trace: news02.tsnz.net 1096279299 210.48.22.5 (Mon, 27 Sep 2004 22:01:39 NZST) NNTP-Posting-Date: Mon, 27 Sep 2004 22:01:39 NZST Xref: g2news1.google.com comp.lang.ada:4251 Date: 2004-09-27T22:01:37+12:00 List-Id: On 26 Sep 2004 11:06:37 +0200, Pascal Obry wrote: > >Jeffrey Carter writes: > >> There also appears to be a set of files that you have to download if you >> don't have mingw installed. Now we're getting into the area of 5 files. > >Indeed, you also need the mingw runtime, binutils and win32 packages. But this >is no that terrible. > >Pascal. AdaCore seems to be withholding changes to Gdb. The reasonong I got (from Mr Hilfinger of AdaCore) was incomplete or wrong or incorrect or hazy or wrong. Below are instructions on how to compile the CVS gdb in Cygwin. $ export PATH=/l/mingw/bin:$PATH # :set up is simpler in last version $ gcc -v Reading specs from l:/mingw/bin/../lib/gcc/mingw32/3.4.1/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java -awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.1 (mingw special) $ L:/mingw/bin/gnatmake ptun.adb \ -IJ:/Ada/Obj -I...[lines of -I includes].. \ -gnata -gnato -gnatq -gnatf -gnatU -i -O0 -g -gnatVa -gnatwacfHlpru \ -bargs -E -p -we -O -s -static -r \ -largs -v -v -L. -luser32 -lgdi32 -lcomdlg32 -lwsock32 -laddr2line The copmpilation almost succeeds. ... gnatlink ptun.ali -g -v -v -L. -luser32 -lgdi32 -lcomdlg32 -lwsock32 -laddr2line ... Thread model: win32 gcc version 3.4.1 (mingw special) l:/mingw/bin/../libexec/gcc/mingw32/3.4.1/collect2.exe -Bdynamic -o ptun ... /ptun3-fg.o ./ptun4.o -luser32 -lgdi32 -lcomdlg32 -lwsock32 -laddr2line l :/mingw/lib/gcc/mingw32/3.4.1/adalib/libgnarl.a l:/mingw/lib/gcc/mingw32/ 3.4.1/adalib/libgnat.a --stack=0x800000,0x1000 -lbfd -liberty -lmingwthrd -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladva pi32 -lshell32 -lmingwthrd -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt l:/mingw/bin/../lib/gcc/mingw32/3.4.1/crtend.o J:/Ada/tope/src/Tope\/libaddr2line.a(gnaddr2line.o)(.text+0x17d):gnaddr2l ine.c: undefined reference to `bfd_scan_vma' J:/Ada/tope/src/Tope\/libaddr2line.a(gnaddr2line.o)(.text+0x1c2):gnaddr2l ine.c: undefined reference to `bfd_map_over_sections' J:/Ada/tope/src/Tope\/libaddr2line.a(gnaddr2line.o)(.text+0x3ed):gnaddr2l ine.c: undefined reference to `bfd_openr' ... J:/Ada/tope/src/Tope\/libaddr2line.a(budemang.o)(.text+0xd5):budemang.c: undefined reference to `xstrdup' collect2: ld returned 1 exit status gnatlink: cannot call l:\mingw\bin\gcc.exe gnatmake: *** link failed. How to compile Gdb in Cygwin. The GUI stuff does not build, in Win32 [1] Edit the "configure" file and change the line noconfigdirs="" into: noconfigdirs="tcl expect" The Cygwin Gcc 3.3.3 can be used: ../src/configure --disable-tui --disable-shared --prefix=.... make all The result is not Ada aware. I conclude that AdaCore is keeping the Ada awareness feature out of Gdb. Not much of the new Gdb (Ada aware) source code is sent up to Redhat. The withholding is about maximal. The criterion for disclosure seems to be: upload if C programmers have to adapt eventually to some AdaCore change. When I built the Gdb of September 2004. it not understand that ".all" dereferences a pointer, and that major bug of Gvd 3.15 and Gdb bungling the interpretation of path names, is still not fixed (and I even sent in a bug report complaining that the last usable free Gvd+Gdb duo, was of version 3.14p). I don't know what reasoning is provided to AdaCore paying customers in Germany and USA. -- Craig Carey