delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/07/30/08:20:20

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 30 Jul 2012 14:16:12 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Who is corinna?
Message-ID: <20120730121612.GA14418@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <50156DBD DOT 8030003 AT prager DOT ws> <20120730034736 DOT GA10607 AT ednor DOT casa DOT cgf DOT cx> <501671DD DOT 9060208 AT prager DOT ws>
MIME-Version: 1.0
In-Reply-To: <501671DD.9060208@prager.ws>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jul 30 07:37, Bernd Prager wrote:
> On 7/29/2012 11:47 PM, Christopher Faylor wrote:
> >On Sun, Jul 29, 2012 at 01:07:09PM -0400, Bernd Prager wrote:
> >>I am trying to debug a compiled c++ program with gdb.
> >>
> >>When I start gdb it claims the symbols are loaded. When I try to list
> >>the source code I get:
> >>
> >>(gdb) list
> >>
> >>/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/winsup/cygwin/crt0.c:
> >>No such file or directory.
> >>         in
> >>/home/corinna/src/cygwin/cygwin-1.7.15/cygwin-1.7.15-1/src/cygwin-1.7.15/winsup/cygwin/crt0.c
> >>
> >>When I try to single step trough the program I get:
> >>
> >>(gdb) start
> >>Temporary breakpoint 1 at 0x401173
> >>Starting program: /home/bernd/Test/a.exe
> >>[New Thread 3820.0x8a0]
> >>[New Thread 3820.0x41c]
> >>
> >>Temporary breakpoint 1, 0x00401173 in main ()
> >>(gdb) next
> >>Single stepping until exit from function main,
> >>which has no line number information.
> >>0x004011c2 in _fu0___ZSt4cout ()
> >>
> >>Does anybody has an idea what is going on?
> >Sure looks like your program is not compiled with debugging information,
> >i.e., "gcc -g" was not used when compiling and linking the program.
> >
> >As to who Corrina is, here's a link:
> >
> >http://www.imdb.com/title/tt0109484/
> >
> Thank you. That was embarrassingly the case.
> Now to the root of my confusion: Autotools used to generate a
> stripped and a debug version.
> I could run the debugger: gdb .lib/a.exe and the debug information
> were there.
> That seems to fail now.
> 
> The generated Makefile has a line that is commented:
> #am__append_1 = -Wall -Wextra -ggdb -O0
> am__append_2 = -O2
> 
> Could that have anything to do with my missing debug information?

Definitely.  I suggest reading the `info gcc' pages.  They explain
all the options, including the -g debugging options.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019