This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] Use operator_length wrapper function
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Sergio Durigan Junior <sergiodj at redhat dot com>
- Date: Wed, 19 May 2010 01:08:18 +0200
- Subject: [obv] Use operator_length wrapper function
Hi,
operator_length() was just accidentally inlined at that point (in my code).
No regressions on {x86_64,x86_64-m32,i686}-fedora12-linux-gnu.
Checked-in.
Thanks,
Jan
http://sourceware.org/ml/gdb-cvs/2010-05/msg00170.html
--- src/gdb/ChangeLog 2010/05/18 19:23:34 1.11823
+++ src/gdb/ChangeLog 2010/05/18 23:05:28 1.11824
@@ -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.
--- src/gdb/parse.c 2010/05/17 17:23:31 1.100
+++ src/gdb/parse.c 2010/05/18 23:05:28 1.101
@@ -1510,8 +1510,7 @@
{
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;