From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18617 invoked by alias); 14 Aug 2009 02:58:18 -0000 Received: (qmail 18485 invoked by uid 22791); 14 Aug 2009 02:58:16 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_83,SPF_PASS X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.148) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Aug 2009 02:58:07 +0000 Received: by qw-out-1920.google.com with SMTP id 5so740730qwf.24 for ; Thu, 13 Aug 2009 19:58:04 -0700 (PDT) Received: by 10.224.117.130 with SMTP id r2mr1952262qaq.142.1250218684614; Thu, 13 Aug 2009 19:58:04 -0700 (PDT) Received: from hotblack.localnet ([201.82.53.64]) by mx.google.com with ESMTPS id 6sm2403140qwd.8.2009.08.13.19.58.02 (version=SSLv3 cipher=RC4-MD5); Thu, 13 Aug 2009 19:58:03 -0700 (PDT) From: Thiago Jung Bauermann Subject: [RFA] Rename python files. Date: Fri, 14 Aug 2009 07:12:00 -0000 User-Agent: KMail/1.12.0 (Linux/2.6.30-1-amd64; KDE/4.3.0; x86_64; ; ) MIME-Version: 1.0 To: "gdb-patches ml" Content-Type: Multipart/Mixed; boundary="Boundary-00=_UMNhKtSrzYdVz3f" Message-Id: <200908132359.32327.thiago.bauermann@gmail.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00189.txt.bz2 --Boundary-00=_UMNhKtSrzYdVz3f Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 1794 Hi, Eli asked that the source code and testcase files pertaining to python scripting support be renamed in order to support the 8.3 limitation in DOS. I don't like the fnchange.lst solution because it's just one more arcane thing we would have to know in order to hack GDB. So I prefer straight renaming of the files. How should said renaming be done, by submitting and committing a patch which removes the old file and adds a new one, or by moving things around in CVSROOT? In any case, this is my suggestion for the source code files: python/python-cmd.c -> python/py-cmd.c python/python-frame.c -> python/py-frame.c python/python-function.c -> python/py-function.c python/python-prettyprint.c -> python/py-prettyprint.c python/python-type.c -> python/py-type.c python/python-utils.c -> python/py-utils.c python/python-value.c -> python/py-value.c and the testcase files: gdb.python/python-cmd.exp -> gdb.python/py-cmd.exp gdb.python/python-frame.c -> gdb.python/py-frame.c gdb.python/python-frame.exp -> gdb.python/py-frame.exp gdb.python/python-function.exp -> gdb.python/py-function.exp gdb.python/python-mi.exp -> gdb.python/py-mi.exp gdb.python/python-prettyprint.c -> gdb.python/py-prettyprint.c gdb.python/python-prettyprint.exp -> gdb.python/py-prettyprint.exp gdb.python/python-prettyprint.py -> gdb.python/py-prettyprint.py gdb.python/python-template.cc -> gdb.python/py-template.cc gdb.python/python-template.exp -> gdb.python/py-template.exp gdb.python/python-value.c -> gdb.python/py-value.c gdb.python/python-value.exp -> gdb.python/py-value.exp I'll write changelogs before committing anything, of course. I also have the two attached patches to adapt Makefile.in and the various test files (for the new test executable names). Ok? -- []'s Thiago Jung Bauermann --Boundary-00=_UMNhKtSrzYdVz3f Content-Type: text/x-patch; charset="UTF-8"; name="submit-code-partial.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="submit-code-partial.diff" Content-length: 3014 diff --git a/gdb/Makefile.in b/gdb/Makefile.in index ccc4db8..82ffce8 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -264,24 +264,24 @@ SUBDIR_TUI_CFLAGS= \ # SUBDIR_PYTHON_OBS = \ python.o \ - python-cmd.o \ - python-frame.o \ - python-function.o \ - python-objfile.o \ - python-prettyprint.o \ - python-type.o \ - python-utils.o \ - python-value.o + py-cmd.o \ + py-frame.o \ + py-function.o \ + py-objfile.o \ + py-prettyprint.o \ + py-type.o \ + py-utils.o \ + py-value.o SUBDIR_PYTHON_SRCS = \ python/python.c \ - python/python-cmd.c \ - python/python-frame.c \ - python/python-function.c \ - python/python-objfile.c \ - python/python-prettyprint.c \ - python/python-type.c \ - python/python-utils.c \ - python/python-value.c + python/py-cmd.c \ + python/py-frame.c \ + python/py-function.c \ + python/py-objfile.c \ + python/py-prettyprint.c \ + python/py-type.c \ + python/py-utils.c \ + python/py-value.c SUBDIR_PYTHON_DEPS = SUBDIR_PYTHON_LDFLAGS= SUBDIR_PYTHON_CFLAGS= @@ -1918,36 +1918,36 @@ python.o: $(srcdir)/python/python.c $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python.c $(POSTCOMPILE) -python-cmd.o: $(srcdir)/python/python-cmd.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-cmd.c +py-cmd.o: $(srcdir)/python/py-cmd.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-cmd.c $(POSTCOMPILE) -python-frame.o: $(srcdir)/python/python-frame.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-frame.c +py-frame.o: $(srcdir)/python/py-frame.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-frame.c $(POSTCOMPILE) -python-function.o: $(srcdir)/python/python-function.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-function.c +py-function.o: $(srcdir)/python/py-function.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-function.c $(POSTCOMPILE) -python-objfile.o: $(srcdir)/python/python-objfile.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-objfile.c +py-objfile.o: $(srcdir)/python/py-objfile.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-objfile.c $(POSTCOMPILE) -python-prettyprint.o: $(srcdir)/python/python-prettyprint.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-prettyprint.c +py-prettyprint.o: $(srcdir)/python/py-prettyprint.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-prettyprint.c $(POSTCOMPILE) -python-type.o: $(srcdir)/python/python-type.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-type.c +py-type.o: $(srcdir)/python/py-type.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-type.c $(POSTCOMPILE) -python-utils.o: $(srcdir)/python/python-utils.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-utils.c +py-utils.o: $(srcdir)/python/py-utils.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-utils.c $(POSTCOMPILE) -python-value.o: $(srcdir)/python/python-value.c - $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/python-value.c +py-value.o: $(srcdir)/python/py-value.c + $(COMPILE) $(PYTHON_CFLAGS) $(srcdir)/python/py-value.c $(POSTCOMPILE) # --Boundary-00=_UMNhKtSrzYdVz3f Content-Type: text/x-patch; charset="UTF-8"; name="submit-testsuite-exp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="submit-testsuite-exp.diff" Content-length: 3210 diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in index c49f713..655e604 100644 --- a/gdb/testsuite/gdb.python/Makefile.in +++ b/gdb/testsuite/gdb.python/Makefile.in @@ -1,7 +1,7 @@ VPATH = @srcdir@ srcdir = @srcdir@ -EXECUTABLES = python-value python-prettyprint python-template +EXECUTABLES = py-value py-prettyprint py-template all info install-info dvi install uninstall installcheck check: @echo "Nothing to be done for $@..." diff --git a/gdb/testsuite/gdb.python//py-frame.exp b/gdb/testsuite/gdb.python//py-frame.exp index 82ae814..13af0ba 100644 --- a/gdb/testsuite/gdb.python//py-frame.exp +++ b/gdb/testsuite/gdb.python//py-frame.exp @@ -31,7 +31,7 @@ if ![python_supported] then { return -1 } -set testfile "python-frame" +set testfile "py-frame" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} diff --git a/gdb/testsuite/gdb.python//py-mi.exp b/gdb/testsuite/gdb.python//py-mi.exp index e7bfe54..ee000f1 100644 --- a/gdb/testsuite/gdb.python//py-mi.exp +++ b/gdb/testsuite/gdb.python//py-mi.exp @@ -24,7 +24,7 @@ if [mi_gdb_start] { continue } -set testfile "python-prettyprint" +set testfile "py-prettyprint" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } { diff --git a/gdb/testsuite/gdb.python//py-prettyprint.exp b/gdb/testsuite/gdb.python//py-prettyprint.exp index b2dc85d..2134ab9 100644 --- a/gdb/testsuite/gdb.python//py-prettyprint.exp +++ b/gdb/testsuite/gdb.python//py-prettyprint.exp @@ -20,7 +20,7 @@ if $tracelevel then { strace $tracelevel } -set testfile "python-prettyprint" +set testfile "py-prettyprint" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} diff --git a/gdb/testsuite/gdb.python//py-template.exp b/gdb/testsuite/gdb.python//py-template.exp index b80f56e..2d76371 100644 --- a/gdb/testsuite/gdb.python//py-template.exp +++ b/gdb/testsuite/gdb.python//py-template.exp @@ -31,7 +31,7 @@ if ![python_supported] then { return -1 } -set testfile "python-template" +set testfile "py-template" set srcfile ${testfile}.cc set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ diff --git a/gdb/testsuite/gdb.python//py-value.exp b/gdb/testsuite/gdb.python//py-value.exp index ccf438f..a4f58af 100644 --- a/gdb/testsuite/gdb.python//py-value.exp +++ b/gdb/testsuite/gdb.python//py-value.exp @@ -220,7 +220,7 @@ proc test_value_in_inferior {} { # A few objfile tests. proc test_objfiles {} { - gdb_test "python\nok=False\nfor file in gdb.objfiles():\n if 'python-value' in file.filename:\n ok=True\nprint ok\nend" "True" + gdb_test "python\nok=False\nfor file in gdb.objfiles():\n if 'py-value' in file.filename:\n ok=True\nprint ok\nend" "True" gdb_test "python print gdb.objfiles()\[0\].pretty_printers" "\\\[\\\]" @@ -275,7 +275,7 @@ if ![python_supported] then { return -1 } -set testfile "python-value" +set testfile "py-value" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} --Boundary-00=_UMNhKtSrzYdVz3f--