gdb: make macro_stringify return a gdb::unique_xmalloc_ptr<char>
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 3 Jul 2020 00:38:53 +0000 (20:38 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 4 Jul 2020 02:27:09 +0000 (22:27 -0400)
commita36158ec0c5145bc3988d9513081a2819353b179
tree96be65e9fb7d4a78c8154ed74d2efc7820265db2
parent14d960c82a6094551a0c463973b676136e4e60de
gdb: make macro_stringify return a gdb::unique_xmalloc_ptr<char>

The change to macro_stringify is straightforward.  This allows removing
the manual memory management in fixup_definition.

gdb/ChangeLog:

* macroexp.h (macro_stringify): Return
gdb::unique_xmalloc_ptr<char>.
* macroexp.c (macro_stringify): Likewise.
* macrotab.c (fixup_definition): Update.

Change-Id: Id7db8988bdbd569dd51c4f4655b00eb26db277cb
gdb/ChangeLog
gdb/macroexp.c
gdb/macroexp.h
gdb/macrotab.c
This page took 0.025488 seconds and 4 git commands to generate.