From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iSXSG8H+5GohTBkAWB0awg (envelope-from ) for ; Fri, 30 Oct 2026 16:32:01 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rZSs+M1h; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 699A1378006; Fri, 30 Oct 2026 16:32:01 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HK_RANDOM_FROM, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 82A8C378002 for ; Fri, 30 Oct 2026 16:32:00 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1F6004BAE7F1 for ; Fri, 30 Oct 2026 20:32:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F6004BAE7F1 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rZSs+M1h Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 536804BA902B for ; Fri, 30 Oct 2026 20:31:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 536804BA902B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 536804BA902B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793392282; cv=none; b=ZzIvz5Lopc1JBvH6mChFo58wC7qg5DMXWkB8XU1994c39CsgnLu6lfeZLaPnVOBjX7HuwzqqHUxuDl9ChcrotYdRAO5NhZWEwtFvCOODgTCrsfMlJZYhEX5jpC0ueecqhZDXFuG1A+6FGq3AuFcczMiWNG/KluaOlC33Q6Nv1C0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793392282; c=relaxed/simple; bh=ybhM2zVwdfCHN1yVJ3TZ3vRo/6g+TCi6aOu0KTNbKM0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=X+zW+BF985hwK8f1MgqwppPsWnPw3poun71cA5GS4tFhIRuDgLEQF2vZ7dPkejatnacI39ZllhAyf28d0hyqtelhULPPJzcduMdzTaSYnjloiPBJETG40aTQYi8VT6HTcH3r/DgRDlze/vW5iLFZ+gRsb8lIHNqPqNkeBbcF/QU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=rZSs+M1h DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 536804BA902B Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-2e7e742a2c7so8229305ad.0 for ; Fri, 30 Oct 2026 13:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1793392281; x=1793997081; darn=sourceware.org; h=mime-version:content-type:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=8noQbFkmnG3KWPb5xWaNjEAUpVQZ8EaINVqKYQa83d0=; b=rZSs+M1hOQoh6/NplzwruWmzbu3Vm3VrJZBug6ve7av1OPUCKlivjguVRO9cArTb3Y 17KV70A4Sg0hhWqRvsVE46sGI1I4uYFegBRuIbMzLAJRmGm4lFtmNtIQqF6Kyet6DfLQ Qu20T3D8v91p/ZGo+FA8HmS+8fILBwXwFVxZ1Ymr270879nFBjT+qPJy4mQLBF4OuR1Y AfsBXcsjE6jCU5sCaTXF6dPWIr+C73v4X//h2cYViq708SznzCHPgtJINMv1fLTCCR8S MOi/unwXMmNbs4A6YaBKbRsJTkpXW/F0ABZAnWmG6EgF11unJ9QBBnb3EMVPFI8xgqId KXqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793392281; x=1793997081; h=mime-version:content-type:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to:content-type; bh=8noQbFkmnG3KWPb5xWaNjEAUpVQZ8EaINVqKYQa83d0=; b=K4LPHqJDYoVBk4nFMmsmu7bjX8GgwBSR3jO+AZC10vgkBi2kgK9361HdszW03Qs3B6 4X2HLNXzAdp0fG0q62Q6zl4y6qhyhzjs+jVZJHzlGnIjFi+gw0jQKLyroLRIijLP5uEz 8Ggy/YAe1N3dA3hw8D5kE/GrskwqNFz2/EqnU3Dod6xWAH+dIwq4v7Nk/tL6S6OiqZMC BB7YjzaUsC4R2U/7WDixq+QeVxq8f6zEfQt5dNuK3cJ2m/buiOnEAL1C8UzCU6jTaX/Z uky1/c0L0gMOUCIgOWM+3z2W71CQdpDeL37F7WRUkk0SY2syCFdY1VHm+LAwnbdhLACe 6mew== X-Forwarded-Encrypted: i=1; AKwUvBw2TskUaw/K6laTrLyHPrenMTLxijbcnc3WUd3UeO12iLfn7Xb1pYojnA37ABvUoUHiFl4bbOg2wMucGA==@sourceware.org X-Gm-Message-State: AFq9FYLinTBCkIQ/qRQzPlbHytyMCOBgbXrT19HBqmHOl7fLp4Dhv/kk uWDmr47ZsWaN8mjm1FuRCGiDYbcnkKIemBp69orzma6uO/CVebEYnOWi X-Gm-Gg: AYBFou2XBUGdgNJUpFeOGINfn68EyEAE8/MHXijQZFpJ74bs8yIDSpa8y4joSbu6K8s vlUVnGQH+CFt/nk+DvfU8owlt10YvIIIieA3dQ1sOu0InzbghV74aaaRzkAYEaziCvMCQf9QWRp e8pv4T/CzJa1UX5vQFGTQIQILBLc0HFQxw7p4yFh3aXGLjvpMpCQYAt9QuFSGBgIP5/q25MbRkH Mn21Xb6b06jlIU7Hrq7VHm6pzUL3LnVKxpJSh1cf+l2UigmWP3aChczG15ka9VBcN1XpOqf3zB5 06bXhG12YqKYuewLizAQf+6ZDaAw+TosBHmDQuZXIA5loIiK5rjcAVozvDBFHgNe24C5+S3IZSf YQ6c678k2uSV662DE1LODVcHWYVBR8Qya4Ajl0FCZj9uAQZxcTlUjDIy8yWcv+rmpQA4TK2JODF j2w6H+1UYrhcVbBZmwqqunA+6+7+z3j4dKQG9ubfa8K6bciZrOUB9OfT8EOuJIQp8StdUxtOSqk /gkW+cKQIWIwhLJs0Y5LMqVYSIwRGkiBCqohcVwj0oQLrLoYnCawZ+p4Ke7bGIFvHRjovFrH7sI Tv0swRlt20KWsMsdrZSq8haPgl7+zVZrbMwmixO7i7DmYkuHjjaf9KYhFfXx2q6rW1ZD34tT8q6 QCXDdEfXlPCPymcITdRk734O/Qg96wthmQWGfjzxg0ZAmkPaIoskelD03QTs0oc2G6DL6toYwog == X-Received: by 2002:a17:902:db07:b0:2ea:1e40:624 with SMTP id d9443c01a7336-2eb364ae339mr27827325ad.17.1793392280253; Fri, 30 Oct 2026 13:31:20 -0700 (PDT) Received: from LV8P220MB1843.NAMP220.PROD.OUTLOOK.COM ([2603:1036:303:4417::5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2eb3922fc14sm11482065ad.26.2026.10.30.13.31.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Oct 2026 13:31:19 -0700 (PDT) From: coshvji cujmlqef To: Simon Marchi , Tom Tromey CC: "binutils@sourceware.org" , "gdb-patches@sourceware.org" Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Android (bionic) host Thread-Topic: [PATCH 1/1] Support building binutils-gdb for an Android (bionic) host Thread-Index: AQHdZ+5U/xYhHCNagESRPmHnMhanFmNhLS4xY2EtLjFmZmJreq2tOmYAgAAK3K8= X-MS-Exchange-MessageSentRepresentingType: 1 Date: Fri, 30 Oct 2026 20:31:17 +0000 Message-ID: References: <20261029124117.13519-1-oyzawqgcfc@gmail.com> <20261029124117.13519-2-oyzawqgcfc@gmail.com> <877biznkab.fsf@tromey.com> <7786435a-26d8-48e9-a833-1dd800e53f9e@simark.ca> In-Reply-To: <7786435a-26d8-48e9-a833-1dd800e53f9e@simark.ca> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-Exchange-Organization-SCL: -1 X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 x-ms-reactions: allow Content-Type: multipart/alternative; boundary="_000_LV8P220MB184305AAF8F002E50B56781BFB6D2LV8P220MB1843NAMP_" MIME-Version: 1.0 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org --_000_LV8P220MB184305AAF8F002E50B56781BFB6D2LV8P220MB1843NAMP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable support android >=3D android api version 30 (aka android 10) would be great Get Outlook for Android ________________________________ From: Simon Marchi Sent: Saturday, 31 October 2026 03:51:40 To: Tom Tromey ; trcrsired Cc: binutils@sourceware.org ; gdb-patches@sourcewa= re.org Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Android (bion= ic) host Hi, Could we determine (and ideally document) a baseline Android that we need to support? The other day when removing ancient hacks there were some made for old Bionic verisons, and I had to guess whether they were still needed or not. If we had a clear policy (and I wish we had that for other platforms), it would make it much easier. Simon On 10/30/26 1:57 PM, Tom Tromey wrote: >>>>>> trcrsired writes: > >> Building with --host=3Daarch64-linux-android30 failed because bionic is = not >> glibc: > > Thanks for the patch. > > In addition to what Jan said, I have a few minor comments. > >> - The compiler's does not expose PATH_MAX (bionic defines it = in >> ), while defines MAXPATHLEN as PATH_MAX. >> Make PATH_MAX available from libiberty.h and gnulib's pathmax.h for >> __ANDROID__. > > I'm curious why this is needed in libiberty.h specifically. > > I somewhat thought gdb didn't need PATH_MAX. > >> diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac >> index 16a2520baf4..cc73c22a580 100644 >> --- a/gdbserver/configure.ac >> +++ b/gdbserver/configure.ac > [...] > > Here at AdaCore we have essentially this same patch in place. > If you sent this separately I would approve it. > >> diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h >> index 1c0ae0ad9d1..b29a81ada40 100644 >> --- a/gdbsupport/common-defs.h >> +++ b/gdbsupport/common-defs.h > > This one also seems fine to me. > >> diff --git a/gnulib/import/rawmemchr.c b/gnulib/import/rawmemchr.c >> index ea68c1bfc6a..50d5918ba07 100644 >> --- a/gnulib/import/rawmemchr.c >> +++ b/gnulib/import/rawmemchr.c > > gnulib changes are a pain I'm afraid. > > In addition to patching the tree, you have to add the patch itself to > gnulib/patches so they can potentially be reapplied by update-gnulib.sh. > > Last time I tried to update gnulib, it was a total failure, though. > I recommend not trying this. > > However what you could do is put the patch in patches, then run > update-gnulib.sh (using the existing hash) to verify that the patch > application works as intended. > > I looked at upstream gnulib and it doesn't seem to have any relevant > change here. So you might consider submitting this change to gnulib as > well. > > thanks, > Tom --_000_LV8P220MB184305AAF8F002E50B56781BFB6D2LV8P220MB1843NAMP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
support android >=3D android api version 30 (aka android 10) would be gr= eat


