This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[PATCH 1/3] [python] Create gdb.pretty package.
A gdb.pretty Python package for holding code common for using Python
pretty-printers.
gdb/ChangeLog
2009-30-12 Matt McCormick <matt@mmmccormick.com>
* python/lib/gdb/pretty/__init__.py: New python package.
* Makefile.in: Install it.
---
gdb/Makefile.in | 3 ++-
gdb/python/lib/gdb/pretty/__init__.py | 16 ++++++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
create mode 100644 gdb/python/lib/gdb/pretty/__init__.py
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index f450a7b..e9055b1 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -2074,7 +2074,8 @@ PY_FILES = gdb/FrameIterator.py gdb/FrameWrapper.py gdb/command/alias.py \
gdb/command/pahole.py gdb/command/upto.py gdb/command/__init__.py \
gdb/command/ignore_errors.py gdb/command/save_breakpoints.py \
gdb/function/caller_is.py gdb/function/in_scope.py \
- gdb/function/__init__.py gdb/backtrace.py gdb/__init__.py
+ gdb/function/__init__.py gdb/backtrace.py gdb/__init__.py \
+ gdb/pretty/__init__.py
# Install the Python library. Python library files go under
# $(pythondir).
diff --git a/gdb/python/lib/gdb/pretty/__init__.py b/gdb/python/lib/gdb/pretty/__init__.py
new file mode 100644
index 0000000..be8a854
--- /dev/null
+++ b/gdb/python/lib/gdb/pretty/__init__.py
@@ -0,0 +1,16 @@
+# Package for code common to custom pretty-printers.
+
+# Copyright (C) 2009 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.