User forums > Help

Problem with debugging

<< < (4/5) > >>

Jenna:
I can confirm this (fedora 19 64bit with gcc 4.8.1 and gdb 7.6).
It does not work from commandline either.
Or more exactly, it stops at the bp, but it does not print that it has stopped:


--- Quote from: all lines end with cr ---$ gdb bin/Debug/test
GNU gdb (GDB) Fedora (7.6-32.fc19)
[...]
This GDB was configured as "x86_64-redhat-linux-gnu".
[...]
Reading symbols from /tmp/test/bin/Debug/test...done.
(gdb) break main.cpp:7
Breakpoint 1 at 0x400874: file /tmp/test/main.cpp, line 7.
(gdb) run
Starting program: /tmp/test/bin/Debug/test

Breakpoint 1, main () at /tmp/test/main.cpp:7
Missing separate debuginfos, use: debuginfo-install glibc-2.17-11.fc19.x86_64 libgcc-4.8.1-1.fc19.x86_64 libstdc++-4.8.1-1.fc19.x86_64
(gdb) n
Hello world!
(gdb)
--- End quote ---


--- Quote from: all lines end with lf ---$ gdb bin/Debug/test
[...]
Reading symbols from /tmp/test/bin/Debug/test...done.
(gdb) break main.cpp:7
Breakpoint 1 at 0x400874: file /tmp/test/main.cpp, line 7.
(gdb) run
Starting program: /tmp/test/bin/Debug/test

Breakpoint 1, main () at /tmp/test/main.cpp:7
7       cout << "Hello world!" << endl;
Missing separate debuginfos, use: debuginfo-install glibc-2.17-11.fc19.x86_64 libgcc-4.8.1-1.fc19.x86_64 libstdc++-4.8.1-1.fc19.x86_64
(gdb) n
Hello world!
8       return 0;
(gdb)

--- End quote ---

Didn't we haveusers reporting similar issues on mac ?
Might this be related or do the (more or less) new (more or less linux based) mac's use lf (or crlf, that works also) all the time ?

oBFusCATed:

--- Quote from: jens on July 21, 2013, 01:57:47 am ---Didn't we haveusers reporting similar issues on mac ?

--- End quote ---
I don't think so. But there are other similar reports where we fail to detect when the debugger has stopped (after stepping into, set next statement and so on).
I've reproduced it, too, and I'll try to fix it.

oBFusCATed:
OK, I have a patch that should fix this and many similar problems.
The patch can be downloaded from here: http://cmpt.benbmp.org/codeblocks/patches/dbg/cb.dbg.stop.on.break.patch

Please try and report if there are any regressions introduced with this patch.

The patch should fix:
1. The problem reported in this topic
2. Executing step into and the code is inavailable
3. Set next statement, where there are errors

@Morten: I think this should fix stepping problem you've reported in the past.

I won't commit it for a while to see if it works with my workflows at least. :)

G-Shadow:
I confirm, in that version (svn 9232) bug is fixed. Sorry for such late answer.

oBFusCATed:
With or without the patch?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version