[lldb-dev] Question about -break-insert in lldb-mi

Pierson Lee (PIE) via lldb-dev lldb-dev at lists.llvm.org
Fri Jul 8 17:58:17 PDT 2016


Hi,

I'm trying to use -break-insert and the -f flag for it.

I noticed in MICmdCmdBreak.cpp , in CmICmdCmdBreakInsert::ParseArgs() that the -f has a required parameter.

    m_setCmdArgs.Add(new CMICmdArgValOptionShort(m_constStrArgNamedPendinfBrkPt, false, true,
                                                   CMICmdArgValListBase::eArgValType_StringQuotedNumberPath, 1));


Based on the GDB MI documentation (at https://sourceware.org/gdb/onlinedocs/gdb/GDB_002fMI-Breakpoint-Commands.html#GDB_002fMI-Breakpoint-Commands) for -break-insert shows:

'-f'
If location cannot be parsed (for example if it refers to unknown files or functions), create a pending breakpoint. Without this flag, gdb will report an error, and won't create a breakpoint, if location cannot be parsed.

Is there a reason why it requires a parameter and what should this parameter be ?

Thanks
Pierson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160709/5aa69306/attachment.html>


More information about the lldb-dev mailing list