From: Jan Kratochvil Date: Tue, 18 May 2010 23:05:28 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dc21167c9b2c7d980fca11d6930049101dc80fd9;p=binutils-gdb.git gdb/ Code cleanup. * parse.c (exp_iterate): Use operator_length wrapper function. --- 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;