Scripted breakpoint resolvers receive the breakpoint they are being set on, and the callback takes an SBSymbolContext.
Sometimes (for instance if you want to disassemble instructions) you need access to the target that owns the breakpoint. We don't include the owning target in an SBSymbolContext, which mirrors the fact that SBModules aren't owned by a single target, but live in the shared cache and might have many SBTarget owners. So you can't get it from there.
However, an SBBreakpoint is always owned by one target, so it makes sense to be able to get an SBBreakpoint's SBTarget.
clang-tidy: error: 'lldb/API/SBDefines.h' file not found [clang-diagnostic-error]
not useful