Remove cleanups from macro_define_command
authorTom Tromey <tom@tromey.com>
Tue, 6 Feb 2018 19:25:00 +0000 (12:25 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 8 Feb 2018 18:46:56 +0000 (11:46 -0700)
commit84f27c6fcbbf580434c7d56e68fa42fe7cf7ccb9
tree8832c2cb7cd8748462ab79f3348c41a05f39d4ec
parent0354904bdacb9bf1ebdf3ebdf3723f8a550bcdab
Remove cleanups from macro_define_command

This removes cleanups from macro_define_command, by introducing a new
struct temporary_macro_definition that cleans up after itself.

2018-02-08  Tom Tromey  <tom@tromey.com>

* macrocmd.c (struct temporary_macro_definition): New.
(macro_define_command): Use temporary_macro_definition.  Remove
cleanups.
(free_macro_definition_ptr): Remove.
gdb/ChangeLog
gdb/macrocmd.c