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: Sat, 23 Sep 2006 18:49:59 +0200 (MET DST)


On Sat, 23 Sep 2006, Eli Zaretskii wrote:

> > Date: Sat, 23 Sep 2006 12:33:23 +0200 (MET DST)
> > From: Angelo Graziosi <address@hidden>
> > cc: address@hidden
> > 
> > Considere the following examples:
> > 
> > ---------------------------------------------------------
> > $ cat hello.c
> > #include <stdio.h>
> > 
> > int main()
> > {
> >     printf("Hello, World!");
> >     return 0;
> > }
> > 
> > $ gcc -g hello.c -o hello
> >      ^^^^^
> > 
> > $ 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
> > ar
> > welcome to change it and/or distribute copies of it under certain
> > condition
> > 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"...(no debugging symbols found)
> >                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > (gdb)
> 
> 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!!!


> 
> Also, if you type the following two commands after starting GDB, what
> does GDB say?
> 
>   (gdb) start
>   (gdb) info source
> 


I have copy/pasted the result:
-----------------------------------------------------------------
$ gcc -gdwarf-2 -g3 hello.c -o hello

$ 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"...         <== note this ====|
(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 stabs debugging format.
Does not include preprocessor macro info.
(gdb)
-----------------------------------------------------------------


Cheers,

   Angelo.





reply via email to

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