Use cmd_list_element::doc_allocated for Python commands
authorTom Tromey <tom@tromey.com>
Fri, 15 Nov 2019 23:41:12 +0000 (16:41 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 26 Nov 2019 21:20:29 +0000 (14:20 -0700)
commit8318f3c337cf46ee6309b4a7f06f3934fc94b4bd
tree34ed713254bfc4dbc5056144fb6373684d489864
parent4da8c3a8a5d1962d24fb374122c473f930eba386
Use cmd_list_element::doc_allocated for Python commands

Python commands manage their "doc" string manually, but
cmd_list_element already has doc_allocated to handle this case.  This
changes the Python code to use the existing facility.

gdb/ChangeLog
2019-11-26  Tom Tromey  <tom@tromey.com>

* python/py-cmd.c (cmdpy_destroyer): Don't free "doc".
(cmdpy_init): Set "doc_allocated".

Change-Id: I0014edc117b051bba1f4db267687d231e7fe9b56
gdb/ChangeLog
gdb/python/py-cmd.c
This page took 0.024306 seconds and 4 git commands to generate.