1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/dsf-gdb
Simon Marchi 1333b20ec5 Avoid gdb bug in StepIntoSelectionTests for gdb <= 7.3
When a breakpoint is set directly at the start of a function, and you step
into that function, gdb <= 7.3 will generate a "stopped" event with two
reason fields. The first to indicate that the step range ended and the
other to indicate that a breakpoint was hit. While this is not really
correct from gdb to include the same field twice in a single event,
the implementation of MIRunControlEventProcessor_7_0 will generate two
distinct MIStoppedEvent events. This confuses the step-into-selection
mechanism, who will issue two finish/step-return instead of one.

For all gdbs, we will have a test where the breakpoint is a not at the
function entry.

Then, for gdb > 7.3, we will have the same test but with the breakpoint
at the function entry, to test that particular case. This case is known
to be broken with gdb <= 7.3 (rather old) and will stay that way unless
somebody feels like fixing it.

So, for both:

- atDoubleMethodStopAtBreakpoint
- atDoubleMethodSkipBreakpoint

I extracted the code in a common function which takes in parameter the
line to set the breakpoint at.

Change-Id: I2ae4bc527afe0ab195e9b066279ed92f74d652f3
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/38717
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-23 13:46:48 -05:00
..
org.eclipse.cdt.dsf.gdb Revert "Bug 451929 - Leverage p2 ability to express native packages" 2014-12-23 00:05:47 -05:00
org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui Bug 453206 - [visualizer] update access modifiers to permit extension to 2014-12-12 13:08:34 -05:00
org.eclipse.cdt.dsf.gdb.tests Bug 455237 - Move VisualizerVirtualBoundsGraphicObjectTest to 2014-12-16 13:29:46 -05:00
org.eclipse.cdt.dsf.gdb.ui Bug 455537 - Allow to override LaunchVMProvider 2014-12-17 15:17:25 -05:00
org.eclipse.cdt.examples.dsf.gdb Bug 441277 - Fix colliding tab ids in example plugin that extends 2014-12-18 16:14:21 -05:00
org.eclipse.cdt.gnu.dsf-feature Inremented feature version to 8.5. 2014-07-21 17:07:12 -07:00
org.eclipse.cdt.gnu.dsf.source-feature Inremented feature version to 8.5. 2014-07-21 17:07:12 -07:00
org.eclipse.cdt.gnu.multicorevisualizer-feature Inremented feature version to 8.5. 2014-07-21 17:07:12 -07:00
org.eclipse.cdt.tests.dsf.gdb Avoid gdb bug in StepIntoSelectionTests for gdb <= 7.3 2014-12-23 13:46:48 -05:00