diff options
author | Benjamin Schindler <bschindler@inf.ethz.ch> | 2009-12-08 18:18:05 +0100 |
---|---|---|
committer | Benjamin Schindler <bschindler@inf.ethz.ch> | 2009-12-08 18:18:05 +0100 |
commit | a4c162dbdc0e59eb2dac0e6b598ac87b1341b5c4 (patch) | |
tree | 8e1fac98601135ce31579b8d03c9929902ad9152 /debug/gdb | |
parent | f2304f3b88171e350d305dd7e326b7b345f343f5 (diff) |
Correct license header of the gdb pretty printer
Diffstat (limited to 'debug/gdb')
-rw-r--r-- | debug/gdb/printers.py | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/debug/gdb/printers.py b/debug/gdb/printers.py index 9e72c8cad..3df7535c3 100644 --- a/debug/gdb/printers.py +++ b/debug/gdb/printers.py @@ -1,12 +1,39 @@ -# -*- coding: iso-8859-1 -*- +# -*- coding: utf-8 -*- +# This file is part of Eigen, a lightweight C++ template library +# for linear algebra. +# +# Copyright (C) 2009 Benjamin Schindler <bschindler@inf.ethz.ch> +# +# Eigen is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# Alternatively, 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 2 of +# the License, or (at your option) any later version. +# +# Eigen 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 Lesser General Public License or the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License and a copy of the GNU General Public License along with +# Eigen. If not, see <http://www.gnu.org/licenses/>. + # Pretty printers for Eigen::Matrix -# Author: Benjamin Schindler <bschindler@inf.ethz.ch> # This is still pretty basic as the python extension to gdb is still pretty basic. # It cannot handle complex eigen types and it doesn't support any of the other eigen types # Such as quaternion or some other type. # This code supports fixed size as well as dynamic size matrices -# Licence - ment to be included in Eigen, so dual GPLv3 or LGPL -# NOTE: This code was only tested with the stable branch of eigen! + +# To use it: +# +# * create a directory and put the file as well as an empty __init__.py in that directory +# * Create a ~/.gdbinit file, that contains the following: + import gdb import re |