diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-12-03 16:35:38 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-12-07 22:16:43 -0500 |
commit | 28a0d291cd726f5945f54412143377fde3842bcb (patch) | |
tree | cadf7285ab0754cb953d204524575d8813009bb7 /gdb/source.c | |
parent | abca192fed507de150e04d2173f4c3531d0c6d92 (diff) | |
download | gdb-28a0d291cd726f5945f54412143377fde3842bcb.zip gdb-28a0d291cd726f5945f54412143377fde3842bcb.tar.gz gdb-28a0d291cd726f5945f54412143377fde3842bcb.tar.bz2 |
gdb: make struct linespect contain vectors, not pointers to vectors
struct linespec contains pointers to vectors, instead of containing
vectors directly. This is probably historical, when linespec_parser
(which contains a struct linespec field) was not C++-ified yet. But it
seems easy to change the pointers to vectors to just vectors today.
This simplifies the code, we don't need to manually allocate and delete
the vectors and there's no pointer that can be NULL.
As far as I understand, there was not meaningful distinction between a
NULL pointer to vector and an empty vector. So all NULL checks are
changed for !empty checks.
Change-Id: Ie759707da14d9d984169b93233343a86e2de9ee6
Diffstat (limited to 'gdb/source.c')
0 files changed, 0 insertions, 0 deletions