From: Vasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: RE: [PATCH] Define and use the __ptrace_request enumeration type in ptrace.
Date: Mon, 21 Sep 2015 21:39:50 +0000 [thread overview]
Message-ID: <8B7D5EC97CB15C4DBFDCE766959C1607C6C43E@hhmail02.hh.imgtec.org> (raw)
In-Reply-To: <20150921203126.GU17773@brightrain.aerifal.cx>
Hi Rich,
Thank you for taking the time to look into this.
> Is there a particular problem you're trying to solve here?
I tried to compile LLDB with musl and I found two places where
the __ptrace_request type is being used:
http://reviews.llvm.org/diffusion/L/browse/lldb/trunk/source/Plugins/Process/Linux/NativeProcessLinux.cpp;248212$3161
> Generally enum is avoided in musl unless it's mandated as part of an
> interface definition.
I based my patch on the definition provided by ptrace(2) on my Linux distro,
thinking that this is the "correct" function prototype that we should provide.
> As written, I think the patch would also be a regression that would break
> apps which test for header/library support of a particular PTRACE_* command
> using #ifdef.
I do understand your concerns, I suppose that fixing this from the LLDB side
will solve the mis-compilation problem and will keep us from introducing a
regression to other apps from musl.
Out of curiosity, what is the general implementation choice in this case in
other C libraries? I'm asking because discovering GLIBC and handing it as a
special case would be easy through the __GLIBC__ macro. However, musl doesn't
provide any such macro (and other C libraries probably).
Thanks,
Vasileios
next prev parent reply other threads:[~2015-09-21 21:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-17 14:20 Vasileios Kalintiris
2015-09-21 20:31 ` Rich Felker
2015-09-21 21:39 ` Vasileios Kalintiris [this message]
2015-10-01 20:08 ` Alexander Monakov
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=8B7D5EC97CB15C4DBFDCE766959C1607C6C43E@hhmail02.hh.imgtec.org \
--to=vasileios.kalintiris@imgtec.com \
--cc=musl@lists.openwall.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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).