public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix gdb.dwarf2/dw2-unspecified-type-foo.c with -m32
@ 2022-09-26 11:43 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2022-09-26 11:43 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=757b1c20d49438a19cb3bfd5ce5db20f40ce4e21

commit 757b1c20d49438a19cb3bfd5ce5db20f40ce4e21
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Sep 26 13:43:42 2022 +0200

    [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.

Diff:
---
 gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c b/gdb/testsuite/gdb.dwarf2/dw2-unspecified-type-foo.c
index b1e3a8b98e4..c92e18b898f 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;
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-26 11:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 11:43 [binutils-gdb] [gdb/testsuite] Fix gdb.dwarf2/dw2-unspecified-type-foo.c with -m32 Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).