From: Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>
Cc: emacs-devel@gnu.org
Subject: Re: Building Emacs-cvs on Cygwin
Date: Mon, 25 Sep 2006 00:46:08 +0200 (MET DST) [thread overview]
Message-ID: <Pine.OSF.4.21.0609250039410.16574-100000@ax0rm1.roma1.infn.it> (raw)
In-Reply-To: <uk63ul7e0.fsf@gnu.org>
On Sat, 23 Sep 2006, Eli Zaretskii wrote:
> > Date: Sat, 23 Sep 2006 18:49:59 +0200 (MET DST)
> > From: Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>
> > 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.
next prev parent reply other threads:[~2006-09-24 22:46 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-19 23:49 Building Emacs-cvs on Cygwin Angelo Graziosi
2006-09-20 3:29 ` Eli Zaretskii
2006-09-20 9:05 ` Angelo Graziosi
2006-09-20 21:08 ` Eli Zaretskii
2006-09-20 22:02 ` Andreas Schwab
2006-09-20 22:41 ` Building Emacs-cvs on Cygwin (Mystery!) Angelo Graziosi
2006-09-21 3:31 ` Eli Zaretskii
2006-09-21 22:20 ` Angelo Graziosi
2006-09-22 13:19 ` Eli Zaretskii
2006-09-22 23:08 ` Angelo Graziosi
2006-09-22 23:22 ` Angelo Graziosi
2006-09-24 13:02 ` Angelo Graziosi
2006-09-23 10:33 ` Building Emacs-cvs on Cygwin Angelo Graziosi
2006-09-23 15:15 ` Eli Zaretskii
2006-09-23 16:49 ` Angelo Graziosi
2006-09-23 19:17 ` Eli Zaretskii
2006-09-23 21:19 ` Angelo Graziosi
2006-09-24 7:41 ` Eli Zaretskii
2006-09-24 22:46 ` Angelo Graziosi [this message]
2006-09-25 3:26 ` Eli Zaretskii
2006-09-25 12:56 ` Angelo Graziosi
2006-09-25 19:57 ` Eli Zaretskii
2006-09-26 0:06 ` Angelo Graziosi
2006-09-26 3:22 ` Eli Zaretskii
2006-09-26 12:48 ` Angelo Graziosi
2006-09-26 20:10 ` Eli Zaretskii
2006-09-26 22:18 ` Angelo Graziosi
2006-09-27 3:35 ` Eli Zaretskii
2006-09-27 16:52 ` Angelo Graziosi
2006-09-27 18:22 ` Eli Zaretskii
2006-09-28 10:18 ` Angelo Graziosi
2006-09-30 9:30 ` Eli Zaretskii
2006-09-30 10:16 ` Angelo Graziosi
2006-09-30 14:47 ` Eli Zaretskii
2006-09-30 16:49 ` Angelo Graziosi
2006-10-01 16:54 ` Eli Zaretskii
2006-10-01 21:29 ` Angelo Graziosi
2006-10-25 22:32 ` Angelo Graziosi
2006-10-26 7:48 ` Eli Zaretskii
2006-10-26 8:21 ` Angelo Graziosi
2006-10-26 8:57 ` Jason Rumney
2006-10-26 15:46 ` Angelo Graziosi
2006-10-27 8:41 ` Eli Zaretskii
2006-10-27 16:34 ` Angelo Graziosi
2006-10-28 0:16 ` Angelo Graziosi
2006-10-28 12:16 ` Eli Zaretskii
2006-10-29 11:13 ` Building Emacs-cvs on Cygwin (GCC summary) Angelo Graziosi
2006-10-26 10:12 ` Building Emacs-cvs on Cygwin Richard Stallman
2006-10-26 10:24 ` David Kastrup
2006-10-26 15:06 ` Eli Zaretskii
2006-10-26 15:12 ` David Kastrup
2006-10-27 8:17 ` Eli Zaretskii
2006-10-27 9:04 ` David Kastrup
2006-10-28 10:49 ` Eli Zaretskii
2006-10-29 18:45 ` Richard Stallman
2006-10-29 20:19 ` Eli Zaretskii
2006-10-30 19:16 ` Richard Stallman
2006-10-30 20:49 ` Eli Zaretskii
2006-10-26 20:40 ` Richard Stallman
2006-10-26 20:58 ` David Kastrup
2006-10-26 15:12 ` Eli Zaretskii
2006-10-26 16:18 ` Angelo Graziosi
2006-10-26 8:53 ` Richard Stallman
2006-10-26 15:08 ` Eli Zaretskii
2006-10-27 9:10 ` Richard Stallman
2006-09-30 17:00 ` Problems with 'make install' after the build of " Angelo Graziosi
2006-10-02 0:30 ` Giorgos Keramidas
2006-10-02 12:53 ` Kenichi Handa
2006-10-02 13:39 ` Giorgos Keramidas
2006-09-30 23:34 ` Building " Kim F. Storm
2006-10-01 10:28 ` Eli Zaretskii
2006-09-27 18:14 ` Angelo Graziosi
2006-09-25 20:42 ` Kim F. Storm
2006-09-24 2:10 ` Richard Stallman
2006-09-21 1:59 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.OSF.4.21.0609250039410.16574-100000@ax0rm1.roma1.infn.it \
--to=angelo.graziosi@roma1.infn.it \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.