emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Emacs-cvs on Cygwin


From: Angelo Graziosi
Subject: Re: Building Emacs-cvs on Cygwin
Date: Mon, 25 Sep 2006 00:46:08 +0200 (MET DST)

On Sat, 23 Sep 2006, Eli Zaretskii wrote:

> > Date: Sat, 23 Sep 2006 18:49:59 +0200 (MET DST)
> > From: Angelo Graziosi <address@hidden>
> > cc: address@hidden
> > > 
> > > 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]