[patch 1/2] Make gdbtui a shell script

Tom Tromey tromey@redhat.com
Wed Dec 21 17:26:00 GMT 2011


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> Fedora has been using gdb<->gdbtui hardlink but according to Tom
Jan> argv[0] should not be used.  GNU Coding Standards IMO do not say
Jan> exactly this thing.

>From '(standards) User Interfaces':

    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.

Tom



More information about the Gdb-patches mailing list