diff options
author | Tom Tromey <tromey@adacore.com> | 2022-12-19 11:15:55 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-01-04 09:47:10 -0700 |
commit | d654ad96eb4bee13f672e9b1549b52b499cf9ae1 (patch) | |
tree | 19444156a044b1911839131585fd437220a55a45 /gdb/printcmd.c | |
parent | aa9bd4452873136e7406f68fc51e66ef5951190b (diff) | |
download | gdb-d654ad96eb4bee13f672e9b1549b52b499cf9ae1.zip gdb-d654ad96eb4bee13f672e9b1549b52b499cf9ae1.tar.gz gdb-d654ad96eb4bee13f672e9b1549b52b499cf9ae1.tar.bz2 |
Use first_opcode in another spot
I found one place that could use expression::first_opcode.
Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 13b979c..c3c2e5a 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1500,7 +1500,7 @@ set_command (const char *exp, int from_tty) { expression_up expr = parse_expression (exp); - switch (expr->op->opcode ()) + switch (expr->first_opcode ()) { case UNOP_PREINCREMENT: case UNOP_POSTINCREMENT: |