From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 44A603858C74; Mon, 31 Jul 2023 08:11:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 44A603858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690791095; bh=BbfWVKOMpT7+/IUcEEKsp1BWrQ7/136gCA78CSe3ek8=; h=From:To:Subject:Date:From; b=ci2DSOOCihI+IQZ4jsfk5Ach/YYdYmxvMUi42UrmKv4eev8krlDkMGAY0WT35YyaQ SN/HN9D+koV4jtSurnZm58kgnCtIHwv+RFpWblCWWqj2KttNVJCLg8WUFpMrgSdUKG Fg8lntkBjBIl+JXxxiEOaoOE7mJWVuwpgSyXbQhw= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/30704] New: [gdb/testsuite, i686] FAIL: gdb.base/catch-syscall.exp: multiple targets: i386 vs i386:x86-64: insert catch syscall on syscall 1 -- write on i386:x86-64 Date: Mon, 31 Jul 2023 08:11:34 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30704 Bug ID: 30704 Summary: [gdb/testsuite, i686] FAIL: gdb.base/catch-syscall.exp: multiple targets: i386 vs i386:x86-64: insert catch syscall on syscall 1 -- write on i386:x86-64 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: testsuite Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- I build gdb on native i686-pc-linux-gnu with --enable-targets=3Dall, and ra= n the testsuite, and ran into: ... FAIL: gdb.base/catch-syscall.exp: multiple targets: i386 vs i386:x86-64: in= sert catch syscall on syscall 1 -- write on i386:x86-64 FAIL: gdb.base/catch-syscall.exp: multiple targets: sparc vs sparc:v9: inse= rt catch syscall on syscall 108 -- setresuid on sparc:v9 ... In more detail: ... (gdb) PASS: gdb.base/catch-syscall.exp: multiple targets: i386 vs i386:x86-= 64: set architecture i386:x86-64 catch syscall 1^M The feature 'catch syscall' is not supported on this architecture yet.^M (gdb) FAIL: gdb.base/catch-syscall.exp: multiple targets: i386 vs i386:x86-= 64: insert catch syscall on syscall 1 -- write on i386:x86-64 ... I tracked this down to amd64-linux-tdep.c not being compiled, so amd64_linux_init_abi is not called, which would call amd64_linux_init_abi_common, which does: ... set_gdbarch_get_syscall_number (gdbarch, amd64_linux_get_syscall_number); ... I looked in Makefile.in, and found amd64-linux-tdep.o listed in ALL_64_TARGET_OBS: ... # All target-dependent objects files that require 64-bit CORE_ADDR=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 # (used with --enable-targets=3Dall --enable-64-bit-bfd).=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ALL_64_TARGET_OBS =3D \ ... so presumably I can make the test-case pass by building with --enable-64-bit-bfd. I'm a bit confused that it's valid to set the arch to i386:x86-64 without --enable-64-bit-bfd, but perhaps that's ok. So I guess we need to update the test-case. Note that we do have: ... $ gdb -q -batch -ex "set arch i386:x86-64" warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB. Attempting to continue with the default i386:x86-64 settings. ... The target architecture is set to "i386:x86-64". So perhaps we can require the set arch command to issue no warnings. --=20 You are receiving this mail because: You are on the CC list for the bug.=