forked from eclipse-cdt/cdt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make first line of C method consistent
The tests were relying on specific number of executable lines in a function. However on some gdb/gcc combinations stopping at a function stops at the line with the `{` and some on the first line witin that function. Much of the tests here assumed that latter. By using line tags we don't need to worry about exact number of executable lines between entry and area of interest. And by placing first line of code on the same line as the opening `{` of the function, we can have consistent stop locations when stepping into a function. Part of eclipse-cdt#816
- Loading branch information
1 parent
f63e2a3
commit 4fa5808
Showing
6 changed files
with
98 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/StepIntoSelection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
int value() { | ||
int a = 1; // VALUE_LINE | ||
int value() | ||
{ int a = 1; // VALUE_LINE | ||
return 1; | ||
} |
68 changes: 33 additions & 35 deletions
68
dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/data/launch/src/StepIntoSelectionTestApp.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.