This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Who is corinna?

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

No such file or directory.

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:

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:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]