aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2022-09-26 13:43:42 +0200
committerTom de Vries <tdevries@suse.de>2022-09-26 13:43:42 +0200
commit757b1c20d49438a19cb3bfd5ce5db20f40ce4e21 (patch)
treefc4721f7a56cc3a0d510d1bf476dab6a27998cc9 /gdb/testsuite
parentc7afb87bea33c27c7e669b94275fb8c22d6f43bc (diff)
downloadgdb-757b1c20d49438a19cb3bfd5ce5db20f40ce4e21.zip
gdb-757b1c20d49438a19cb3bfd5ce5db20f40ce4e21.tar.gz
gdb-757b1c20d49438a19cb3bfd5ce5db20f40ce4e21.tar.bz2
[gdb/testsuite] Fix gdb.dwarf2/dw2-unspecified-type-foo.c with -m32
When running test-case gdb.dwarf2/dw2-unspecified-type-foo.c with target board unix/-m32, I run into: ... (gdb) PASS: gdb.dwarf2/dw2-unspecified-type.exp: ptype foo p ((int (*) ()) foo) ()^M $1 = -135698472^M ... Add the missing "return 0" in foo, which fixes this. Tested on x86_64-linux.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c b/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
index b1e3a8b..c92e18b 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
+++ b/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
@@ -19,4 +19,5 @@ int
foo (void)
{
asm ("foo_label: .globl foo_label");
+ return 0;
}