@@ -757,10 +757,14 @@ SBTarget::BreakpointCreateByLocation(const SBFileSpec &sb_file_spec,
757
757
offset, sb_module_list));
758
758
}
759
759
760
- SBBreakpoint SBTarget::BreakpointCreateByLocationImpl (
761
- const lldb::SBFileSpec &sb_file_spec, uint32_t line, uint32_t column,
762
- lldb::addr_t offset, SBFileSpecList &sb_module_list,
763
- const LazyBool move_to_nearest_code) {
760
+ SBBreakpoint SBTarget::BreakpointCreateByLocation (
761
+ const SBFileSpec &sb_file_spec, uint32_t line, uint32_t column,
762
+ lldb::addr_t offset, SBFileSpecList &sb_module_list) {
763
+ LLDB_RECORD_METHOD (lldb::SBBreakpoint, SBTarget, BreakpointCreateByLocation,
764
+ (const lldb::SBFileSpec &, uint32_t , uint32_t ,
765
+ lldb::addr_t , lldb::SBFileSpecList &),
766
+ sb_file_spec, line, column, offset, sb_module_list);
767
+
764
768
SBBreakpoint sb_bp;
765
769
TargetSP target_sp (GetSP ());
766
770
if (target_sp && line != 0 ) {
@@ -770,6 +774,7 @@ SBBreakpoint SBTarget::BreakpointCreateByLocationImpl(
770
774
const LazyBool skip_prologue = eLazyBoolCalculate;
771
775
const bool internal = false ;
772
776
const bool hardware = false ;
777
+ const LazyBool move_to_nearest_code = eLazyBoolCalculate;
773
778
const FileSpecList *module_list = nullptr ;
774
779
if (sb_module_list.GetSize () > 0 ) {
775
780
module_list = sb_module_list.get ();
@@ -779,34 +784,7 @@ SBBreakpoint SBTarget::BreakpointCreateByLocationImpl(
779
784
skip_prologue, internal, hardware, move_to_nearest_code);
780
785
}
781
786
782
- return sb_bp;
783
- }
784
-
785
- SBBreakpoint SBTarget::BreakpointCreateByLocation (
786
- const SBFileSpec &sb_file_spec, uint32_t line, uint32_t column,
787
- lldb::addr_t offset, SBFileSpecList &sb_module_list) {
788
- LLDB_RECORD_METHOD (lldb::SBBreakpoint, SBTarget, BreakpointCreateByLocation,
789
- (const lldb::SBFileSpec &, uint32_t , uint32_t ,
790
- lldb::addr_t , lldb::SBFileSpecList &),
791
- sb_file_spec, line, column, offset, sb_module_list);
792
-
793
- return LLDB_RECORD_RESULT (BreakpointCreateByLocationImpl (
794
- sb_file_spec, line, column, offset, sb_module_list, eLazyBoolCalculate));
795
- }
796
-
797
- SBBreakpoint SBTarget::BreakpointCreateByLocation (
798
- const SBFileSpec &sb_file_spec, uint32_t line, uint32_t column,
799
- lldb::addr_t offset, SBFileSpecList &sb_module_list,
800
- bool move_to_nearest_code) {
801
- LLDB_RECORD_METHOD (lldb::SBBreakpoint, SBTarget, BreakpointCreateByLocation,
802
- (const lldb::SBFileSpec &, uint32_t , uint32_t ,
803
- lldb::addr_t , lldb::SBFileSpecList &, bool ),
804
- sb_file_spec, line, column, offset, sb_module_list,
805
- move_to_nearest_code);
806
-
807
- return LLDB_RECORD_RESULT (BreakpointCreateByLocationImpl (
808
- sb_file_spec, line, column, offset, sb_module_list,
809
- move_to_nearest_code ? eLazyBoolYes : eLazyBoolNo));
787
+ return LLDB_RECORD_RESULT (sb_bp);
810
788
}
811
789
812
790
SBBreakpoint SBTarget::BreakpointCreateByName (const char *symbol_name,
@@ -2511,9 +2489,6 @@ void RegisterMethods<SBTarget>(Registry &R) {
2511
2489
BreakpointCreateByLocation,
2512
2490
(const lldb::SBFileSpec &, uint32_t , uint32_t ,
2513
2491
lldb::addr_t , lldb::SBFileSpecList &));
2514
- LLDB_REGISTER_METHOD (lldb::SBBreakpoint, SBTarget, BreakpointCreateByLocation,
2515
- (const lldb::SBFileSpec &, uint32_t , uint32_t ,
2516
- lldb::addr_t , lldb::SBFileSpecList &, bool ));
2517
2492
LLDB_REGISTER_METHOD (lldb::SBBreakpoint, SBTarget, BreakpointCreateByName,
2518
2493
(const char *, const char *));
2519
2494
LLDB_REGISTER_METHOD (lldb::SBBreakpoint, SBTarget, BreakpointCreateByName,
0 commit comments