Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Markus Deuling <deuling@de.ibm.com>
To: Rob Quill <rob.quill@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Scope Checking Patch
Date: Mon, 11 Jun 2007 10:58:00 -0000	[thread overview]
Message-ID: <466D2A94.1020703@de.ibm.com> (raw)
In-Reply-To: <baf6008d0706110241m12343d27p4fba7cdeb07f9f1e@mail.gmail.com>

Rob Quill wrote:
> On 11/06/07, Markus Deuling <deuling@de.ibm.com> wrote:
>> Hi Rob,
>>
>> I haven't gone through your patch, but I have a suggestion. If I do a 
>> patch for GDB I do it like that:
>>
>> a) Checkout current head
>> b) Create a copy of that directory e.g. gdb.new
>> c) Do my changes in gdb.new
>> d) Create patch by: diff -urN gdb/ gdb.new/ > diff-file
> 
> Thanks. I tried this, but I ended up with a 214MB diff file. I'm not
> sure why this is, as I did a make distclean on both copies, I think it
> may be due to the testsuite results not having been cleaned or
> something. Does anyone have any ideas what to do?

Hm, I think I haven't pointed it out clearly. Lets assume following directory structure:

gdb-6.6/  <- extract gdb-6.6.tar.bz2
gdb.dev/  <- copy of gdb-6.6/
gdb.dev/build <- directory in which you configure & build gdb
gdb.dev/gdb <- source tree where you do your changes
gdb-6.6/gdb <- original gdb source tree

You do a patch now with following command:
diff -urN gdb-6.6/gdb/ gdb.dev/gdb > diff-file

What you should do is to compare ONLY the source tree in gdb/ directories.


To configure & build gdb:
cd gdb.dev/
mkdir build
cd build/
../configure --disable-werror
make

You should always build GDB in a directory separate from source directory.


-- 
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com


  reply	other threads:[~2007-06-11 10:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-10 20:54 Rob Quill
2007-06-10 20:55 ` Rob Quill
2007-06-11 17:12   ` Jim Blandy
2007-06-11 17:31     ` Rob Quill
2007-06-11  8:31 ` Markus Deuling
2007-06-11  9:41   ` Rob Quill
2007-06-11 10:58     ` Markus Deuling [this message]
2007-06-11 10:59     ` Andrew STUBBS
2007-06-11 11:17       ` Nick Roberts
2007-06-11 16:03       ` Daniel Jacobowitz

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=466D2A94.1020703@de.ibm.com \
    --to=deuling@de.ibm.com \
    --cc=gdb@sourceware.org \
    --cc=rob.quill@gmail.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