@@ -3781,52 +3781,6 @@ bool Target::SetSectionUnloaded(const lldb::SectionSP §ion_sp,
3781
3781
3782
3782
void Target::ClearAllLoadedSections () { m_section_load_history.Clear (); }
3783
3783
3784
- lldb::addr_t Target::FindLoadAddrForNameInSymbolsAndPersistentVariables (
3785
- ConstString name_const_str, SymbolType symbol_type) {
3786
- lldb::addr_t symbol_addr = LLDB_INVALID_ADDRESS;
3787
- SymbolContextList sc_list;
3788
-
3789
- GetImages ().FindSymbolsWithNameAndType (name_const_str, symbol_type, sc_list);
3790
- if (!sc_list.IsEmpty ()) {
3791
- SymbolContext desired_symbol;
3792
-
3793
- if (sc_list.GetSize () == 1 &&
3794
- sc_list.GetContextAtIndex (0 , desired_symbol)) {
3795
- if (desired_symbol.symbol ) {
3796
- symbol_addr = desired_symbol.symbol ->GetAddress ().GetLoadAddress (this );
3797
- }
3798
- } else if (sc_list.GetSize () > 1 ) {
3799
- for (size_t i = 0 ; i < sc_list.GetSize (); i++) {
3800
- if (sc_list.GetContextAtIndex (i, desired_symbol)) {
3801
- if (desired_symbol.symbol ) {
3802
- symbol_addr =
3803
- desired_symbol.symbol ->GetAddress ().GetLoadAddress (this );
3804
- if (symbol_addr != LLDB_INVALID_ADDRESS)
3805
- break ;
3806
- }
3807
- }
3808
- }
3809
- }
3810
- }
3811
-
3812
- if (symbol_addr == LLDB_INVALID_ADDRESS) {
3813
- // If we didn't find it in the symbols, check the ClangPersistentVariables,
3814
- // 'cause we may have
3815
- // made it by hand.
3816
- ConstString mangled_const_str;
3817
- if (name_const_str.GetMangledCounterpart (mangled_const_str))
3818
- symbol_addr = GetPersistentSymbol (mangled_const_str);
3819
- }
3820
-
3821
- if (symbol_addr == LLDB_INVALID_ADDRESS) {
3822
- // Let's try looking for the name passed-in itself, as it might be a mangled
3823
- // name
3824
- symbol_addr = GetPersistentSymbol (name_const_str);
3825
- }
3826
-
3827
- return symbol_addr;
3828
- }
3829
-
3830
3784
void Target::SaveScriptedLaunchInfo (lldb_private::ProcessInfo &process_info) {
3831
3785
if (process_info.IsScriptedProcess ()) {
3832
3786
// Only copy scripted process launch options.
0 commit comments