From: "Maciej W. Rozycki" <macro@codesourcery.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [PATCH] MIPS/Linux: Signal frame support for DSP registers
Date: Mon, 21 May 2012 17:10:00 -0000 [thread overview]
Message-ID: <alpine.DEB.1.10.1205211744500.11227@tp.orcam.me.uk> (raw)
In-Reply-To: <83wr45xzq9.fsf@gnu.org>
On Mon, 21 May 2012, Eli Zaretskii wrote:
> > Eli, can you tell me if the NEWS entry is OK with you?
>
> Yes, thanks.
Great! I'll push the change then.
> > Please note that I deliberately say "Linux" rather than "GNU/Linux"
> > here as all the DSP support relies on a kernel feature; it does not
> > rely on any C library or other userland feature whatsoever.
>
> Hmm... since you mention that, I looked into configure.tgt and saw
> that we are inconsistent here: some targets are described as running
> "GNU/Linux", others just "Linux". Personally, I think "GNU/Linux" is
> the more correct in this case (you refer to a target system), but it's
> not my call.
After some thinking I've concluded it's an interesting question actually.
Some target properties are libc-specific, for example the system library
is free to map any magic numbers used for kernel syscalls however it likes
(things like fcntl flags or whatever) and the library calls may not
identity map to syscalls, so these will be libc- rather than
kernel-specific.
Here I don't think the system library can do anything, the signal frame
and the associated bits are arranged by the kernel directly and the layout
of struct ucontext_t is cast in stone. One can stuff a hypothetical BSD C
library on top of the Linux kernel and our MIPS DSP support will work with
that unchanged.
A less hypothetical case is an embedded app running on Linux without libc
and I believe such stuff actually exists (and GDB can debug it provided
that they have a remote stub of some sort available).
Thanks for your notes.
Maciej
next prev parent reply other threads:[~2012-05-21 17:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-21 15:44 Maciej W. Rozycki
2012-05-21 16:31 ` Eli Zaretskii
2012-05-21 17:10 ` Maciej W. Rozycki [this message]
2012-05-22 17:17 ` Maciej W. Rozycki
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=alpine.DEB.1.10.1205211744500.11227@tp.orcam.me.uk \
--to=macro@codesourcery.com \
--cc=eliz@gnu.org \
--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