From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 1Y5yHAgLcGIq2QMAWB0awg (envelope-from ) for ; Mon, 02 May 2022 12:47:04 -0400 Received: by simark.ca (Postfix, from userid 112) id 6A7221E058; Mon, 2 May 2022 12:47:04 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_DYNAMIC autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E219F1E00D for ; Mon, 2 May 2022 12:47:03 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9441E3857C49 for ; Mon, 2 May 2022 16:47:03 +0000 (GMT) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by sourceware.org (Postfix) with ESMTPS id 23B1C3858C51 for ; Mon, 2 May 2022 16:46:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 23B1C3858C51 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f47.google.com with SMTP id n126-20020a1c2784000000b0038e8af3e788so8749855wmn.1 for ; Mon, 02 May 2022 09:46:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=cNqx6nmmpcqiRUFaYGbYBdp687kQFseIhFotiU2iSpA=; b=oqBr30+g+59C1uSQOiE+BBtIAy8f/pu9AQiqsAQgZ+LgU5CNXe+QNwvWWgeYbdCTg3 VSfD+oPd4lG1Jvk2joVy4mgZqihazhbqmuf0UoaTvUkbMFP4+LJgBrh5QfHrYaqNjheD u8wqQ9ihVRDBfRp7quiuQWvSvTvSyzwJpJLgGNsqkA8FoZQ1izyzGyHLqstpT2JW8h6U LwNEWJ42kasoXGhXEyLYPZ/Q51fvPHDP70+Ju5WgVnizjujnoGcV3V9+6/vnfx7jH+6b BJr9E5jpIizbWmgvceXbVc053cU3NTgg69Gi8cBunygG7qJuN/HYcmHQ+ZKiwA4WdRpj hIVQ== X-Gm-Message-State: AOAM532SMbBT8Asz172QQ+2KUi+r6DnHcsCip3AL9Q9Kjov0dkItJbsw AfPZ7eiH1NEFFlzBEm7Be1+uOQ7DjPR7pA== X-Google-Smtp-Source: ABdhPJy9HFL3cFyZV3Fs/d9PKO/IlYO3PRMF74ZwE+uqE7PuCrS3GLvUL+BIb+i4EhAcwAy4YnPS+A== X-Received: by 2002:a7b:c190:0:b0:38e:7e47:744a with SMTP id y16-20020a7bc190000000b0038e7e47744amr46558wmi.38.1651510011066; Mon, 02 May 2022 09:46:51 -0700 (PDT) Received: from ?IPV6:2001:8a0:f924:2600:209d:85e2:409e:8726? ([2001:8a0:f924:2600:209d:85e2:409e:8726]) by smtp.gmail.com with ESMTPSA id c13-20020adfa70d000000b0020c5253d8e8sm7557037wrd.52.2022.05.02.09.46.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 02 May 2022 09:46:50 -0700 (PDT) Message-ID: Date: Mon, 2 May 2022 17:46:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 1/1] get page size using sysconf (_SC_PAGESIZE) instead of PAGE_SIZE Content-Language: en-US To: Andreas Schwab , Zied Guermazi References: <20220430121623.42196-1-zied.guermazi@trande.de> <20220430121623.42196-2-zied.guermazi@trande.de> <87ee1e92kp.fsf@igel.home> <47159933-7e6a-ab66-b0b8-1b184a469e6c@trande.de> <877d7691jf.fsf@igel.home> <87y1zm7mfl.fsf@igel.home> <44259e87-d19f-189b-123e-39ea9f06c763@trande.de> <87tuaa7l1v.fsf@igel.home> From: Pedro Alves In-Reply-To: <87tuaa7l1v.fsf@igel.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 2022-04-30 14:33, Andreas Schwab wrote: > On Apr 30 2022, Zied Guermazi wrote: > >> PAGE_SIZE for target system was not defined, in other cases PAGE_SIZE of >> the host system was used etc... :). > > This file is only used in a native configuration. > Zied, when you said: "the issue was first observed when activating this code while compiling on an x86 for an arm target." are you talking about: --build=x86_64-linux --host=aarch64-linux or: --host=x86_64-linux --target=aarch64-linux ? I agree with Andreas -- linux-btrace.c is only included in the build on x86 hosts, so why are you seeing this? Did you tweak gdb/configure.nat to include linux-btrace.c in other configurations? Or gdb/configure.tgt? What exactly did you do?