Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Fix gdbserver build failure on arm-android.
Date: Fri, 15 May 2015 10:57:00 -0000	[thread overview]
Message-ID: <5555D0FB.8080200@redhat.com> (raw)
In-Reply-To: <20150514141734.GJ4767@adacore.com>

On 05/14/2015 03:17 PM, Joel Brobecker wrote:

>> BTW, do you also trip on this one? :
>>
>>  https://sourceware.org/ml/gdb/2015-04/msg00025.html
> 
> We don't, at the moment. But we're planning on upgrading to a newer
> version in the next few weeks, so we might eventually hit that issue
> too. We don't know yet which version we'll target, so I can't say
> much more at the moment.

OK.  Seems the clash is with the group_from_gid / user_from_uid
BSD functions that do a similar thing from what our
versions do.  E.g.,:

 http://nixdoc.net/man-pages/openbsd/man3/group_from_gid.3.html
 https://developer.apple.com/library/ios/documentation/System/Conceptual/ManPages_iPhoneOS/man3/group_from_gid.3.html

"functions first appeared in 4.4BSD".

Though BSD's return a pointer to a statically allocated
buffer, while gdb's take a buffer pointer as argument.

As glibc doesn't support those BSD functions, we don't trip
on that on GNU/Linux.

I think we should just rename our symbols.  E.g.,
 group_from_gid -> gdb_group_from_gid
 user_from_uid -> gdb_user_from_uid

Thanks,
Pedro Alves


      reply	other threads:[~2015-05-15 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-08 16:02 Joel Brobecker
2015-05-14 10:32 ` Pedro Alves
2015-05-14 14:17   ` Joel Brobecker
2015-05-15 10:57     ` Pedro Alves [this message]

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=5555D0FB.8080200@redhat.com \
    --to=palves@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /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