diff options
author | Yao Qi <yao@codesourcery.com> | 2014-07-25 19:35:23 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-07-30 17:38:24 +0800 |
commit | a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc (patch) | |
tree | fae8df55ab0fe4fa7b382ad6f530075cc13df3ad /gdb/parser-defs.h | |
parent | 976411d6b6aa5cae05259eb92b87a04262052e09 (diff) | |
download | gdb-a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc.zip gdb-a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc.tar.gz gdb-a1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc.tar.bz2 |
Update comments to operator_check
Hello,
I happen to read the code and find the comments to operator_check are
incorrect. This patch is to fix the comments per my understanding.
The comments and field operator_check was added by this patch
https://sourceware.org/ml/gdb-patches/2010-04/msg00556.html
but the inconsistency between code and comments wasn't pointed out during
the review.
gdb:
2014-07-30 Yao Qi <yao@codesourcery.com>
* parser-defs.h (struct exp_descriptor) <operator_check>: Update
comments.
* parse.c (exp_iterate): Update comments.
Diffstat (limited to 'gdb/parser-defs.h')
-rw-r--r-- | gdb/parser-defs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h index 97c53b9..e43b1ae 100644 --- a/gdb/parser-defs.h +++ b/gdb/parser-defs.h @@ -341,14 +341,14 @@ struct exp_descriptor the number of subexpressions it takes. */ void (*operator_length) (const struct expression*, int, int*, int *); - /* Call TYPE_FUNC and OBJFILE_FUNC for any TYPE and OBJFILE found being - referenced by the single operator of EXP at position POS. Operator - parameters are located at positive (POS + number) offsets in EXP. - The functions should never be called with NULL TYPE or NULL OBJFILE. - Functions should get passed an arbitrary caller supplied DATA pointer. - If any of the functions returns non-zero value then (any other) non-zero - value should be immediately returned to the caller. Otherwise zero - should be returned. */ + /* Call OBJFILE_FUNC for any objfile found being referenced by the + single operator of EXP at position POS. Operator parameters are + located at positive (POS + number) offsets in EXP. OBJFILE_FUNC + should never be called with NULL OBJFILE. OBJFILE_FUNC should + get passed an arbitrary caller supplied DATA pointer. If it + returns non-zero value then (any other) non-zero value should be + immediately returned to the caller. Otherwise zero should be + returned. */ int (*operator_check) (struct expression *exp, int pos, int (*objfile_func) (struct objfile *objfile, void *data), |