This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/17437] gdb/MI crashes with python-based pretty prints that uses a method call of a class
- From: "thilo dot voertler at coseda-tech dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 27 May 2016 17:27:01 +0000
- Subject: [Bug mi/17437] gdb/MI crashes with python-based pretty prints that uses a method call of a class
- Auto-submitted: auto-generated
- References: <bug-17437-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17437
--- Comment #5 from Thilo Voertler <thilo.voertler@coseda-tech.com> ---
It seems we found a quite good solution now and finally understood the problem.
In the list_args_or_locals function of mi-cmd-stack.c all locals of the current
frame_info *fi are printed. However when mi-cmd-stack.c:661 list_arg_or_local
is called the frame cache gets cleared, if the inferior is run by a
pretty-printer. Afterward *fi is still used without a check that it is invalid.
Therefoe we set fi again using get_current_frame()
This fix also solves the original problem posted by Andrey. Can somebody
validate the attached patch?
--
You are receiving this mail because:
You are on the CC list for the bug.