Complete breakpoint enable/disable/delete/modify with a list of breakpoint IDs
authorGongyu Deng <gy_deng@icloud.com>
Mon, 11 May 2020 13:21:37 +0000 (15:21 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 11 May 2020 13:21:51 +0000 (15:21 +0200)
commit0e50b9a43bf65714cc6669203aeb1c175878a7da
tree9bb2d2297d6cdeaa6e12a900bf215b8580e84efb
parentc25b20c0f6c13d68dbc2e185764082d61ae4a132
Complete breakpoint enable/disable/delete/modify with a list of breakpoint IDs

Summary:
1. A new common completion `CommandCompletions::Breakpoints` to provide a list of the breakpoints of the current context;
2. Apply the completion above to the commands breakpoint enable/disable/delete/modify;
3. Unit test.

Reviewers: teemperor, JDevlieghere

Reviewed By: teemperor

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D79666
lldb/include/lldb/Interpreter/CommandCompletions.h
lldb/source/Commands/CommandCompletions.cpp
lldb/source/Commands/CommandObjectBreakpoint.cpp
lldb/test/API/functionalities/completion/TestCompletion.py