From 2f572fd99024143cb2031856795199245877df5a Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 26 Jun 2015 15:38:55 +0200 Subject: [PATCH] Fix 'info type-printers' Python error (Clem Dickey, RH BZ 1085576). --- gdb-type-printers-error.patch | 13 +++++++++++++ gdb.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gdb-type-printers-error.patch diff --git a/gdb-type-printers-error.patch b/gdb-type-printers-error.patch new file mode 100644 index 0000000..aa4c494 --- /dev/null +++ b/gdb-type-printers-error.patch @@ -0,0 +1,13 @@ +https://bugzilla.redhat.com/show_bug.cgi?id=1085576 + +--- gdb-7.8.2/gdb/python/lib/gdb/command/type_printers.py-orig 2015-01-15 11:58:12.000000000 +0100 ++++ gdb-7.8.2/gdb/python/lib/gdb/command/type_printers.py 2015-06-26 15:33:43.972460415 +0200 +@@ -47,7 +47,7 @@ class InfoTypePrinter(gdb.Command): + sep = '' + for objfile in gdb.objfiles(): + if objfile.type_printers: +- print ("%sType printers for %s:" % (sep, objfile.name)) ++ print ("%sType printers for %s:" % (sep, objfile.filename)) + self.list_type_printers(objfile.type_printers) + sep = '\n' + if gdb.current_progspace().type_printers: diff --git a/gdb.spec b/gdb.spec index ea01ffc..6f4fed9 100644 --- a/gdb.spec +++ b/gdb.spec @@ -26,7 +26,7 @@ Version: 7.8.2 # The release always contains a leading reserved number, start it at 1. # `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing. -Release: 38%{?dist} +Release: 39%{?dist} License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL Group: Development/Debuggers @@ -547,6 +547,9 @@ Patch976: gdb-rhbz1163339-add-auto-load-scripts-directory.patch # Fix jit-reader.h for multi-lib. Patch978: gdb-jit-reader-multilib.patch +# Fix 'info type-printers' Python error (Clem Dickey, RH BZ 1085576). +Patch992: gdb-type-printers-error.patch + %if 0%{!?rhel:1} || 0%{?rhel} > 6 # RL_STATE_FEDORA_GDB would not be found for: # Patch642: gdb-readline62-ask-more-rh.patch @@ -837,6 +840,7 @@ find -name "*.info*"|xargs rm -f %patch975 -p1 %patch976 -p1 %patch978 -p1 +%patch992 -p1 %patch848 -p1 %if 0%{!?el6:1} @@ -1337,6 +1341,9 @@ then fi %changelog +* Thu Jan 15 2015 Jan Kratochvil - 7.8.2-39.fc21 +- Fix 'info type-printers' Python error (Clem Dickey, RH BZ 1085576). + * Thu Jan 15 2015 Jan Kratochvil - 7.8.2-38.fc21 - Rebase to 7.8.2.