From: Mark Kettenis <kettenis@chello.nl>
To: kewarken@qnx.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] QNX Neutrino/i386 support
Date: Sat, 08 Mar 2003 23:49:00 -0000 [thread overview]
Message-ID: <200303082349.h28Nn54f000779@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <004001c2e584$65814690$2a00a8c0@dash> (kewarken@qnx.com)
From: "Kris Warkentin" <kewarken@qnx.com>
Date: Sat, 8 Mar 2003 10:06:49 -0500
That's great Mark but what about the native procfs stuff?
Sorry but the native procfs stuff is beyond my maintainership, and I
don't feel confident enough to approve that stuff based on my global
maintainership.
The most recent patch that I had submitted was a native only
version. The only stuff in the i386-nto-tdep.c that was even
vaguely related to the remote protocol was stuffing the regset type
in the register area. This is also used by nto-procfs.c so I
refactored the regset numbers to be defines that can be used by
both.
The i386-nto-tdep.c (and the nto-tdep.c for that matter) should only
contain ISA/ABI related code. You'll probably need some register
mapping functions in there (for interpreting core files), but I fail
to see how the code that's in your proposed i386-nto-tdep.c file is
related to the rest of the stuff. There just seem to be too many
interdependencies between all the different files.
The file you have reduced to here is completely useless for any
form of debugging on Neutrino. We don't currently support the
standard gdb debug protocol although it's on our to-do list. Our
i386 registers are in a different order that gdb so we need to do
the mapping. I have already applied patches to solib.c to do a
special lookup of target solibs. Without that support, libs won't
be found properly.
I understand that, and I'm not asking you to implement the standard
GDB remote protocol before we can add this to GDB.
BTW, the OSABI stuff is already committed (they gave me write-after
approval for cvs) - the only stuff left is the addition of new
files. I would like to get the config dir stuff, the tdep files,
the nto-share headers and nto-procfs.c committed.
But I hope you can understand that you can't just drop in those new
files. Dropping in large chunks of code makes it difficult to get
approval. If you can split things up in smaller chunks that don't
need approval of several people, you're much more likely to get
approval. As a benefit you'll probably get code that's structure more
like the way we'd like GDB to evolve. That's the main reason why I
(and Andrew before me) have asked you to seperate the target-dependent
bits from the native and remote support and ask approval for those
bits seperately.
What we have currently is something that works perfectly for us. I
really don't want to start with something completely broken and
make additions until it works. I want to add the working stuff and
then cut away any fat that we can prove that we don't need. I
don't mind doing major refactoring but I want to have working code
in CVS at all times. That is something that the GDB project
strives for and I would like to do for our target as well.
I've attached a tarball with the files in it. I think that it's
pretty much the same as what you have with the changes for the
remote defines. I appreciate the time you're putting into this and
I really want our port to be as clean as it can be. I know that
there's lots of work to be done but I'd really rather start from a
working version and clean from there. This is one of my highest
priority projects so I have lots of cycles available to do the work
but I want to be able to point our customers to the head branch and
have it work for them.
We have seen in the past that such cleanups hardly ever happen. Would
it be acceptable for you to check the new files in on a branch and
merge it in bit by bit from there?
Mark
next prev parent reply other threads:[~2003-03-08 23:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-08 13:45 Mark Kettenis
2003-03-08 15:02 ` Kris Warkentin
2003-03-08 23:49 ` Mark Kettenis [this message]
2003-03-09 0:14 ` Mark Kettenis
2003-03-09 4:34 ` Kris Warkentin
2003-03-09 17:51 ` Kris Warkentin
2003-03-19 18:19 ` Kris Warkentin
2003-03-19 18:27 ` Mark Kettenis
2003-03-08 15:19 ` Kris Warkentin
2003-03-08 15:22 ` Kris Warkentin
2003-03-09 14:54 Kris Warkentin
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=200303082349.h28Nn54f000779@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--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