Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: lgustavo@codesourcery.com,
	       "'gdb-patches\@sourceware.org'"
	<gdb-patches@sourceware.org>
Subject: Re: [PATCH] Share more common target structures between gdb and gdbserver
Date: Tue, 30 Jul 2013 18:11:00 -0000	[thread overview]
Message-ID: <87mwp3lxym.fsf@fleche.redhat.com> (raw)
In-Reply-To: <51F7FC4E.3050604@redhat.com> (Pedro Alves's message of "Tue, 30	Jul 2013 18:47:58 +0100")

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> I'd very much prefer avoiding "common" in file names, instead
Pedro> naming the files for what they contain, not for the fact that they're
Pedro> "common" to two programs (gdb, gdbserver) presently.  I think of it
Pedro> this way -- when we finally end up with only one backend (or one
Pedro> backend using a foo-common.c file), I'd rather avoid
Pedro> renaming these files to something else, because they're no longer
Pedro> "common".  Or, yet IOW, think of common/ as a library.  Can you
Pedro> imagine if all libraries in a distro named their implementation
Pedro> files "foo-common.c" ?  Because that's what should happen given
Pedro> they're used by lots of programs, right?  :-)  The direction I prefer
Pedro> is, when moving things to common/ we take the opportunity to split them
Pedro> into smaller, more atomic, leaner units.  E.g., that's how we ended up
Pedro> with ptid.h/ptid.c, instead of inferior-common.h (or some such).

This all makes sense to me.

I think it would be best to write this down in the "Common" page of the
wiki.  We can add other guidelines there too.  This will make it simpler
for people to work on the commonizing project.

Tom


  reply	other threads:[~2013-07-30 18:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 18:49 Luis Machado
2013-07-22 17:18 ` Tom Tromey
2013-07-22 18:23   ` Luis Machado
2013-07-30 17:48 ` Pedro Alves
2013-07-30 18:11   ` Tom Tromey [this message]
2013-07-31 12:16     ` Pedro Alves
2013-07-31 15:22       ` Tom Tromey
2013-07-31 18:43   ` Luis Machado
2013-07-31 19:03     ` Pedro Alves

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=87mwp3lxym.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=lgustavo@codesourcery.com \
    --cc=palves@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