From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 688AA3858D28 for ; Thu, 26 Jan 2023 17:08:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 688AA3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 4480C2017D; Thu, 26 Jan 2023 17:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1674752890; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xkKdA6+BBbYF4R0EAZvvUET0l28OT9lHkyk0h7FZZTs=; b=kxLfLaD1aMTVWojxV9v5YHDsgQwfus68Q4B1VQjUECJj4J/MIvE92CJRn1L34PgiF0A9b5 WZEP6YyzisEelG6CtqZF+9CybRhFDb5rkyCNeu0DWTVPag9Mxp2Yv/PD5iZdyx8nxk58Ih Cz4ruTDfqiQk9yJNWXAGr2h+GX19its= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1674752890; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xkKdA6+BBbYF4R0EAZvvUET0l28OT9lHkyk0h7FZZTs=; b=Ct2Yz7TFvnZQYOVFrsyu378bADEQV51OrYNpLBsduMoTKsZcssNS73aGfZSlc6n6ME7YL+ Kbm23I99V+FQY7DA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2C10113A09; Thu, 26 Jan 2023 17:08:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jKaVCXqz0mM/WgAAMHmgww (envelope-from ); Thu, 26 Jan 2023 17:08:10 +0000 Message-ID: <2d0bbb89-e68c-7098-58ad-ad2eed5e1355@suse.de> Date: Thu, 26 Jan 2023 18:08:09 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [pushed] [gdb/testsuite] Add and use is_x86_64_m64_target Content-Language: en-US To: Pedro Alves , Tom Tromey , Tom de Vries via Gdb-patches References: <20230125200626.29340-1-tdevries@suse.de> <20230125200626.29340-4-tdevries@suse.de> <87zga6tihb.fsf@tromey.com> <0e639a56-144c-7d0b-c100-a9a6253d7075@suse.de> <87fsbxs2dn.fsf@tromey.com> From: Tom de Vries In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 1/26/23 17:38, Pedro Alves wrote: > On 2023-01-26 4:10 p.m., Tom Tromey wrote: >>>>>>> "Tom" == Tom de Vries via Gdb-patches writes: >> >> Tom> On 1/26/23 10:17, Tom de Vries wrote: >>>> ./gdb.base/jit-reader.exp: >>>>   require {is_any_target "i?86-*-*" "x86_64-*-*"} is_lp64_target >>>> ./gdb.arch/amd64-i386-address.exp: >>>>   require {is_any_target "x86_64-*-*" "i?86-*-*"} is_lp64_target >> >> Tom> And, doesn't is_lp64_target imply that we're not on an "i?86-*-*" ? >> >> Tom> Am I missing something here? >> >> I am not sure. Can you use 'gcc -m64' on an x86? > > Yeah, you can. CodeSourcery toolchains used to be like that back in the day -- 32-bit > hosted, so the target triplet indicated 32-bit, but you could use -m64 for 64-bit. > No clue what they do nowadays. Ah, that's interesting, thanks. So, perhaps then you could indeed end up with is_lp64_target == true on an i?86 (by using target board unix/-m64). But assuming you would end up with a complete 64-bit executable, you still wouldn't been able to run it on the 32-bit target, so I think it's a corner-case that doesn't prevent us from dropping the i?86 test here. Thanks, - Tom > > Pedro Alves > >> Or could you have a >> 64-bit machine that advertises as i386 if userspace is mostly 32-bit? > >