Fix processing gdb py-bt command in eval calls.

Resolves: rhbz#1008154
This commit is contained in:
Bohuslav Kabrda 2013-10-08 14:04:54 +02:00
parent 3df1286ee4
commit c86b2c6e57
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- Python-2.7.5-orig/Tools/gdb/libpython.py 2013-05-12 03:32:54.000000000 +0000
+++ Python-2.7.5-orig/Tools/gdb/libpython.py 2013-09-15 09:56:25.494000000 +0000
@@ -887,6 +887,8 @@
newline character'''
if self.is_optimized_out():
return '(frame information optimized out)'
+ if self.filename() == '<string>':
+ return '(in an eval block)'
with open(self.filename(), 'r') as f:
all_lines = f.readlines()
# Convert from 1-based current_line_num to 0-based list offset:

View File

@ -106,7 +106,7 @@ Summary: An interpreted, interactive, object-oriented programming language
Name: %{python}
# Remember to also rebase python-docs when changing this:
Version: 2.7.5
Release: 7%{?dist}
Release: 8%{?dist}
License: Python
Group: Development/Languages
Requires: %{python}-libs%{?_isa} = %{version}-%{release}
@ -846,6 +846,13 @@ Patch187: 00187-add-RPATH-to-pyexpat.patch
# rhbz#998430
Patch188: 00188-CVE-2013-4238-hostname-check-bypass-in-SSL-module.patch
# 00189 #
# Fixes gdb py-bt command not to raise exception while processing
# statements from eval
# rhbz#1008154 (patch by Attila Fazekas)
Patch189: 00189-gdb-py-bt-dont-raise-exception-from-eval.patch
# (New patches go here ^^^)
#
# When adding new patches to "python" and "python3" in Fedora 17 onwards,
@ -1195,6 +1202,7 @@ mv Modules/cryptmodule.c Modules/_cryptmodule.c
%patch186 -p1
%patch187 -p1
%patch188 -p1
%patch189 -p1
# This shouldn't be necesarry, but is right now (2.2a3)
@ -2024,6 +2032,10 @@ rm -fr %{buildroot}
# ======================================================
%changelog
* Tue Oct 08 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-8
- Fix processing gdb py-bt command in eval calls.
Resolves: rhbz#1008154
* Tue Sep 03 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.5-7
- Removed ancient Obsolete: python-sqlite2.