diff options
author | Tom Tromey <tom@tromey.com> | 2023-06-20 11:09:18 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-06-20 11:21:51 -0600 |
commit | 3ba0581955632c4b269bbcf8a458daafc9d167a6 (patch) | |
tree | 18715438c105befa4fbdb2142a2a3d3c8823b2bb /gdb/ax-general.c | |
parent | 1e0e3ecd67156ea8a7ecb9e4fb709caa6004bd52 (diff) | |
download | binutils-3ba0581955632c4b269bbcf8a458daafc9d167a6.zip binutils-3ba0581955632c4b269bbcf8a458daafc9d167a6.tar.gz binutils-3ba0581955632c4b269bbcf8a458daafc9d167a6.tar.bz2 |
Remove aop_last
aop_last is only used for an assertion. However, due to the '.def'
construct in the sources, this assert could never plausibly trigger
(the assert predates the use of a .def file here). This patch removes
the constant and the assert.
Reviewed-by: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/ax-general.c')
-rw-r--r-- | gdb/ax-general.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/ax-general.c b/gdb/ax-general.c index a8451d7..4ace2b4 100644 --- a/gdb/ax-general.c +++ b/gdb/ax-general.c @@ -349,12 +349,6 @@ ax_print (struct ui_file *f, struct agent_expr *x) } gdb_printf (f, _("\n")); - /* Check the size of the name array against the number of entries in - the enum, to catch additions that people didn't sync. */ - if ((sizeof (aop_map) / sizeof (aop_map[0])) - != aop_last) - error (_("GDB bug: ax-general.c (ax_print): opcode map out of sync")); - for (i = 0; i < x->buf.size ();) { enum agent_op op = (enum agent_op) x->buf[i]; |