diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-01-02 14:02:44 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-01-04 09:24:18 +0000 |
commit | e89496f42ac7b2d6fbba15f98f3caf496de050f4 (patch) | |
tree | 0e411dc7a998c3a56e25bba1adde8ad2642d4122 /libctf/ctf-subr.c | |
parent | c9f1e0dfc8f02a7772aa383cc305d9049075d1d8 (diff) | |
download | binutils-e89496f42ac7b2d6fbba15f98f3caf496de050f4.zip binutils-e89496f42ac7b2d6fbba15f98f3caf496de050f4.tar.gz binutils-e89496f42ac7b2d6fbba15f98f3caf496de050f4.tar.bz2 |
gdb: merge error handling from different expression parsers
Many (all?) of the expression parsers implement yyerror to handle
parser errors, and all of these functions are basically identical.
This commit adds a new parser_state::parse_error() function, which
implements the common error handling code, this function can then be
called from all the different yyerror functions.
The benefit of this is that (in a future commit) I can improve the
error output, and all the expression parsers will benefit.
This commit is pure refactoring though, and so, there should be no
user visible changes after this commit.
Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'libctf/ctf-subr.c')
0 files changed, 0 insertions, 0 deletions