projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7afb87
)
[gdb/testsuite] Fix gdb.dwarf2/dw2-unspecified-type-foo.c with -m32
author
Tom de Vries
<tdevries@suse.de>
Mon, 26 Sep 2022 11:43:42 +0000
(13:43 +0200)
committer
Tom de Vries
<tdevries@suse.de>
Mon, 26 Sep 2022 11:43:42 +0000
(13:43 +0200)
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.
gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
patch
|
blob
|
history
diff --git
a/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
b/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
index b1e3a8b98e4e62424a211274fe453d87e6ab7d82..c92e18b898f9c187e55d737fc070f74c5b923e51 100644
(file)
--- 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;
}