From: Eli Zaretskii <eliz@is.elta.co.il>
To: Kevin Buettner <kevinb@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH RFC] process/thread/lwp id patch - phase 1
Date: Tue, 01 May 2001 01:48:00 -0000 [thread overview]
Message-ID: <Pine.SUN.3.91.1010501114841.29799D@is> (raw)
In-Reply-To: <1010430174514.ZM31129@ocotillo.lan>
On Mon, 30 Apr 2001, Kevin Buettner wrote:
> This patch introduces a new type called ptid_t which is intended to
> represent a combined process id and thread id (and in some cases, lwp
> id). This patch is conservative in that it defines it exactly as it
> is defined now in GDB, namely as an "int". It is not terribly useful
> as such, but phase 3 will introduce a new representation. (See the
> "FYI" patch referenced above to see what the new representation
> might look like.)
Wearing my Docs Cop hat, I'd say that something about this should
probably be added to gdbint.texinfo. Please consider that at some
point.
> +#define pid_to_ptid(PID) ((ptid_t) MERGEPID ((PID),0))
This definition is global, for all ports and targets. However,
MERGEPID is only defined for some of them, so it looks like the other
targets will instantly become broken by this change (since pid_to_ptid
is called in much more targets than those which define MERGEPID). So
I think some header (target.h?) should have a fallback definition for
MERGEPID, something like this:
#ifndef MERGEPID
#define MERGEPID(PID,DUMMY) (PID)
#endif
Or did I miss something?
next prev parent reply other threads:[~2001-05-01 1:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-30 10:45 Kevin Buettner
2001-05-01 1:48 ` Eli Zaretskii [this message]
2001-05-01 7:47 ` Kevin Buettner
2001-05-03 0:19 ` Eli Zaretskii
2001-05-03 1:24 ` Kevin Buettner
2001-05-03 1:28 ` Eli Zaretskii
2001-05-03 15:57 ` Andrew Cagney
2001-05-03 21:31 ` Kevin Buettner
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=Pine.SUN.3.91.1010501114841.29799D@is \
--to=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@cygnus.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