aboutsummaryrefslogtreecommitdiff
path: root/gdb/expop.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/expop.h')
-rw-r--r--gdb/expop.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/expop.h b/gdb/expop.h
index c159d96..a17311f 100644
--- a/gdb/expop.h
+++ b/gdb/expop.h
@@ -1005,10 +1005,18 @@ public:
/* Try to complete this operation in the context of EXP. TRACKER is
the completion tracker to update. Return true if completion was
possible, false otherwise. */
- bool complete (struct expression *exp, completion_tracker &tracker);
+ virtual bool complete (struct expression *exp, completion_tracker &tracker)
+ {
+ return complete (exp, tracker, "");
+ }
protected:
+ /* Do the work of the public 'complete' method. PREFIX is prepended
+ to each result. */
+ bool complete (struct expression *exp, completion_tracker &tracker,
+ const char *prefix);
+
using tuple_holding_operation::tuple_holding_operation;
};