This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [PATH, RFA]: Fix UI_OUT related problem in stack.c:print_frame()


On Sat, Jan 27, 2001 at 12:25:55PM +0100, Mark Kettenis wrote:
>Hi,
>
>Right now GDB will report an internal error if you use `q' to quit
>from a long backtrace a couple of time.  Obviously in this case
>ui_out_list_end() isn't called and after calling ui_out_list_begin()
>four times the following message is printed:
>
>   ui_out: list depth exceeded; only 4 levels of lists can be nested.

Thank you!  This has been bugging me for a couple of days.

>The attached fixes this by adding ui_out_list_end() to the list of
>cleanup actions.  I introduced make_cleanup_ui_out_list_end() to avoid
>compiler warnings and since I expect that there might very well be
>more cases where this sort of thing is needed.
>
>OK to install?

I hope so.

cgf

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