Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <shebs@apple.com>
To: Daniel Berlin <dberlin@redhat.com>
Cc: Andrew Cagney <ac131313@cygnus.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Start abstraction of C++ abi's
Date: Mon, 19 Feb 2001 14:58:00 -0000	[thread overview]
Message-ID: <3A91A4B5.36FD8BD4@apple.com> (raw)
In-Reply-To: <x7n1bi5q61.fsf@dynamic-addr-83-177.resnet.rochester.edu>

Daniel Berlin wrote:
> 
> [...] Why is it necessary to have a long discussion
> about creating a directory for a bunch of related files? I'm happy to
> see if anyone objects, but I don't see it as a significant change.
> Maybe this is why it never gets done.

Having sources in a subdir can be a significant pain for building
if done wrong.  It also breaks people's search patterns and scripts
that look for stuff.  So what's helpful for you may be a hindrance
for somebody else.

> if you really want me to dirty the root directory with these new
> files, i will, but i felt it made a lot more sense not to.There are
> currently over 400 files in the root gdb directory. Besides the -nat
> and -tdep files, I can't tell what a file does from it's name, because
> they aren't logically divided into subdirs by functionality, and there
> are just too damn many files.  Not that I expect to see this happen,
> but to prove a point:
> Quick, what's kod.h?

Kernel object display header file...

> ocd.c?

On-chip debugging support...

> stuff.c?

Stuff that probably should have been deleted long ago, but I wasn't sure
whether it was used by anybody or not. :-)

> Can you tell that ppc-bdm.c is related to ocd.c?

Sure, because BDM is Motorola's version of OCD. :-) :-)

This isn't so much an argument for subdir organization, it's an argument
to keep the number of files down and to give them good names.  Your
examples are also a good argument for public discussion prior to
creating directories and files, since bad choices will confuse future
implementors, as you've just noted.

I will cop to being one of those who've tended to discourage subdirs
for GDB sources.  Ironically, this is not because I like flat layouts
(for Xconq, I put *everything* in subdirs), but because GDB's current
build machinery heavily favors flatness in the way that it works with
files.  Some of this is simply historical - GDB originally had literally
everything in the one dir, and years ago Fred Fish moved target config
files to subdirs.

So if someone were to come up with a good design for repartitioning
GDB sources, *and* were to follow up by implementing it, as Fred did,
I think a lot of people would support it.  If it's possible to
implement the design incrementally, that's OK too, but I'd like to
know that there is a well-defined end state, so that the sources don't
end up in a sort of half-organized mush.

Stan


  parent reply	other threads:[~2001-02-19 14:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-18 12:51 Daniel Berlin
2001-02-18 22:52 ` Eli Zaretskii
2001-02-19  0:02   ` Daniel Berlin
2001-02-19  3:06     ` Eli Zaretskii
2001-02-19  6:32       ` Daniel Berlin
2001-02-19  8:48 ` Elena Zannoni
2001-02-19 10:24   ` Daniel Berlin
2001-02-19 11:27 ` Andrew Cagney
2001-02-19 13:17   ` Daniel Berlin
2001-02-19 13:36     ` Andrew Cagney
2001-02-19 14:58     ` Stan Shebs [this message]
2001-02-19 15:13     ` Michael Snyder
2001-02-18 16:09 Michael Elizabeth Chastain
2001-02-18 16:51 ` Daniel Berlin
2001-02-18 16:58 Michael Elizabeth Chastain
2001-02-18 18:05 ` Daniel Berlin
     [not found] <200102192211.OAA18590@bosch.cygnus.com>
2001-02-19 14:32 ` Andrew Cagney
2001-02-19 15:01 ` Daniel Berlin
2001-02-19 15:08 Michael Elizabeth Chastain

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=3A91A4B5.36FD8BD4@apple.com \
    --to=shebs@apple.com \
    --cc=ac131313@cygnus.com \
    --cc=dberlin@redhat.com \
    --cc=gdb-patches@sources.redhat.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