public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc: insight@sourceware.org, gdb-patches@sources.redhat.com
Subject: Re: Single-executable patch
Date: Wed, 17 May 2006 20:32:00 -0000	[thread overview]
Message-ID: <ud5ec2y03.fsf@gnu.org> (raw)
In-Reply-To: <200605171502.18798.mi+mx@aldan.algebra.com> (message from 	Mikhail Teterin on Wed, 17 May 2006 15:02:18 -0400)

> From: Mikhail Teterin <mi+mx@aldan.algebra.com>
> Date: Wed, 17 May 2006 15:02:18 -0400
> 
> It seems, all three of the gdb, gdbtui, and insight executables are the same 
> except for their (tiny) main() functions.
> 
> The attached sample patch allows to install just the gdb and link it to gdbtui 
> and insight -- the program will behave differently depending on the name, 
> under which it is invoked.

This is against the GNU coding standards.  From standards.info:

    Please don't make the behavior of a utility depend on the name used to
    invoke it.  It is useful sometimes to make a link to a utility with a
    different name, and that should not change what it does.

       Instead, use a run time option or a compilation switch or both to
    select among the alternate behaviors.

  parent reply	other threads:[~2006-05-17 20:32 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-17  2:02 Questioning the withdom of bundling gdb and insight Mikhail Teterin
2006-05-17 14:31 ` Keith Seitz
2006-05-17 17:50   ` Mikhail Teterin
2006-05-17 17:57     ` Dave Korn
     [not found]   ` <200605171330.50762.mi+mx@aldan.algebra.com>
2006-05-17 17:53     ` Does insight work? Keith Seitz
2006-05-17 18:06       ` Mikhail Teterin
2006-05-17 18:08         ` Keith Seitz
2006-05-17 18:15           ` Mikhail Teterin
2006-05-17 18:27             ` Keith Seitz
2006-05-17 18:41               ` Mikhail Teterin
2006-05-17 19:03               ` Single-executable patch Mikhail Teterin
2006-05-17 19:07                 ` Daniel Jacobowitz
2006-05-17 19:28                   ` Mikhail Teterin
2006-05-17 19:35                     ` Daniel Jacobowitz
2006-05-17 20:32                 ` Eli Zaretskii [this message]
     [not found]   ` <200605171337.30938.mi+mx@aldan.algebra.com>
2006-05-17 17:55     ` Questioning the withdom of bundling gdb and insight Keith Seitz
2006-05-17 18:11       ` Mikhail Teterin
2006-05-17 18:20         ` Keith Seitz
2006-05-17 18:31           ` Mikhail Teterin
2007-06-29  0:56   ` Mikhail Teterin

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=ud5ec2y03.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=insight@sourceware.org \
    --cc=mi+mx@aldan.algebra.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).