You are setting the breakpoint using the name of the executable. i.e. the command line equivalent of:
(lldb) break set -f a.out -l 7 You want some to pass the name of some source file in the executable. Jim > On Dec 18, 2014, at 5:25 AM, Ziming Song <s.zim...@hotmail.com> wrote: > > Just did an experiment, and I found that the breakpoint I set using > SBTarget::BreakpointCreateByLocation does not trigger. > > First I set the debugger's async to be false, then created a breakpoint > specifying its location by: > > m_target.BreakpointCreateByLocation(target.GetExecutable().GetFilename(), 7); > > then I launch the program and after getting eStateExited status, the hit > count of that breakint is 0! > > Is the way I set the break point wrong? I can create a working breakpoint > using SBTarget::BreakpointCreateByName but cannot using > SBTarget::BreakpointCreateByLocation, what's the problem? > > Thanks, > Song Ziming > _______________________________________________ > lldb-dev mailing list > lldb-dev@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev