diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-12-16 13:31:46 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-12-16 13:31:46 +0000 |
commit | 7f7f83e8b1993e1f3591db3ce5665c9c6dc78401 (patch) | |
tree | c47fe79ab29ef763a9d6950f690ca10e54eda9ee /gdb | |
parent | 606bc03a5d16d786e8f8478c9748a07410a3f4c1 (diff) | |
download | gdb-7f7f83e8b1993e1f3591db3ce5665c9c6dc78401.zip gdb-7f7f83e8b1993e1f3591db3ce5665c9c6dc78401.tar.gz gdb-7f7f83e8b1993e1f3591db3ce5665c9c6dc78401.tar.bz2 |
* expression.h (parse_expression_in_context): Delete prototype.
* parse.c (parse_expression_in_context): Delete.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/expression.h | 2 | ||||
-rw-r--r-- | gdb/parse.c | 14 |
3 files changed, 5 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63ffe1c..a54b2f3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-12-16 Joel Brobecker <brobecker@adacore.com> + + * expression.h (parse_expression_in_context): Delete prototype. + * parse.c (parse_expression_in_context): Delete. + 2007-12-14 Vladimir Prus <vladimir@codesourcery.com> Add support for pending breakpoints in MI. diff --git a/gdb/expression.h b/gdb/expression.h index 01ddc05..555f0aa 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -389,8 +389,6 @@ struct expression extern struct expression *parse_expression (char *); -extern struct expression *parse_expression_in_context (char *, int); - extern struct expression *parse_exp_1 (char **, struct block *, int); /* The innermost context required by the stack and register variables diff --git a/gdb/parse.c b/gdb/parse.c index 1b9066d..81f6787 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -1027,20 +1027,6 @@ parse_expression (char *string) return exp; } - -/* As for parse_expression, except that if VOID_CONTEXT_P, then - no value is expected from the expression. */ - -struct expression * -parse_expression_in_context (char *string, int void_context_p) -{ - struct expression *exp; - exp = parse_exp_in_context (&string, 0, 0, void_context_p); - if (*string != '\000') - error (_("Junk after end of expression.")); - return exp; -} - /* A post-parser that does nothing */ void |