Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't get Global Breakpoint to work in Kepler - Hello World
Can't get Global Breakpoint to work in Kepler - Hello World [message #1234328] Tue, 21 January 2014 17:52 Go to next message
Pelle Svensson is currently offline Pelle Svensson
Messages: 2
Registered: May 2013
Junior Member
Hi,

1. Test application

- CDT / Project Explorer / New / C++ Project
Name:'Hellow Gdb'
Type: Hello World C++ Project
Tool: Linux GCC
Finnish

- Build
- Debug As / 1. Local C++ Application
- Step until exit
- Terminate and Remove 'Hello Gdb'

2. Global breakpoint

- Put a global breakpoint at HelloGdb.cpp:14 return 0;
- Start debug session.
- Hit F8 run

Program exit no break at global breakpoint!

Using:
Eclipse Version 4.3.1 (Kepler)
CDT:
8.2.1.201310081 org.eclipse.cdt
5.2.0.201310081 org.eclipse.cdt.util
7.2.0.201310081 org.eclipse.cdt.debug.gdbjtag
7.2.1.201310081 org.eclipse.cdt.gdb
GNU gdb (GDB) Fedora 7.6.1-46.fc19
This GDB was configured as "x86_64-redhat-linux-gnu".

Anyone willing to test if this is the case in Kepler?

/Pelle




Re: Can't get Global Breakpoint to work in Kepler - Hello World [message #1234622 is a reply to message #1234328] Wed, 22 January 2014 11:57 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc Khouzam
Messages: 278
Registered: July 2009
Senior Member
You can look at the 'gdb traces' to see in more detail what is happening:
http://wiki.eclipse.org/CDT/User/FAQ#I.27ve_been_asked_for_.27gdb_traces.27.2C_where_can_I_find_them.3F

Marc
Re: Can't get Global Breakpoint to work in Kepler - Hello World [message #1234635 is a reply to message #1234622] Wed, 22 January 2014 12:43 Go to previous message
Pelle Svensson is currently offline Pelle Svensson
Messages: 2
Registered: May 2013
Junior Member
There are no reference to any global breakpoint in the gdb trace.

I did a test with a default Eclipse/CDT build (CDT_8_2_1.zip) and there are no global breakpoints at all in that one. I'm running a Eclipse version distributed with Fedora 19 and they probably added some other plugins.

My actual problem with the breakpoints was that forked processes couldn't be debugged and thereby focus on my first problem 'Global Breakpoints'

Second problem with normal breakpoints resulting in following error after fork:

Error in re-setting breakpoint 3: Warning:
Cannot insert breakpoint 3.
Error accessing memory address 0xc18: Input/output error.

This was due to gcc/g++ options -fPIE -pie -rdynamic

So problem is solved now.

index.php/fa/17308/0/

Thanks
/Pelle
  • Attachment: Untitled.png
    (Size: 44.02KB, Downloaded 139 times)
Previous Topic:Launch eclipse session without executable
Next Topic:Multiple Src Folders
Goto Forum:
  


Current Time: Mon Sep 22 04:21:01 GMT 2014

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

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