1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Find a file
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
build Revert "Bug 451929 - Leverage p2 ability to express native packages" 2014-12-23 00:05:47 -05:00
codan Bug 447486 - codan - CCE is thrown by control flow graph builder 2014-12-14 13:09:13 -05:00
core Bug 456099 - Renaming a class should also rename related files 2014-12-23 10:30:31 -08:00
cross Revert "Bug 451929 - Leverage p2 ability to express native packages" 2014-12-23 00:05:47 -05:00
debug Revert "Bug 451929 - Leverage p2 ability to express native packages" 2014-12-23 00:05:47 -05:00
doc Update to new CDT Logo 2014-12-16 13:29:12 -05:00
dsf Update to new CDT Logo 2014-12-16 13:29:12 -05:00
dsf-gdb Avoid gdb bug in StepIntoSelectionTests for gdb <= 7.3 2014-12-23 13:46:48 -05:00
jtag Update to new CDT Logo 2014-12-16 13:29:12 -05:00
launch/org.eclipse.cdt.launch Bug 437392 - Remove LaunchBar from CDT repo. 2014-12-15 14:13:45 -05:00
llvm Update to new CDT Logo 2014-12-16 13:29:12 -05:00
lrparser Update to new CDT Logo 2014-12-16 13:29:12 -05:00
memory Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
p2 Update to new CDT Logo 2014-12-16 13:29:12 -05:00
qt Revert "Bug 451929 - Leverage p2 ability to express native packages" 2014-12-23 00:05:47 -05:00
releng Update to new CDT Logo 2014-12-16 13:29:12 -05:00
remote Bug 449224 - Fix for NLS'd plugin and 2014-10-29 13:44:12 -04:00
testsrunner Add missing arg for jacoco in in tests. Update jacoco. 2014-08-28 15:40:26 -04:00
upc Update to new CDT Logo 2014-12-16 13:29:12 -05:00
util Update to new CDT Logo 2014-12-16 13:29:12 -05:00
visualizer Bug 453227 - [visualizer] VisualizerView: view menu not refreshed when 2014-12-12 14:24:26 -05:00
windows Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
xlc Update to new CDT Logo 2014-12-16 13:29:12 -05:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Bug 441277 - Provide an example plugin to show how to extend DSF-GDB 2014-12-18 12:32:59 -05:00