diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 24a58adbdd5..0744c1e941d 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2020-09-13 Pedro Alves + + * gdb.dwarf2/ada-linkage-name.c (main): Move to the bottom of the + file and add calls to first and second. + * gdb.dwarf2/atomic.c (main): Move to the bottom of the file and + add call to f. + 2020-09-13 Pedro Alves * gdb.mi/mi-break-qualified.cc: New file. diff --git a/gdb/testsuite/gdb.dwarf2/ada-linkage-name.c b/gdb/testsuite/gdb.dwarf2/ada-linkage-name.c index adcb009cce3..fe0414724e1 100644 --- a/gdb/testsuite/gdb.dwarf2/ada-linkage-name.c +++ b/gdb/testsuite/gdb.dwarf2/ada-linkage-name.c @@ -15,13 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -int -main (void) -{ - asm ("main_label: .globl main_label"); - return 0; -} - /* First dummy function. */ int @@ -39,3 +32,14 @@ second (char *x) asm ("second_label: .globl second_label"); return 0; } + + +int +main (void) +{ + asm ("main_label: .globl main_label"); + + first (0); + second (0); + return 0; +} diff --git a/gdb/testsuite/gdb.dwarf2/atomic.c b/gdb/testsuite/gdb.dwarf2/atomic.c index 1e279a40d27..89299890533 100644 --- a/gdb/testsuite/gdb.dwarf2/atomic.c +++ b/gdb/testsuite/gdb.dwarf2/atomic.c @@ -15,15 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -/* Dummy main function. */ - -int -main (void) -{ - asm ("main_label: .globl main_label"); - return 0; -} - /* dummy f function, DWARF will describe arguments and type differently. */ int f (char *x) @@ -32,3 +23,13 @@ f (char *x) return 0; } +/* Dummy main function. */ + +int +main (void) +{ + asm ("main_label: .globl main_label"); + + f (0); + return 0; +}