diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-07-24 15:07:14 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-07-30 08:52:57 -0400 |
commit | 1cb8a69ec2955e736e24340ef476fed5abeb7703 (patch) | |
tree | 455e2660fbd9baef25503f966967702810efc008 /gdb/jit.c | |
parent | a7763df8fbabe0d364d7f1e418683ee460518998 (diff) | |
download | gdb-1cb8a69ec2955e736e24340ef476fed5abeb7703.zip gdb-1cb8a69ec2955e736e24340ef476fed5abeb7703.tar.gz gdb-1cb8a69ec2955e736e24340ef476fed5abeb7703.tar.bz2 |
gdb: use std::string vector for macro definition
Use std::vector<std::string> when defining macros, to avoid the manual
memory management.
With the use of std::vector, the separate `int argc` parameter is no
longer needed, we can use the size of the vector instead. However, for
some functions, this parameter had a dual function. For object-like
macros, it was interpreted as a `macro_special_kind` enum. For these
functions, remove `argc`, but add a new `special_kind` parameter.
Change-Id: Ice76a6863dfe598335e3b8d5d077513e50975cc5
Approved-By: Tom de Vries <tdevries@suse.de>
Diffstat (limited to 'gdb/jit.c')
0 files changed, 0 insertions, 0 deletions