From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs-cvs on Cygwin Date: Mon, 25 Sep 2006 00:46:08 +0200 (MET DST) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1159138003 13651 80.91.229.2 (24 Sep 2006 22:46:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Sep 2006 22:46:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 25 00:46:41 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GRck3-0003Zf-EW for ged-emacs-devel@m.gmane.org; Mon, 25 Sep 2006 00:46:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRck2-0007CN-OG for ged-emacs-devel@m.gmane.org; Sun, 24 Sep 2006 18:46:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GRcjq-0007B5-Mb for emacs-devel@gnu.org; Sun, 24 Sep 2006 18:46:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GRcjq-0007AO-4r for emacs-devel@gnu.org; Sun, 24 Sep 2006 18:46:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GRcjp-0007AH-UQ for emacs-devel@gnu.org; Sun, 24 Sep 2006 18:46:17 -0400 Original-Received: from [141.108.26.25] (helo=postino2.roma1.infn.it) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GRco4-0005Iw-Pi; Sun, 24 Sep 2006 18:50:41 -0400 Original-Received: from ax0rm1.roma1.infn.it (ax0rm1.roma1.infn.it [141.108.26.19]) by postino2.roma1.infn.it (8.12.11/8.12.11) with ESMTP id k8OMkCAA004527; Mon, 25 Sep 2006 00:46:12 +0200 Original-Received: from localhost (graziosi@localhost) by ax0rm1.roma1.infn.it (8.9.3/8.9.3) with ESMTP id AAA12206; Mon, 25 Sep 2006 00:46:08 +0200 (MET DST) Original-To: Eli Zaretskii In-Reply-To: X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.0.3.2, Antispam-Data: 2006.9.24.153443 X-PerlMx-Spam: Gauge=IIIIIII, Probability=7%, Report='__CP_URI_IN_BODY 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:60180 Archived-At: On Sat, 23 Sep 2006, Eli Zaretskii wrote: > > Date: Sat, 23 Sep 2006 18:49:59 +0200 (MET DST) > > From: Angelo Graziosi > > cc: emacs-devel@gnu.org > > > > > > How about the following compilation command--does it also cause GDB to > > > complain about debugging symbols? > > > > > > gcc -gdwarf-2 -g3 hello.c -o hello > > > > NO! I does NOT!!! > > Good! > > > (gdb) info source > > Current source file is hello.c > > Compilation directory is /tmp/ > > Located in /tmp/hello.c > > Contains 7 lines. > > Source language is c. > > Compiled with stabs debugging format. > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > This doesn't look right: it should have told ``with DWARF 2 debugging > format''. That's what the -gdwarf-2 switch is about. I wonder what > the heck is going on here. > > Can you please add -v to the compilation command line, like this: > > gcc -v -gdwarf-2 -g3 hello.c -o hello > > and post here everything that is displayed by the compiler? > Following this thread http://cygwin.com/ml/cygwin/2006-06/msg00855.html, I have added -ggdb with the following result: -------------------------------------------- $ gcc -v -ggdb -gdwarf-2 -g3 hello.c -o hello Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs Configured with: /usr/build/package/orig/test.new4/gcc-3.4.4-2/configure --verbo se --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexe cdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languag es=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --en able-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-aw t --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thread s=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug Thread model: posix gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) /usr/lib/gcc/i686-pc-cygwin/3.4.4/cc1.exe -quiet -v -dD -D__CYGWIN32__ -D__CYGW IN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/gcc/i686-pc-cygwin/3.4.4/../ ../../../include/w32api -idirafter /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../.. /i686-pc-cygwin/lib/../../include/w32api hello.c -quiet -dumpbase hello.c -mtune =pentiumpro -auxbase hello-ggdb -gdwarf-2 -g3 -version -o /c/DOCUME~1/Angelo/IMP OST~1/Temp/ccNuDw40.s ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i6 86-pc-cygwin/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686 -pc-cygwin/lib/../../include/w32api" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc/i686-pc-cygwin/3.4.4/include /usr/include /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../include/w32api End of search list. GNU C version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) (i686-pc-cygwin ) compiled by GNU C version 3.4.4 (cygming special, gdc 0.12, using dmd 0. 125). GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/as.exe -o /c/D OCUME~1/Angelo/IMPOST~1/Temp/ccGvKaO4.o /c/DOCUME~1/Angelo/IMPOST~1/Temp/ccNuDw4 0.s /usr/lib/gcc/i686-pc-cygwin/3.4.4/collect2.exe -Bdynamic --dll-search-prefix=cy g -o hello.exe /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../crt0.o -L/usr/lib/gcc/ i686-pc-cygwin/3.4.4 -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -L/usr/lib/gcc/i686-pc- cygwin/3.4.4/../../.. /c/DOCUME~1/Angelo/IMPOST~1/Temp/ccGvKaO4.o -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc $ gdb ./hello.exe GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-cygwin"... (gdb) start Breakpoint 1 at 0x401075: file hello.c, line 4. Starting program: /tmp/hello.exe Loaded symbols for /c/WINDOWS/system32/ntdll.dll Loaded symbols for /c/WINDOWS/system32/kernel32.dll Loaded symbols for /usr/bin/cygwin1.dll Loaded symbols for /c/WINDOWS/system32/advapi32.dll Loaded symbols for /c/WINDOWS/system32/rpcrt4.dll main () at hello.c:4 4 { (gdb) info source Current source file is hello.c Compilation directory is /tmp Located in /tmp/hello.c Contains 7 lines. Source language is c. Compiled with DWARF 2 debugging format. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Includes preprocessor macro info. (gdb) -------------------------------------------- Now it says 'Compiled with DWARF 2 debugging format.' !!! Cheers, Angelo.