[0/6] More linespec cleanups and C++-ification

Message ID 20250108-linespec-state-cxx-v1-0-a721e95ee050@tromey.com
Headers
Series More linespec cleanups and C++-ification |

Message

Tom Tromey Jan. 8, 2025, 7:23 a.m. UTC
  This short series applies a bit more C++-ification to linespec.c.
I also made some smaller cleanups while working here.

Regression tested on x86-64 Fedora 40.

Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (6):
      Add constructor and destructor to linespec_state
      Use gdb::unordered_set in linespec_state
      Use std::vector in linespec_state
      Minor cleanup in linespec.c:add_minsym
      Hoist lambda in linespec.c:add_matching_symbols_to_info
      Use bool in linespec

 gdb/linespec.c | 255 +++++++++++++++++++++++----------------------------------
 1 file changed, 103 insertions(+), 152 deletions(-)
---
base-commit: 8520cebeb576ae345ae506f2d7207668cc68d1cb
change-id: 20250108-linespec-state-cxx-17081ec0647b

Best regards,