This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Scope Checking Patch

Rob Quill wrote:
On 11/06/07, Markus Deuling <> 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.
c) Do my changes in
d) Create patch by: diff -urN gdb/ > 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  <- copy of gdb-6.6/ <- directory in which you configure & build 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/ > diff-file

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

To configure & build gdb: cd 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]