Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@cygnus.com>
To: law@cygnus.com
Cc: Jimmy Guo <guo@cup.hp.com>, gdb-patches@sourceware.cygnus.com
Subject: Re: (patch) hpjyg15: hppah-nat.c & related
Date: Thu, 16 Dec 1999 00:32:00 -0000	[thread overview]
Message-ID: <3858A26D.8C6ECED1@cygnus.com> (raw)
In-Reply-To: <4534.945330639@upchuck>

Jeffrey A Law wrote:
> 
>   In message < Pine.LNX.4.10.9912150951120.29808-100000@hpcll168.cup.hp.com >you
> write:
>   > Since I'm splitting apart changes made by HP, in various areas, over 12
>   > months, into multiple patches, there's a need for me to run indent on
>   > the patched source to ensure that the GNU coding style in gdb source is
>   > adhered to.  I will make sure that pure formatting changes (line breaks)
>   > made by HP are not introduced along with real changes.
> Well, there may be instances where you have a real change that required a
> formatting update.  ie consider if you had
> 
>   if (foo)
>     blah

> You missed another alternative, which I'd tend to favor.
> 
> 1. Run intent on the gdb source files.  Submit that as a patch.  That should be
>    acceptable without problems.
> 
> 2. Apply the patch from wdb using whatever means are possible (patch -l ?).
> 
> 3. Re-run indent on the changed files.
> 
> 4. Submit the patch resulting from diffing the output of steps #1 and #3.

From memory, one of the original problems Jim[HP] found was that
re-running indent further changed the file :-(

	Andrew
From guo@cup.hp.com Thu Dec 16 00:39:00 1999
From: Jimmy Guo <guo@cup.hp.com>
To: Jeffrey A Law <law@cygnus.com>
Cc: Andrew Cagney <ac131313@cygnus.com>, gdb-patches@sourceware.cygnus.com
Subject: Re: (patch) hpjyg15: hppah-nat.c & related 
Date: Thu, 16 Dec 1999 00:39:00 -0000
Message-id: <Pine.LNX.4.10.9912160026010.32740-100000@hpcll168.cup.hp.com>
References: <4534.945330639@upchuck>
X-SW-Source: 1999-q4/msg00402.html
Content-length: 1215

>You missed another alternative, which I'd tend to favor.
>
>1. Run intent on the gdb source files.  Submit that as a patch.  That should be
>   acceptable without problems.
>
>2. Apply the patch from wdb using whatever means are possible (patch -l ?).
>
>3. Re-run indent on the changed files.
>
>4. Submit the patch resulting from diffing the output of steps #1 and #3.

    This is very doable.  Painful as it may appear, it's more so in the
    steps involved than the actual overhead ... and I will definitely
    write a simple script to generate patch for #1 and #3 in one shot ...

>Yes, this is painful.  But it avoids introducing new formatting problems in
>the sources (in fact via step #1 it will tend to fix formatting problems that
>have slipped in accidentally).

    I agree.

>Of course we only need to go through this pain as we flush out your old
>patches.  Newer stuff should be done using GNU standards and this kind of
>painful process shouldn't be necessary.

    Since I'm 'chopping' changes apart to limit patch scope and
    'cooking' patches during patch testing cycles, the above steps are
    pretty much what should be done for my future patches as well.

- Jimmy Guo, guo@cup.hp.com


  reply	other threads:[~1999-12-16  0:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.10.9912150951120.29808-100000@hpcll168.cup.hp.com>
1999-12-16  0:07 ` Jeffrey A Law
1999-12-16  0:32   ` Andrew Cagney [this message]
     [not found] <Pine.LNX.4.10.9911111610120.6426-100000@hpcll168.cup.hp.com>
1999-11-11 16:46 ` Stan Shebs
1999-11-11 17:13   ` Kevin Buettner

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=3858A26D.8C6ECED1@cygnus.com \
    --to=ac131313@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.com \
    --cc=guo@cup.hp.com \
    --cc=law@cygnus.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