diff --git a/0001-add-support-for-boost-1.56-and-1.57.patch b/0001-add-support-for-boost-1.56-and-1.57.patch new file mode 100644 index 0000000..18eabbf --- /dev/null +++ b/0001-add-support-for-boost-1.56-and-1.57.patch @@ -0,0 +1,459 @@ +From 2fcc81d1590fe4fa7b828842c2341f080cfe75bf Mon Sep 17 00:00:00 2001 +From: David Tardon +Date: Fri, 30 Jan 2015 17:05:18 +0100 +Subject: [PATCH] add support for boost 1.56 and 1.57 + +--- + py/boost/v1_56/__init__.py | 32 ++++++++++++++++++++++++++++++++ + py/boost/v1_56/optional.py | 23 +++++++++++++++++++++++ + py/boost/v1_56/ptr_container.py | 23 +++++++++++++++++++++++ + py/boost/v1_56/smart_ptr.py | 23 +++++++++++++++++++++++ + py/boost/v1_56/unordered.py | 23 +++++++++++++++++++++++ + py/boost/v1_57/__init__.py | 32 ++++++++++++++++++++++++++++++++ + py/boost/v1_57/optional.py | 23 +++++++++++++++++++++++ + py/boost/v1_57/ptr_container.py | 23 +++++++++++++++++++++++ + py/boost/v1_57/smart_ptr.py | 23 +++++++++++++++++++++++ + py/boost/v1_57/unordered.py | 23 +++++++++++++++++++++++ + test/v1_56/ptr_container.exp | 22 ++++++++++++++++++++++ + test/v1_56/unordered.exp | 22 ++++++++++++++++++++++ + test/v1_57/ptr_container.exp | 22 ++++++++++++++++++++++ + test/v1_57/unordered.exp | 22 ++++++++++++++++++++++ + 14 files changed, 336 insertions(+) + create mode 100644 py/boost/v1_56/__init__.py + create mode 100644 py/boost/v1_56/optional.py + create mode 100644 py/boost/v1_56/ptr_container.py + create mode 100644 py/boost/v1_56/smart_ptr.py + create mode 100644 py/boost/v1_56/unordered.py + create mode 100644 py/boost/v1_57/__init__.py + create mode 100644 py/boost/v1_57/optional.py + create mode 100644 py/boost/v1_57/ptr_container.py + create mode 100644 py/boost/v1_57/smart_ptr.py + create mode 100644 py/boost/v1_57/unordered.py + create mode 100644 test/v1_56/ptr_container.exp + create mode 100644 test/v1_56/unordered.exp + create mode 100644 test/v1_57/ptr_container.exp + create mode 100644 test/v1_57/unordered.exp + +diff --git a/py/boost/v1_56/__init__.py b/py/boost/v1_56/__init__.py +new file mode 100644 +index 0000000..2b4a37e +--- /dev/null ++++ b/py/boost/v1_56/__init__.py +@@ -0,0 +1,32 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost 1.55. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++import boost.v1_56.optional ++import boost.v1_56.ptr_container ++import boost.v1_56.smart_ptr ++import boost.v1_56.unordered ++ ++def register_pretty_printers(obj): ++ boost.v1_56.optional.register_pretty_printers(obj) ++ boost.v1_56.ptr_container.register_pretty_printers(obj) ++ boost.v1_56.smart_ptr.register_pretty_printers(obj) ++ boost.v1_56.unordered.register_pretty_printers(obj) ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_56/optional.py b/py/boost/v1_56/optional.py +new file mode 100644 +index 0000000..53e56c3 +--- /dev/null ++++ b/py/boost/v1_56/optional.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Optional. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_55.optional import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_56/ptr_container.py b/py/boost/v1_56/ptr_container.py +new file mode 100644 +index 0000000..5467f50 +--- /dev/null ++++ b/py/boost/v1_56/ptr_container.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Pointer Container. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_55.ptr_container import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_56/smart_ptr.py b/py/boost/v1_56/smart_ptr.py +new file mode 100644 +index 0000000..4630068 +--- /dev/null ++++ b/py/boost/v1_56/smart_ptr.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Smart Ptr. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_55.smart_ptr import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_56/unordered.py b/py/boost/v1_56/unordered.py +new file mode 100644 +index 0000000..87bb9e4 +--- /dev/null ++++ b/py/boost/v1_56/unordered.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Unordered. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_55.unordered import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_57/__init__.py b/py/boost/v1_57/__init__.py +new file mode 100644 +index 0000000..26eaf66 +--- /dev/null ++++ b/py/boost/v1_57/__init__.py +@@ -0,0 +1,32 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost 1.55. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++import boost.v1_57.optional ++import boost.v1_57.ptr_container ++import boost.v1_57.smart_ptr ++import boost.v1_57.unordered ++ ++def register_pretty_printers(obj): ++ boost.v1_57.optional.register_pretty_printers(obj) ++ boost.v1_57.ptr_container.register_pretty_printers(obj) ++ boost.v1_57.smart_ptr.register_pretty_printers(obj) ++ boost.v1_57.unordered.register_pretty_printers(obj) ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_57/optional.py b/py/boost/v1_57/optional.py +new file mode 100644 +index 0000000..3ac5df7 +--- /dev/null ++++ b/py/boost/v1_57/optional.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Optional. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_56.optional import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_57/ptr_container.py b/py/boost/v1_57/ptr_container.py +new file mode 100644 +index 0000000..610eff7 +--- /dev/null ++++ b/py/boost/v1_57/ptr_container.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Pointer Container. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_56.ptr_container import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_57/smart_ptr.py b/py/boost/v1_57/smart_ptr.py +new file mode 100644 +index 0000000..c8810f4 +--- /dev/null ++++ b/py/boost/v1_57/smart_ptr.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Smart Ptr. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_56.smart_ptr import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/py/boost/v1_57/unordered.py b/py/boost/v1_57/unordered.py +new file mode 100644 +index 0000000..1880de2 +--- /dev/null ++++ b/py/boost/v1_57/unordered.py +@@ -0,0 +1,23 @@ ++# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*- ++# GDB pretty printers for Boost.Unordered. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++from boost.v1_56.unordered import register_pretty_printers ++ ++# vim:set filetype=python shiftwidth=4 softtabstop=4 expandtab: +diff --git a/test/v1_56/ptr_container.exp b/test/v1_56/ptr_container.exp +new file mode 100644 +index 0000000..3e9d4f5 +--- /dev/null ++++ b/test/v1_56/ptr_container.exp +@@ -0,0 +1,22 @@ ++# Test for GDB pretty printers for Boost.Pointer Container. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++load_lib ../v1_55/ptr_container.exp ++ ++# vim: set shiftwidth=4 softtabstop=4 expandtab: +diff --git a/test/v1_56/unordered.exp b/test/v1_56/unordered.exp +new file mode 100644 +index 0000000..eda2bf6 +--- /dev/null ++++ b/test/v1_56/unordered.exp +@@ -0,0 +1,22 @@ ++# Test for GDB pretty printers for Boost.Optional. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++load_lib ../v1_55/unordered.exp ++ ++# vim: set shiftwidth=4 softtabstop=4 expandtab: +diff --git a/test/v1_57/ptr_container.exp b/test/v1_57/ptr_container.exp +new file mode 100644 +index 0000000..17ae637 +--- /dev/null ++++ b/test/v1_57/ptr_container.exp +@@ -0,0 +1,22 @@ ++# Test for GDB pretty printers for Boost.Pointer Container. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++load_lib ../v1_56/ptr_container.exp ++ ++# vim: set shiftwidth=4 softtabstop=4 expandtab: +diff --git a/test/v1_57/unordered.exp b/test/v1_57/unordered.exp +new file mode 100644 +index 0000000..d34d039 +--- /dev/null ++++ b/test/v1_57/unordered.exp +@@ -0,0 +1,22 @@ ++# Test for GDB pretty printers for Boost.Optional. ++# ++# Copyright (C) 2015 Red Hat, Inc., David Tardon ++# ++# This file is part of boost-gdb-printers. ++# ++# 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 . ++ ++load_lib ../v1_56/unordered.exp ++ ++# vim: set shiftwidth=4 softtabstop=4 expandtab: +-- +2.1.0 + diff --git a/boost-gdb-printers.spec b/boost-gdb-printers.spec index 1a5064d..65c7a8e 100644 --- a/boost-gdb-printers.spec +++ b/boost-gdb-printers.spec @@ -9,6 +9,8 @@ URL: https://sourceforge.net/projects/boost-gdb-printers/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz BuildArch: noarch +Patch0: 0001-add-support-for-boost-1.56-and-1.57.patch + BuildRequires: boost-devel BuildRequires: dejagnu BuildRequires: gdb @@ -24,7 +26,7 @@ Currently it handles classes from the following boost libraries: * Unordered %prep -%autosetup +%autosetup -p1 %build %configure