diff options
author | Andrew Burgess <aburgess@redhat.com> | 2023-12-28 22:59:43 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-09-07 21:48:34 +0100 |
commit | 5a7cfbb424d27c6c27240b14e2572e837299402c (patch) | |
tree | 877725c5e2341d651df2200b9afe8ba2f1094bdc /gdb/ada-lang.c | |
parent | 3debc0b3480369d13149ea05cdbf61b6acd0ffdc (diff) | |
download | binutils-5a7cfbb424d27c6c27240b14e2572e837299402c.zip binutils-5a7cfbb424d27c6c27240b14e2572e837299402c.tar.gz binutils-5a7cfbb424d27c6c27240b14e2572e837299402c.tar.bz2 |
gdb: create new is_thread_id helper function
This is a refactoring commit that splits the existing parse_thread_id
function into two parts, and then adds a new is_thread_id function.
The core of parse_thread_id is split into parse_thread_id_1, which is
responsible for actually parsing a thread-id. Then parse_thread_id is
responsible for taking a parsed thread-id and validating that it
references an actually existing inferior thread.
The new is_thread_id function also uses parse_thread_id_1, but doesn't
actually check that the inferior thread exists, instead, this new
function simply checks that a string looks like a thread-id.
This commit does not add a use for is_thread_id, this will be added in
the next commit.
This is a refactoring commit, there should be no user visible changes
after this commit.
Diffstat (limited to 'gdb/ada-lang.c')
0 files changed, 0 insertions, 0 deletions