From d327d1b34fcf9a2f78f8d5efe1c7700f68b51962 Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Thu, 12 Aug 2021 23:29:08 +0000 Subject: gdb: rename gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A previous commit added the gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp testcase, but one of its associated file was named after a previous version of the test. This commit fixes this and makes sure that all the files linked to this testcase share the same prefix in the name. Tested on riscv64 GNU/Linux. --- .../gdb.arch/riscv64-unwind-prologue-with-ld-lw.c | 30 ++++++++++++++++++++++ .../riscv64-unwind-prologue-with-ld-lw.exp | 2 +- .../gdb.arch/riscv64-unwind-prologue-with-ld.c | 30 ---------------------- 3 files changed, 31 insertions(+), 31 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.c delete mode 100644 gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld.c (limited to 'gdb/testsuite') diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.c b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.c new file mode 100644 index 0000000..9ff950d --- /dev/null +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.c @@ -0,0 +1,30 @@ +/* Copyright 2021 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +/* See riscv64-unwind-prologue-with-ld-foo.s for implementation. */ +extern int foo (void); + +int +bar () +{ + return 0; +} + +int +main () +{ + return foo (); +} + diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp index c329d2f..f559c3f 100644 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp +++ b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld-lw.exp @@ -21,7 +21,7 @@ if {![istarget "riscv64-*-*"]} { return } -standard_testfile riscv64-unwind-prologue-with-ld.c \ +standard_testfile riscv64-unwind-prologue-with-ld-lw.c \ riscv64-unwind-prologue-with-ld-lw-foo.s if {[prepare_for_testing "failed to prepare" $testfile \ "$srcfile $srcfile2" nodebug]} { diff --git a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld.c b/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld.c deleted file mode 100644 index 9ff950d..0000000 --- a/gdb/testsuite/gdb.arch/riscv64-unwind-prologue-with-ld.c +++ /dev/null @@ -1,30 +0,0 @@ -/* Copyright 2021 Free Software Foundation, Inc. - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* See riscv64-unwind-prologue-with-ld-foo.s for implementation. */ -extern int foo (void); - -int -bar () -{ - return 0; -} - -int -main () -{ - return foo (); -} - -- cgit v1.1