Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Breakpoints ignored
Breakpoints ignored [message #178102] Mon, 09 October 2006 14:24 Go to next message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

Hi,

I just updated eclipse (3.2.1) and CDT (3.1.1) on Linux but still my
breakpoints are ignored. What works is "to to line" in the same file -
that's all.

I use gdb/mi with mi2 but playing around with different settings didn't
help.

Any help is very much welcomed!!

Regards, Fabian
Re: Breakpoints ignored [message #178112 is a reply to message #178102] Mon, 09 October 2006 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

> I just updated eclipse (3.2.1) and CDT (3.1.1) on Linux but still my
> breakpoints are ignored. What works is "to to line" in the same file -
> that's all.
With verbose I could not see any breakpoint toggling. What should I see?
Run to line gives "85-exec-until cfs.cc:83"

Thanks, Fabian
Re: Breakpoints ignored - please help [message #178162 is a reply to message #178112] Tue, 10 October 2006 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

Should I see something when I do toggle a breakpoint in the verbose window?

This is my verbose output. I have an error at line 80:

50-gdb-set new-console
(gdb)
&"A syntax error in expression, near `-console'.\n"
A syntax error in expression, near `-console'.
50^error,msg="A syntax error in expression, near `-console'."


The implicit breakpoint in cfs.cc line 71 is the first command in main,
that works.

Any help is really appreciated!

Regards, Fabian

2-gdb-set confirm off
42^done
43-gdb-set width 0
(gdb)
43^done
44-gdb-set height 0
(gdb)
44^done
45-interpreter-exec console echo
(gdb)
45^done
46-gdb-show prompt
(gdb)
46^done,value="(gdb) "
47-gdb-set auto-solib-add on
(gdb)
47^done
48-gdb-set stop-on-solib-events 0
(gdb)
48^done
49-gdb-set stop-on-solib-events 1
(gdb)
49^done
50-gdb-set new-console
(gdb)
&"A syntax error in expression, near `-console'.\n"
A syntax error in expression, near `-console'.
50^error,msg="A syntax error in expression, near `-console'."
51-exec-arguments -t=5 /home/fwein/cfs-test/mechanics/cube2d/cube2d
(gdb)
51^done
52-environment-cd /home/fwein/olas
(gdb)
52^done
(gdb)
53-environment-directory /home/fwein/olas /home/fwein/olas/.settings ...
53^done,source-path=" /home/fwein/olas:/home/fwein/olas/.settings:/home/fwein/olas /Doc:/home/fwein/olas/Doc/AddDoc:/home/fwein/olas/Doc/Doxyge nConfig:/home/fwein/olas/Doc/Protokolle:/home/fwein/olas/Doc /html:/home/fwein/olas/TestSuite:/home/fwein/olas/TestSuite/ Laplacian2D:/home/fwein/olas/lib:/home/fwein/olas/lib/LINUXA MD64g:/home/fwein/olas/libsrc:/home/fwein/olas/libsrc/algsys :/home/fwein/olas/libsrc/external:/home/fwein/olas/libsrc/ex ternal/arpack:/home/fwein/olas/libsrc/external/hypre:/home/f wein/olas/libsrc/external/lapack:/home/fwein/olas/libsrc/ext ernal/pardiso:/home/fwein/olas/libsrc/graph:/home/fwein/olas /libsrc/makefilemach:/home/fwein/olas/libsrc/matvec:/home/fw ein/olas/libsrc/multigrid:/home/fwein/olas/libsrc/precond:/h ome/fwein/olas/libsrc/precond/ILDLPrecond:/home/fwein/olas/l ibsrc/solver:/home/fwein/olas/libsrc/testengine:/home/fwein/ olas/libsrc/testengine/driver:/home/fwein/olas/libsrc/utils: /home/fwein/olas/libsrc/utils/math:/home/fwein/olas/main:$cd ir:$cwd "
(gdb)
54 info threads
&"info threads\n"
&"No registers.\n"
54^done
(gdb)
55-data-list-register-names
55^done,register-names=["rax","rbx","rcx","rdx","rsi ","rdi","rbp","rsp","r8","r9","r10","r11","r12 ","r13","r14","r15","rip","eflags","cs","ss","ds ","es","fs","gs","st0","st1","st2","st3","st4 ","st5","st6","st7","fctrl","fstat","ftag","fiseg ","fioff","foseg","fooff","fop","xmm0","xmm1","xmm2 ","xmm3","xmm4","xmm5","xmm6","xmm7","xmm8","xmm9 ","xmm10","xmm11","xmm12","xmm13","xmm14","xmm15", "mxcsr"]
(gdb)
56-break-insert -t main
56^done,bkpt={number="1",type="breakpoint",disp="del",enabled= "y",addr="0x0000000000409a08",func="main",file="cfs.cc ",line="71",times="0"}
(gdb)
57-exec-run
57^running
(gdb)
~"Stopped due to shared library event\n"
Stopped due to shared library event
57*stopped,thread-id="0"
(gdb)
58 info program
&"info program\n"
~"\tUsing the running image of child process 18607.\n"
~"Program stopped at 0x2aeed0da2e20.\n"
~"It stopped at a breakpoint that has since been deleted.\n"
~"Type \"info stack\" or \"info registers\" for more information.\n"
58^done
(gdb)
59 info sharedlibrary
&"info sharedlibrary\n"
~"From To Syms Read Shared Object
Library\n"
~"0x00002aeed0d96a80 0x00002aeed0dab524 Yes
/lib64/ld-linux-x86-64.so.2\n"
59^done
(gdb)
60-exec-continue
60^running
(gdb)
~"[Thread debugging using libthread_db enabled]\n"
[Thread debugging using libthread_db enabled]
~"[New Thread 47205227071504 (LWP 18607)]\n"
[New Thread 47205227071504 (LWP 18607)]
&"warning: Lowest section in /usr/lib64/libicudata.so.34 is .hash at
00000000000000e8\n"
warning: Lowest section in /usr/lib64/libicudata.so.34 is .hash at
00000000000000e8
~"Stopped due to shared library event\n"
Stopped due to shared library event
60*stopped,thread-id="0"
(gdb)
61 info sharedlibrary
&"info sharedlibrary\n"
~"From To Syms Read Shared Object
Library\n"
~"0x00002aeed0d96a80 0x00002aeed0dab524 Yes
/lib64/ld-linux-x86-64.so.2\n"
~"0x00002aeed1022680 0x00002aeed11a69f8 Yes
/usr/lib64/libxerces-c.so.27\n"
~"0x00002aeed13ea920 0x00002aeed145c3b8 Yes
/usr/lib64/libtcl8.4.so\n"
~"0x00002aeed1587e70 0x00002aeed15d48f8 Yes
/usr/lib64/libblas.so.3\n"
~"0x00002aeed16e7460 0x00002aeed1756138 Yes
/usr/lib64/libgfortran.so.1\n"
~"0x00002aeed18b7570 0x00002aeed192d038 Yes
/usr/lib64/libstdc++.so.6\n"
~"0x00002aeed1a6dd30 0x00002aeed1aa2398 Yes /lib64/libm.so.6\n"
~"0x00002aeed1bdcf40 0x00002aeed1cb0c50 Yes /lib64/libc.so.6\n"
~"0x00002aeed1df1de0 0x00002aeed1dfaa88 Yes
/lib64/libgcc_s.so.1\n"
~"0x00002aeed1f02490 0x00002aeed1f0af48 Yes
/lib64/libpthread.so.0\n"
~"0x00002aeed2055ba0 0x00002aeed20d0f38 Yes
/usr/lib64/libicuuc.so.34\n"
~" Yes
/usr/lib64/libicudata.so.34\n"
~"0x00002aeed2ba40a0 0x00002aeed2ba4b18 Yes /lib64/libdl.so.2\n"
61^done
(gdb)
62-exec-continue
62^running
(gdb)
~"[Switching to Thread 47205227071504 (LWP 18607)]\n"
[Switching to Thread 47205227071504 (LWP 18607)]
62*stopped,thread-id="1",frame={addr="0x0000000000409a08",func= "main",args=[{name="argc",value="3"},{name="argv",value= "0x7fffd9d129c8"}],file="cfs.cc",fullname="/home/fwein/cfs/main/cfs.cc ",line="71"}
(gdb)
63 info threads
&"info threads\n"
~"* 1 Thread 47205227071504 (LWP 18607) main (argc=3,
argv=0x7fffd9d129c8) at cfs.cc:71\n"
63^done
(gdb)
64-stack-info-depth
64^done,depth="1"
(gdb)
65-stack-list-frames 0 1
65^done,stack=[frame={level="0",addr="0x0000000000409a08",func= "main",file="cfs.cc",fullname="/home/fwein/cfs/main/cfs.cc ",line="71"}]
(gdb)
66-data-list-changed-registers
66^done,changed-registers=["0","1","3","4","5","6 ","7","8","9","11","13","16","17","18","19", "32","34","40","41","42","56"]
(gdb)
67 info sharedlibrary
&"info sharedlibrary\n"
~"From To Syms Read Shared Object
Library\n"
~"0x00002aeed0d96a80 0x00002aeed0dab524 Yes
/lib64/ld-linux-x86-64.so.2\n"
~"0x00002aeed1022680 0x00002aeed11a69f8 Yes
/usr/lib64/libxerces-c.so.27\n"
~"0x00002aeed13ea920 0x00002aeed145c3b8 Yes
/usr/lib64/libtcl8.4.so\n"
~"0x00002aeed1587e70 0x00002aeed15d48f8 Yes
/usr/lib64/libblas.so.3\n"
~"0x00002aeed16e7460 0x00002aeed1756138 Yes
/usr/lib64/libgfortran.so.1\n"
~"0x00002aeed18b7570 0x00002aeed192d038 Yes
/usr/lib64/libstdc++.so.6\n"
~"0x00002aeed1a6dd30 0x00002aeed1aa2398 Yes /lib64/libm.so.6\n"
~"0x00002aeed1bdcf40 0x00002aeed1cb0c50 Yes /lib64/libc.so.6\n"
~"0x00002aeed1df1de0 0x00002aeed1dfaa88 Yes
/lib64/libgcc_s.so.1\n"
~"0x00002aeed1f02490 0x00002aeed1f0af48 Yes
/lib64/libpthread.so.0\n"
~"0x00002aeed2055ba0 0x00002aeed20d0f38 Yes
/usr/lib64/libicuuc.so.34\n"
~" Yes
/usr/lib64/libicudata.so.34\n"
~"0x00002aeed2ba40a0 0x00002aeed2ba4b18 Yes /lib64/libdl.so.2\n"
67^done
(gdb)
68-stack-list-arguments 0 0 0
68^done,stack-args=[frame={level="0",args=[name="argc",name= "argv"]}]
(gdb)
69-stack-list-locals 0
69^done,locals=[name="oClockTotal",name="scriptFileName",name= "FileHandler",name="traceDepth",name="xmlFile",name="msg ",name="cfsSchema",name="defaults",name="libmesh",name= "ptInputfile",name="ptMatHandler",name="myInfo",name="ptOut ",name="myTimeFunc",name="ptdriver",name="analysisType",name= "analysis",name="adaptspace",name="wTime",name="cTime"]
(gdb)
70-var-create - * argc
70^done,name="var1",numchild="0",type="int"
(gdb)
71-var-evaluate-expression var1
71^done,value="3"
(gdb)
72-var-create - * argv
72^done,name="var2",numchild="1",type="const char **"
(gdb)
73-var-evaluate-expression var2
73^done,value="0x7fffd9d129c8"
(gdb)
Re: Breakpoints ignored - solved [message #178186 is a reply to message #178162] Tue, 10 October 2006 14:23 Go to previous message
Eclipse UserFriend
Originally posted by: fwein.lse.eei.uni-erlangen.de

I solved the problem:

I have two projects in my workspace. main() is in B but finally
I want to debug A. A was the first project I imported and A is
also the name of the run/debug "configuration".

Up to now I tried breakpoints in B, in A the work and they have
the small hooks.

Fabian
Previous Topic:How to change the standard include paths for a cross compile project
Next Topic:UML Class Diagrams-plugin
Goto Forum:
  


Current Time: Thu Jul 18 23:29:17 GMT 2024

Powered by FUDForum. Page generated in 0.03698 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top