This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/17437] gdb/MI crashes with python-based pretty prints that uses a method call of a class


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]