From 5172aecbd2b65e71aedbd21c46253ca6a20227aa Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 9 Sep 2009 17:45:42 +0000 Subject: [PATCH] Checking in this patch for Thiago: Rename python-* files into py-*, more 8+3 friendly. gdb/ * Makefile.in (py-cmd.o): Renamed from python-cmd.o. Updated references. (py-frame.o): Renamed from python-frame.o. Updated references. (py-function.o): Renamed from python-function.o. Updated references. (py-objfile.o): Renamed from python-objfile.o. Updated references. (py-prettyprint.o): Renamed from python-prettyprint.o. Updated +references. (py-type.o): Renamed from python-type.o. Updated references. (py-utils.o): Renamed from python-utils.o. Updated references. (py-value.o): Renamed from python-value.o. Updated references. * py-cmd.o: Renamed from python-cmd.o. * py-frame.o: Renamed from python-frame.o. * py-function.o: Renamed from python-function.o. * py-objfile.o: Renamed from python-objfile.o. * py-prettyprint.o: Renamed from python-prettyprint.o. * py-type.o: Renamed from python-type.o. * py-utils.o: Renamed from python-utils.o. * py-value.o: Renamed from python-value.o. gdb/testsuite/ * gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable names, add missing ones. * gdb.python/py-cmd.exp: Rename from python-cmd.exp. * gdb.python/py-frame.c: Rename from python-frame.c. * gdb.python/py-frame.exp: Rename from python-frame.exp. Adjust testfile name. * gdb.python/py-function.exp: Rename from python-function.exp. * gdb.python/py-mi.exp: Rename from python-mi.exp. Adjust testfile name. * gdb.python/py-prettyprint.c: Rename from python-prettyprint.c. * gdb.python/py-prettyprint.exp: Rename from python-prettyprint.exp. Adjust testfile name. * gdb.python/py-prettyprint.py: Rename from python-prettyprint.py. * gdb.python/py-template.cc: Rename from python-template.cc. * gdb.python/py-template.exp: Rename from python-template.exp. Adjust testfile name. * gdb.python/py-value.c: Rename from python-value.c. * gdb.python/py-value.exp: Rename from python-value.exp. Adjust testfile name. --- gdb/ChangeLog | 21 ++++++ gdb/Makefile.in | 64 +++++++++---------- gdb/python/{python-cmd.c => py-cmd.c} | 0 gdb/python/{python-frame.c => py-frame.c} | 0 .../{python-function.c => py-function.c} | 0 gdb/python/{python-objfile.c => py-objfile.c} | 0 ...{python-prettyprint.c => py-prettyprint.c} | 0 gdb/python/{python-type.c => py-type.c} | 0 gdb/python/{python-utils.c => py-utils.c} | 0 gdb/python/{python-value.c => py-value.c} | 0 gdb/testsuite/ChangeLog | 22 +++++++ gdb/testsuite/gdb.python/Makefile.in | 2 +- .../gdb.python/{python-cmd.exp => py-cmd.exp} | 0 .../gdb.python/{python-frame.c => py-frame.c} | 0 .../{python-frame.exp => py-frame.exp} | 2 +- .../{python-function.exp => py-function.exp} | 0 .../gdb.python/{python-mi.exp => py-mi.exp} | 2 +- ...{python-prettyprint.c => py-prettyprint.c} | 0 ...hon-prettyprint.exp => py-prettyprint.exp} | 2 +- ...ython-prettyprint.py => py-prettyprint.py} | 0 .../{python-template.cc => py-template.cc} | 0 .../{python-template.exp => py-template.exp} | 2 +- .../gdb.python/{python-value.c => py-value.c} | 0 .../{python-value.exp => py-value.exp} | 4 +- 24 files changed, 82 insertions(+), 39 deletions(-) rename gdb/python/{python-cmd.c => py-cmd.c} (100%) rename gdb/python/{python-frame.c => py-frame.c} (100%) rename gdb/python/{python-function.c => py-function.c} (100%) rename gdb/python/{python-objfile.c => py-objfile.c} (100%) rename gdb/python/{python-prettyprint.c => py-prettyprint.c} (100%) rename gdb/python/{python-type.c => py-type.c} (100%) rename gdb/python/{python-utils.c => py-utils.c} (100%) rename gdb/python/{python-value.c => py-value.c} (100%) rename gdb/testsuite/gdb.python/{python-cmd.exp => py-cmd.exp} (100%) rename gdb/testsuite/gdb.python/{python-frame.c => py-frame.c} (100%) rename gdb/testsuite/gdb.python/{python-frame.exp => py-frame.exp} (99%) rename gdb/testsuite/gdb.python/{python-function.exp => py-function.exp} (100%) rename gdb/testsuite/gdb.python/{python-mi.exp => py-mi.exp} (98%) rename gdb/testsuite/gdb.python/{python-prettyprint.c => py-prettyprint.c} (100%) rename gdb/testsuite/gdb.python/{python-prettyprint.exp => py-prettyprint.exp} (98%) rename gdb/testsuite/gdb.python/{python-prettyprint.py => py-prettyprint.py} (100%) rename gdb/testsuite/gdb.python/{python-template.cc => py-template.cc} (100%) rename gdb/testsuite/gdb.python/{python-template.exp => py-template.exp} (98%) rename gdb/testsuite/gdb.python/{python-value.c => py-value.c} (100%) rename gdb/testsuite/gdb.python/{python-value.exp => py-value.exp} (99%) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52d87232916..82d6704f5b7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,24 @@ +2009-09-08 Thiago Jung Bauermann + + * Makefile.in (py-cmd.o): Renamed from python-cmd.o. Updated + references. + (py-frame.o): Renamed from python-frame.o. Updated references. + (py-function.o): Renamed from python-function.o. Updated references. + (py-objfile.o): Renamed from python-objfile.o. Updated references. + (py-prettyprint.o): Renamed from python-prettyprint.o. Updated + references. + (py-type.o): Renamed from python-type.o. Updated references. + (py-utils.o): Renamed from python-utils.o. Updated references. + (py-value.o): Renamed from python-value.o. Updated references. + * py-cmd.c: Renamed from python-cmd.c. + * py-frame.c: Renamed from python-frame.c. + * py-function.c: Renamed from python-function.c. + * py-objfile.c: Renamed from python-objfile.c. + * py-prettyprint.c: Renamed from python-prettyprint.c. + * py-type.c: Renamed from python-type.c. + * py-utils.c: Renamed from python-utils.c. + * py-value.c: Renamed from python-value.c. + 2009-09-08 Joel Brobecker Avoid quadratic behavior when computing the value of a register. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 7bc02cd8b1d..7f2fe5889c3 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= @@ -1920,36 +1920,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) # diff --git a/gdb/python/python-cmd.c b/gdb/python/py-cmd.c similarity index 100% rename from gdb/python/python-cmd.c rename to gdb/python/py-cmd.c diff --git a/gdb/python/python-frame.c b/gdb/python/py-frame.c similarity index 100% rename from gdb/python/python-frame.c rename to gdb/python/py-frame.c diff --git a/gdb/python/python-function.c b/gdb/python/py-function.c similarity index 100% rename from gdb/python/python-function.c rename to gdb/python/py-function.c diff --git a/gdb/python/python-objfile.c b/gdb/python/py-objfile.c similarity index 100% rename from gdb/python/python-objfile.c rename to gdb/python/py-objfile.c diff --git a/gdb/python/python-prettyprint.c b/gdb/python/py-prettyprint.c similarity index 100% rename from gdb/python/python-prettyprint.c rename to gdb/python/py-prettyprint.c diff --git a/gdb/python/python-type.c b/gdb/python/py-type.c similarity index 100% rename from gdb/python/python-type.c rename to gdb/python/py-type.c diff --git a/gdb/python/python-utils.c b/gdb/python/py-utils.c similarity index 100% rename from gdb/python/python-utils.c rename to gdb/python/py-utils.c diff --git a/gdb/python/python-value.c b/gdb/python/py-value.c similarity index 100% rename from gdb/python/python-value.c rename to gdb/python/py-value.c diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f6ffeb9d2f8..1b265196c86 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,25 @@ +2009-09-08 Thiago Jung Bauermann + + * gdb.python/Makefile.in (EXECUTABLES): Adjust to new executable + names, add missing ones. + * gdb.python/py-cmd.exp: Rename from python-cmd.exp. + * gdb.python/py-frame.c: Rename from python-frame.c. + * gdb.python/py-frame.exp: Rename from python-frame.exp. Adjust + testfile name. + * gdb.python/py-function.exp: Rename from python-function.exp. + * gdb.python/py-mi.exp: Rename from python-mi.exp. Adjust + testfile name. + * gdb.python/py-prettyprint.c: Rename from python-prettyprint.c. + * gdb.python/py-prettyprint.exp: Rename from python-prettyprint.exp. + Adjust testfile name. + * gdb.python/py-prettyprint.py: Rename from python-prettyprint.py. + * gdb.python/py-template.cc: Rename from python-template.cc. + * gdb.python/py-template.exp: Rename from python-template.exp. + Adjust testfile name. + * gdb.python/py-value.c: Rename from python-value.c. + * gdb.python/py-value.exp: Rename from python-value.exp. Adjust + testfile name. + 2009-09-08 Jan Kratochvil * gdb.base/breakpoint-shadow.exp (Second breakpoint placed): Initialize diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in index 79be9e76eae..ca5cdc72dbf 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 +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/python-cmd.exp b/gdb/testsuite/gdb.python/py-cmd.exp similarity index 100% rename from gdb/testsuite/gdb.python/python-cmd.exp rename to gdb/testsuite/gdb.python/py-cmd.exp diff --git a/gdb/testsuite/gdb.python/python-frame.c b/gdb/testsuite/gdb.python/py-frame.c similarity index 100% rename from gdb/testsuite/gdb.python/python-frame.c rename to gdb/testsuite/gdb.python/py-frame.c diff --git a/gdb/testsuite/gdb.python/python-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp similarity index 99% rename from gdb/testsuite/gdb.python/python-frame.exp rename to gdb/testsuite/gdb.python/py-frame.exp index 82b526ec765..a67eaa35a86 100644 --- a/gdb/testsuite/gdb.python/python-frame.exp +++ b/gdb/testsuite/gdb.python/py-frame.exp @@ -20,7 +20,7 @@ if $tracelevel then { strace $tracelevel } -set testfile "python-frame" +set testfile "py-frame" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { diff --git a/gdb/testsuite/gdb.python/python-function.exp b/gdb/testsuite/gdb.python/py-function.exp similarity index 100% rename from gdb/testsuite/gdb.python/python-function.exp rename to gdb/testsuite/gdb.python/py-function.exp diff --git a/gdb/testsuite/gdb.python/python-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp similarity index 98% rename from gdb/testsuite/gdb.python/python-mi.exp rename to gdb/testsuite/gdb.python/py-mi.exp index 32588105d9a..d3f44b28c59 100644 --- a/gdb/testsuite/gdb.python/python-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/python-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c similarity index 100% rename from gdb/testsuite/gdb.python/python-prettyprint.c rename to gdb/testsuite/gdb.python/py-prettyprint.c diff --git a/gdb/testsuite/gdb.python/python-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp similarity index 98% rename from gdb/testsuite/gdb.python/python-prettyprint.exp rename to gdb/testsuite/gdb.python/py-prettyprint.exp index 01d4a06c89f..d2db5bc2064 100644 --- a/gdb/testsuite/gdb.python/python-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/python-prettyprint.py b/gdb/testsuite/gdb.python/py-prettyprint.py similarity index 100% rename from gdb/testsuite/gdb.python/python-prettyprint.py rename to gdb/testsuite/gdb.python/py-prettyprint.py diff --git a/gdb/testsuite/gdb.python/python-template.cc b/gdb/testsuite/gdb.python/py-template.cc similarity index 100% rename from gdb/testsuite/gdb.python/python-template.cc rename to gdb/testsuite/gdb.python/py-template.cc diff --git a/gdb/testsuite/gdb.python/python-template.exp b/gdb/testsuite/gdb.python/py-template.exp similarity index 98% rename from gdb/testsuite/gdb.python/python-template.exp rename to gdb/testsuite/gdb.python/py-template.exp index 1ace5d6e2fa..cea6ae04c7b 100644 --- a/gdb/testsuite/gdb.python/python-template.exp +++ b/gdb/testsuite/gdb.python/py-template.exp @@ -20,7 +20,7 @@ if $tracelevel then { strace $tracelevel } -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/python-value.c b/gdb/testsuite/gdb.python/py-value.c similarity index 100% rename from gdb/testsuite/gdb.python/python-value.c rename to gdb/testsuite/gdb.python/py-value.c diff --git a/gdb/testsuite/gdb.python/python-value.exp b/gdb/testsuite/gdb.python/py-value.exp similarity index 99% rename from gdb/testsuite/gdb.python/python-value.exp rename to gdb/testsuite/gdb.python/py-value.exp index 19cabeb6c7e..9b4190de19a 100644 --- a/gdb/testsuite/gdb.python/python-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -20,7 +20,7 @@ if $tracelevel then { strace $tracelevel } -set testfile "python-value" +set testfile "py-value" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { @@ -257,7 +257,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" "\\\[\\\]" -- 2.30.2