Fix 'info type-printers' Python error (Clem Dickey, RH BZ 1085576).

This commit is contained in:
Jan Kratochvil 2015-06-26 15:50:02 +02:00
parent 5979e98c06
commit cdd3b0a2c3
2 changed files with 21 additions and 1 deletions

View File

@ -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:

View File

@ -26,7 +26,7 @@ Version: 7.9.1
# 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: 16%{?dist}
Release: 17%{?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
@ -541,6 +541,9 @@ Patch985: gdb-python3-testsuite.patch
# Fix enum e e 'Attempt to use a type name as an expr.' (Keith Seitz, PR 16253).
Patch991: gdb-cxx-enum-tag.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
@ -830,6 +833,7 @@ find -name "*.info*"|xargs rm -f
%patch984 -p1
%patch985 -p1
%patch991 -p1
%patch992 -p1
%patch848 -p1
%if 0%{!?el6:1}
@ -1330,6 +1334,9 @@ then
fi
%changelog
* Fri Jun 26 2015 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.9.1-17.fc22
- Fix 'info type-printers' Python error (Clem Dickey, RH BZ 1085576).
* Fri Jun 19 2015 Jan Kratochvil <jan.kratochvil@redhat.com> - 7.9.1-16.fc22
- Backport 'thread apply all' option '-ascending' for ABRT.