This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/10344] Pretty printers that call into inferior could crash GDB
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 22 May 2013 12:39:28 +0000
- Subject: [Bug python/10344] Pretty printers that call into inferior could crash GDB
- Auto-submitted: auto-generated
- References: <bug-10344-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=10344
Phil Muldoon <pmuldoon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
AssignedTo|unassigned at sourceware |pmuldoon at redhat dot com
|dot org |
Target Milestone|6.8 |7.7
--- Comment #5 from Phil Muldoon <pmuldoon at redhat dot com> 2013-05-22 12:39:28 UTC ---
By serendipity this bug was also fixed by a patch I checked in today. The fix
was to remove the fixed instantiation of an array with MAX_UI_OUT_LEVELS, and
instead utilize a vector (and allocating ui_levels as needed).
2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
* ui-out.c: Create typedef ui_out_level_p and define vector
operations for that type.
(struct ui_out): Use a vector instead of an array.
(current_level): Return level from a vector.
(push_level): Create a level in a vector.
(pop_level): Delete a level in a vector.
(ui_out_new): Create initial level zero level, and store in a
vector.
(ui_out_destroy): Add vector cleanup.
http://sourceware.org/ml/gdb-cvs/2013-05/msg00211.html
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.