2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-btrobust.patch
|
|
|
|
|
|
|
|
FileName: gdb-btrobust.patch
|
|
|
|
|
2014-06-27 15:47:58 +00:00
|
|
|
This should fix the error with glib. An error message will still be
|
|
|
|
printed, but a default backtrace will occur in this case.
|
|
|
|
|
|
|
|
--
|
|
|
|
|
2017-02-27 21:30:32 +00:00
|
|
|
Index: gdb-7.12.50.20170226/gdb/python/py-framefilter.c
|
2015-02-14 18:33:09 +00:00
|
|
|
===================================================================
|
2017-02-27 21:30:32 +00:00
|
|
|
--- gdb-7.12.50.20170226.orig/gdb/python/py-framefilter.c 2017-02-26 21:33:23.150618708 +0100
|
|
|
|
+++ gdb-7.12.50.20170226/gdb/python/py-framefilter.c 2017-02-26 21:33:29.993667179 +0100
|
|
|
|
@@ -1388,6 +1388,7 @@
|
|
|
|
htab_eq_pointer,
|
|
|
|
NULL));
|
2014-06-27 15:47:58 +00:00
|
|
|
|
2017-02-27 21:30:32 +00:00
|
|
|
+ int count_printed = 0;
|
|
|
|
while (true)
|
|
|
|
{
|
|
|
|
gdbpy_ref<> item (PyIter_Next (iterable.get ()));
|
|
|
|
@@ -1397,7 +1398,7 @@
|
|
|
|
if (PyErr_Occurred ())
|
|
|
|
{
|
|
|
|
gdbpy_print_stack ();
|
|
|
|
- return EXT_LANG_BT_ERROR;
|
|
|
|
+ return count_printed > 0 ? EXT_LANG_BT_ERROR : EXT_LANG_BT_NO_FILTERS;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
@@ -1409,6 +1410,7 @@
|
2015-02-14 18:33:09 +00:00
|
|
|
error and continue with other frames. */
|
|
|
|
if (success == EXT_LANG_BT_ERROR)
|
2014-06-27 15:47:58 +00:00
|
|
|
gdbpy_print_stack ();
|
|
|
|
+ count_printed++;
|
|
|
|
}
|
|
|
|
|
|
|
|
return success;
|