aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-05-18 23:05:28 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-05-18 23:05:28 +0000
commitdc21167c9b2c7d980fca11d6930049101dc80fd9 (patch)
treee0a38ff47fced169c5ec68d2539ffb49aef325b3
parent5b4ee69b43c13f5d57748af1892794fa4d7ee0c6 (diff)
downloadgdb-dc21167c9b2c7d980fca11d6930049101dc80fd9.zip
gdb-dc21167c9b2c7d980fca11d6930049101dc80fd9.tar.gz
gdb-dc21167c9b2c7d980fca11d6930049101dc80fd9.tar.bz2
gdb/
Code cleanup. * parse.c (exp_iterate): Use operator_length wrapper function.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/parse.c3
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7081621..927a080 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
+ Sergio Durigan Junior <sergiodj@redhat.com>
+
+ Code cleanup.
+ * parse.c (exp_iterate): Use operator_length wrapper function.
+
2010-05-18 Michael Snyder <msnyder@vmware.com>
* ada-lang.c: White space.
diff --git a/gdb/parse.c b/gdb/parse.c
index cf5189a..1c8b350 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;