commit | be14b683af735071f5b35b643620973e0588ad98 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tromey@adacore.com> | Fri Aug 16 11:43:33 2024 -0600 |
committer | Tom Tromey <tromey@adacore.com> | Tue Aug 20 08:31:35 2024 -0600 |
tree | 158accb30701e62cd5532464cd95044a679e2c01 | |
parent | a55790e99235b39582a1c3e85199f8139612f24a [diff] |
Fix Windows regression commit cb9f919f ("gdb: add program_space parameter to lookup_minimal_symbol_text") caused a crash on Windows. In this function, section can be nullptr, but it is unconditionally dereferenced by the change introduced by the patch. I tested this using the AdaCore internal test suite. v2: always use current_program_space, reverting to be behavior before cb9f919f. Approved-By: Simon Marchi <simon.marchi@efficios.com>