aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-12-19 11:15:55 -0700
committerTom Tromey <tromey@adacore.com>2023-01-04 09:47:10 -0700
commitd654ad96eb4bee13f672e9b1549b52b499cf9ae1 (patch)
tree19444156a044b1911839131585fd437220a55a45 /gdb
parentaa9bd4452873136e7406f68fc51e66ef5951190b (diff)
downloadgdb-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')
-rw-r--r--gdb/printcmd.c2
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: