From c86b2c6e570b509a2763391457ddba46b1e0018c Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Oct 08 2013 12:04:54 +0000 Subject: Fix processing gdb py-bt command in eval calls. Resolves: rhbz#1008154 --- diff --git a/00189-gdb-py-bt-dont-raise-exception-from-eval.patch b/00189-gdb-py-bt-dont-raise-exception-from-eval.patch new file mode 100644 index 0000000..4e82859 --- /dev/null +++ b/00189-gdb-py-bt-dont-raise-exception-from-eval.patch @@ -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() == '': ++ 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: diff --git a/python.spec b/python.spec index 7a66e3b..7b602ff 100644 --- a/python.spec +++ b/python.spec @@ -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 - 2.7.5-8 +- Fix processing gdb py-bt command in eval calls. +Resolves: rhbz#1008154 + * Tue Sep 03 2013 Bohuslav Kabrda - 2.7.5-7 - Removed ancient Obsolete: python-sqlite2.