Make struct frame_arg self-managing
authorTom Tromey <tromey@adacore.com>
Tue, 6 Aug 2019 19:50:03 +0000 (13:50 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 7 Aug 2019 12:37:21 +0000 (06:37 -0600)
commit123cd851480c728845a4c3f85da772dd8331cf19
tree1ecc475ebe4da5ade1fd9e0219bcaafd567f11ad
parent3d31bc39e655ea39721754fa0ea539a8a0c9b26c
Make struct frame_arg self-managing

This changes struct frame_arg to be self-managing and then fixes the
various users.

Tested by the buildbot.

gdb/ChangeLog
2019-08-07  Tom Tromey  <tromey@adacore.com>

* stack.c (print_frame_arg, read_frame_local, read_frame_arg)
(print_frame_args): Update.
* python/py-framefilter.c (py_print_single_arg, enumerate_args):
Update.
* mi/mi-cmd-stack.c (list_arg_or_local): Update.
* frame.h (struct frame_arg): Add initializers.
<error>: Now a unique_xmalloc_ptr.
gdb/ChangeLog
gdb/frame.h
gdb/mi/mi-cmd-stack.c
gdb/python/py-framefilter.c
gdb/stack.c