From dc21167c9b2c7d980fca11d6930049101dc80fd9 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Tue, 18 May 2010 23:05:28 +0000 Subject: [PATCH] gdb/ Code cleanup. * parse.c (exp_iterate): Use operator_length wrapper function. --- gdb/ChangeLog | 6 ++++++ gdb/parse.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7081621534a..927a080088c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-05-18 Jan Kratochvil + Sergio Durigan Junior + + Code cleanup. + * parse.c (exp_iterate): Use operator_length wrapper function. + 2010-05-18 Michael Snyder * ada-lang.c: White space. diff --git a/gdb/parse.c b/gdb/parse.c index cf5189ab4d2..1c8b3508ec7 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -1510,8 +1510,7 @@ exp_iterate (struct expression *exp, { int pos, args, oplen = 0; - exp->language_defn->la_exp_desc->operator_length (exp, endpos, - &oplen, &args); + operator_length (exp, endpos, &oplen, &args); gdb_assert (oplen > 0); pos = endpos - oplen; -- 2.30.2