* Who is corinna?
@ 2012-07-29 17:09 Bernd Prager
2012-07-30 3:47 ` Christopher Faylor
0 siblings, 1 reply; 6+ messages in thread
From: Bernd Prager @ 2012-07-29 17:09 UTC (permalink / raw)
To: cygwin
All,
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?
I am using
CYGWIN_NT-5.1 ny015GZVTL1 1.7.16(0.262/5/3) 2012-07-20 22:55 i686 Cygwin
GNU gdb (GDB) 7.3.50.20111026-cvs (cygwin-special)
g++ (GCC) 4.5.3
ln (GNU coreutils) 8.15
Thank you for any help.
-- Bernd
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Who is corinna?
2012-07-29 17:09 Who is corinna? Bernd Prager
@ 2012-07-30 3:47 ` Christopher Faylor
2012-07-30 9:13 ` Corinna Vinschen
2012-07-30 11:38 ` Bernd Prager
0 siblings, 2 replies; 6+ messages in thread
From: Christopher Faylor @ 2012-07-30 3:47 UTC (permalink / raw)
To: cygwin
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/
cgf
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Who is corinna?
2012-07-30 3:47 ` Christopher Faylor
@ 2012-07-30 9:13 ` Corinna Vinschen
2012-07-30 15:58 ` Andrew DeFaria
2012-07-30 11:38 ` Bernd Prager
1 sibling, 1 reply; 6+ messages in thread
From: Corinna Vinschen @ 2012-07-30 9:13 UTC (permalink / raw)
To: cygwin
On Jul 29 23:47, 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/
Yep, that's me, more or less. Except I'm written with one r and two n,
I'm larger and skinnier in proportion, have different hair, eye, and
skin color, rather doubtful actor skills, and I'm probably paid a teeny
little bit less for my job. But otherwise, yes, that's me.
Corinna
P.S.: If you want to debug Cygwin itself, you should install the
cygwin-debuginfo package.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Who is corinna?
2012-07-30 3:47 ` Christopher Faylor
2012-07-30 9:13 ` Corinna Vinschen
@ 2012-07-30 11:38 ` Bernd Prager
2012-07-30 12:20 ` Corinna Vinschen
1 sibling, 1 reply; 6+ messages in thread
From: Bernd Prager @ 2012-07-30 11:38 UTC (permalink / raw)
To: cygwin
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?
Anybody else stumbled across this issue?
Thank you for your help,
-- Bernd
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Who is corinna?
2012-07-30 11:38 ` Bernd Prager
@ 2012-07-30 12:20 ` Corinna Vinschen
0 siblings, 0 replies; 6+ messages in thread
From: Corinna Vinschen @ 2012-07-30 12:20 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Who is corinna?
2012-07-30 9:13 ` Corinna Vinschen
@ 2012-07-30 15:58 ` Andrew DeFaria
0 siblings, 0 replies; 6+ messages in thread
From: Andrew DeFaria @ 2012-07-30 15:58 UTC (permalink / raw)
To: cygwin
On 07/30/2012 02:12 AM, Corinna Vinschen wrote:
>> As to who Corrina is, here's a link:
>>
>> http://www.imdb.com/title/tt0109484/
> Yep, that's me, more or less. Except I'm written with one r and two n,
> I'm larger and skinnier in proportion, have different hair, eye, and
> skin color, rather doubtful actor skills, and I'm probably paid a teeny
> little bit less for my job. But otherwise, yes, that's me.
Well we know you're not Whoopi - but are you Tina?
http://www.imdb.com/name/nm0001499/
--
Andrew DeFaria <http://defaria.com>
Cannot find REALITY.SYS. Universe halted.
--
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-07-30 15:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-29 17:09 Who is corinna? Bernd Prager
2012-07-30 3:47 ` Christopher Faylor
2012-07-30 9:13 ` Corinna Vinschen
2012-07-30 15:58 ` Andrew DeFaria
2012-07-30 11:38 ` Bernd Prager
2012-07-30 12:20 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).