Allocate cmd_list_element with new
authorTom Tromey <tom@tromey.com>
Tue, 17 Apr 2018 03:09:48 +0000 (21:09 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 4 May 2018 21:58:05 +0000 (15:58 -0600)
commite2fc72e2c594968084b936bc5dc4702a2c0694f8
tree70307653efb3b532fa403d7d8d783e2d7ed0e67e
parenta3b60e4588606354b93508a0008a5ca04b68fad8
Allocate cmd_list_element with new

This adds a constructor and destructor to cmd_list_element and changes
it to be allocated with new.  This will be useful in a subsequent
patch.

ChangeLog
2018-05-04  Tom Tromey  <tom@tromey.com>

* cli/cli-decode.h (cmd_list_element): New constructor.
(~cmd_list_element): New destructor.
(struct cmd_list_element): Add initializers.
* cli/cli-decode.c (do_add_cmd): Use "new".
(delete_cmd): Use "delete".
gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
This page took 0.02793 seconds and 4 git commands to generate.