From: Simon Marchi <sima= rk@simark.ca>
Sent: Saturday, 31 October 2026 03:51:40
To: Tom Tromey <tromey@adacore.com>; trcrsired <oyzawqgcfc@= gmail.com>
Cc: binutils@sourceware.org <binutils@sourceware.org>; gdb-pat= ches@sourceware.org <gdb-patches@sourceware.org>
Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Androi= d (bionic) host
 
Hi,

Could we determine (and ideally document) a baseline Android that we
need to support?  The other day when removing ancient hacks there were=
some made for old Bionic verisons, and I had to guess whether they were
still needed or not.  If we had a clear policy (and I wish we had that=
for other platforms), it would make it much easier.

Simon

On 10/30/26 1:57 PM, Tom Tromey wrote:
>>>>>> trcrsired  <oyzawqgcfc@gmail.com> write= s:
>
>> Building with --host=3Daarch64-linux-android30 failed because bion= ic is not
>> glibc:
>
> Thanks for the patch.
>
> In addition to what Jan said, I have a few minor comments.
>
>> - The compiler's <limits.h> does not expose PATH_MAX (bionic= defines it in
>>   <linux/limits.h>), while <sys/param.h> def= ines MAXPATHLEN as PATH_MAX.
>>   Make PATH_MAX available from libiberty.h and gnulib's = pathmax.h for
>>   __ANDROID__.
>
> I'm curious why this is needed in libiberty.h specifically.
>
> I somewhat thought gdb didn't need PATH_MAX.
>
>> diff --git a/gdbserver/configure.ac b/gdbserver/configure.ac
>> index 16a2520baf4..cc73c22a580 100644
>> --- a/gdbserver/configure.ac
>> +++ b/gdbserver/configure.ac
> [...]
>
> Here at AdaCore we have essentially this same patch in place.
> If you sent this separately I would approve it.
>
>> diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h >> index 1c0ae0ad9d1..b29a81ada40 100644
>> --- a/gdbsupport/common-defs.h
>> +++ b/gdbsupport/common-defs.h
>
> This one also seems fine to me.
>
>> diff --git a/gnulib/import/rawmemchr.c b/gnulib/import/rawmemchr.c=
>> index ea68c1bfc6a..50d5918ba07 100644
>> --- a/gnulib/import/rawmemchr.c
>> +++ b/gnulib/import/rawmemchr.c
>
> gnulib changes are a pain I'm afraid.
>
> In addition to patching the tree, you have to add the patch itself to<= br> > gnulib/patches so they can potentially be reapplied by update-gnulib.s= h.
>
> Last time I tried to update gnulib, it was a total failure, though. > I recommend not trying this.
>
> However what you could do is put the patch in patches, then run
> update-gnulib.sh (using the existing hash) to verify that the patch > application works as intended.
>
> I looked at upstream gnulib and it doesn't seem to have any relevant > change here.  So you might consider submitting this change to gnu= lib as
> well.
>
> thanks,
> Tom
--_000_LV8P220MB184305AAF8F002E50B56781BFB6D2LV8P220MB1843NAMP_--