From: Daniel Jacobowitz <drow@false.org>
To: Kris Warkentin <kewarken@qnx.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch] Add QNX remote protocol headers.
Date: Sat, 10 Sep 2005 03:51:00 -0000 [thread overview]
Message-ID: <20050910035141.GA24054@nevyn.them.org> (raw)
In-Reply-To: <431DBF41.8050508@qnx.com>
On Tue, Sep 06, 2005 at 12:09:37PM -0400, Kris Warkentin wrote:
> Hi,
>
> I'm trying to break things up into smaller patches. The actual remote
> support is the biggest patch. These headers are nice and bite sized and
> most of our other targets are fairly discrete as well.
>
> The file dsmsgs.h describes the structures used by the remote protocol
> (pdebug). This is identical to what the pdebug server uses on the
> target side.
>
> The debug.h is a subset of our system header of the same name (and some
> others) and describes the structures returned by various debug interface
> system commands. Basically allows the same stuff as in our native
> 'nto-procfs.c' to work in the absence of system headers.
>
> ChangeLog:
>
> 2005-09-06 Kris Warkentin <kewarken@qnx.com>
>
> * nto-share/debug.h: New file.
> * nto-share/dsmsgs.h: New file.
>
> Look okay?
No...
First of all, what purpose do you intend for these interfaces to serve
in GDB? Are they going to be used only by new code to implement the
pdebug protocol, or shared between combined native/remote code?
Assuming remote only, then this:
> /* __DEBUG_H_INCLUDED is Neutrino's native debug.h header. We don't want
> these duplicate definitions if we're compiling natively and have already
> included it. */
> #ifndef __DEBUG_H_INCLUDED
> #define __DEBUG_H_INCLUDED
is pretty suspect - just give them different names from the system
version, or avoid including the system header, preferably the latter.
And basically everything else in the file is broken. You can't do
anything even vaguely complicated involving cross-debugging using host
system types. You're relying on the host's alignment and padding
rules, and system types like clock_t.
And whatever this does:
> #ifdef __QNX__
> __BEGIN_DECLS
> #include <_pack64.h>
> #endif
is similarly not OK. If it's intended to work cross, then it should
work from everywhere, not just from x86 and QNX.
I think I need a mile-high explanation of what you're trying to do,
first. By the way, is pdebug publically documented?
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-09-10 3:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 16:07 Kris Warkentin
2005-09-10 3:51 ` Daniel Jacobowitz [this message]
2005-09-12 13:10 ` Kris Warkentin
2005-09-12 13:33 ` Daniel Jacobowitz
2005-09-12 13:49 ` Kris Warkentin
2005-09-12 20:36 ` Daniel Jacobowitz
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=20050910035141.GA24054@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=kewarken@qnx.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