From: Tom Tromey <tromey@adacore.com>
To: trcrsired <oyzawqgcfc@gmail.com>
Cc: binutils@sourceware.org, gdb-patches@sourceware.org
Subject: Re: [PATCH 1/1] Support building binutils-gdb for an Android (bionic) host
Date: Fri, 30 Oct 2026 11:57:32 -0600 [thread overview]
Message-ID: <877biznkab.fsf@tromey.com> (raw)
In-Reply-To: <20261029124117.13519-2-oyzawqgcfc@gmail.com> (trcrsired's message of "Thu, 29 Oct 2026 20:41:17 +0800")
>>>>> trcrsired <oyzawqgcfc@gmail.com> writes:
> Building with --host=aarch64-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 <limits.h> does not expose PATH_MAX (bionic defines it in
> <linux/limits.h>), while <sys/param.h> 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
next prev parent reply other threads:[~2026-10-30 17:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-29 12:41 [PATCH 0/1] " trcrsired
2026-10-29 12:41 ` [PATCH 1/1] " trcrsired
2026-10-30 13:56 ` Jan Beulich
2026-10-30 17:57 ` Tom Tromey [this message]
2026-10-30 19:51 ` Simon Marchi
2026-10-30 20:31 ` coshvji cujmlqef
2026-11-03 14:21 ` Tom Tromey
2026-11-03 14:58 ` Simon Marchi
2026-11-17 18:43 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877biznkab.fsf@tromey.com \
--to=tromey@adacore.com \
--cc=binutils@sourceware.org \
--cc=gdb-patches@sourceware.org \
--cc=oyzawqgcfc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox