Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- SBAddress.cpp -------------------------------------------*- C++ -*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "lldb/API/SBAddress.h" |
Jonas Devlieghere | bd4bf82 | 2019-03-06 00:05:55 +0000 | [diff] [blame^] | 10 | #include "Utils.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 11 | #include "lldb/API/SBProcess.h" |
Greg Clayton | cac9c5f | 2011-09-24 00:52:29 +0000 | [diff] [blame] | 12 | #include "lldb/API/SBSection.h" |
Caroline Tice | dde9cff | 2010-09-20 05:20:02 +0000 | [diff] [blame] | 13 | #include "lldb/API/SBStream.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 14 | #include "lldb/Core/Address.h" |
Greg Clayton | 05d2b7f | 2011-03-31 01:08:07 +0000 | [diff] [blame] | 15 | #include "lldb/Core/Module.h" |
Zachary Turner | 32abc6e | 2015-03-03 19:23:09 +0000 | [diff] [blame] | 16 | #include "lldb/Symbol/LineEntry.h" |
Greg Clayton | af67cec | 2010-12-20 20:49:23 +0000 | [diff] [blame] | 17 | #include "lldb/Target/Target.h" |
Zachary Turner | 6f9e690 | 2017-03-03 20:56:28 +0000 | [diff] [blame] | 18 | #include "lldb/Utility/Log.h" |
Zachary Turner | bf9a773 | 2017-02-02 21:39:50 +0000 | [diff] [blame] | 19 | #include "lldb/Utility/StreamString.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 20 | |
| 21 | using namespace lldb; |
Caroline Tice | ceb6b13 | 2010-10-26 03:11:13 +0000 | [diff] [blame] | 22 | using namespace lldb_private; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 23 | |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 24 | SBAddress::SBAddress() : m_opaque_up(new Address()) {} |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 25 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 26 | SBAddress::SBAddress(const Address *lldb_object_ptr) |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 27 | : m_opaque_up(new Address()) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 28 | if (lldb_object_ptr) |
Jonas Devlieghere | bd4bf82 | 2019-03-06 00:05:55 +0000 | [diff] [blame^] | 29 | m_opaque_up = llvm::make_unique<Address>(*lldb_object_ptr); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 30 | } |
| 31 | |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 32 | SBAddress::SBAddress(const SBAddress &rhs) : m_opaque_up(new Address()) { |
Jonas Devlieghere | bd4bf82 | 2019-03-06 00:05:55 +0000 | [diff] [blame^] | 33 | m_opaque_up = clone(rhs.m_opaque_up); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 34 | } |
| 35 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 36 | SBAddress::SBAddress(lldb::SBSection section, lldb::addr_t offset) |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 37 | : m_opaque_up(new Address(section.GetSP(), offset)) {} |
Greg Clayton | 819134a | 2012-02-04 02:58:17 +0000 | [diff] [blame] | 38 | |
Greg Clayton | 00e6fbf | 2011-07-22 16:46:35 +0000 | [diff] [blame] | 39 | // Create an address by resolving a load address using the supplied target |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 40 | SBAddress::SBAddress(lldb::addr_t load_addr, lldb::SBTarget &target) |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 41 | : m_opaque_up(new Address()) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 42 | SetLoadAddress(load_addr, target); |
Greg Clayton | 00e6fbf | 2011-07-22 16:46:35 +0000 | [diff] [blame] | 43 | } |
| 44 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 45 | SBAddress::~SBAddress() {} |
Greg Clayton | 00e6fbf | 2011-07-22 16:46:35 +0000 | [diff] [blame] | 46 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 47 | const SBAddress &SBAddress::operator=(const SBAddress &rhs) { |
Jonas Devlieghere | bd4bf82 | 2019-03-06 00:05:55 +0000 | [diff] [blame^] | 48 | if (this != &rhs) |
| 49 | m_opaque_up = clone(rhs.m_opaque_up); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 50 | return *this; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 51 | } |
| 52 | |
Nitesh Jain | dd12594 | 2017-05-04 11:34:42 +0000 | [diff] [blame] | 53 | bool lldb::operator==(const SBAddress &lhs, const SBAddress &rhs) { |
| 54 | if (lhs.IsValid() && rhs.IsValid()) |
| 55 | return lhs.ref() == rhs.ref(); |
| 56 | return false; |
| 57 | } |
| 58 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 59 | bool SBAddress::IsValid() const { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 60 | return m_opaque_up != NULL && m_opaque_up->IsValid(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 61 | } |
| 62 | |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 63 | void SBAddress::Clear() { m_opaque_up.reset(new Address()); } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 64 | |
| 65 | void SBAddress::SetAddress(lldb::SBSection section, lldb::addr_t offset) { |
| 66 | Address &addr = ref(); |
| 67 | addr.SetSection(section.GetSP()); |
| 68 | addr.SetOffset(offset); |
| 69 | } |
| 70 | |
| 71 | void SBAddress::SetAddress(const Address *lldb_object_ptr) { |
| 72 | if (lldb_object_ptr) |
| 73 | ref() = *lldb_object_ptr; |
| 74 | else |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 75 | m_opaque_up.reset(new Address()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 76 | } |
| 77 | |
| 78 | lldb::addr_t SBAddress::GetFileAddress() const { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 79 | if (m_opaque_up->IsValid()) |
| 80 | return m_opaque_up->GetFileAddress(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 81 | else |
| 82 | return LLDB_INVALID_ADDRESS; |
| 83 | } |
| 84 | |
| 85 | lldb::addr_t SBAddress::GetLoadAddress(const SBTarget &target) const { |
| 86 | Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_API)); |
| 87 | |
| 88 | lldb::addr_t addr = LLDB_INVALID_ADDRESS; |
| 89 | TargetSP target_sp(target.GetSP()); |
| 90 | if (target_sp) { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 91 | if (m_opaque_up->IsValid()) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 92 | std::lock_guard<std::recursive_mutex> guard(target_sp->GetAPIMutex()); |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 93 | addr = m_opaque_up->GetLoadAddress(target_sp.get()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 94 | } |
| 95 | } |
| 96 | |
| 97 | if (log) { |
| 98 | if (addr == LLDB_INVALID_ADDRESS) |
| 99 | log->Printf( |
| 100 | "SBAddress::GetLoadAddress (SBTarget(%p)) => LLDB_INVALID_ADDRESS", |
| 101 | static_cast<void *>(target_sp.get())); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 102 | else |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 103 | log->Printf("SBAddress::GetLoadAddress (SBTarget(%p)) => 0x%" PRIx64, |
| 104 | static_cast<void *>(target_sp.get()), addr); |
| 105 | } |
| 106 | |
| 107 | return addr; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 108 | } |
| 109 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 110 | void SBAddress::SetLoadAddress(lldb::addr_t load_addr, lldb::SBTarget &target) { |
| 111 | // Create the address object if we don't already have one |
| 112 | ref(); |
| 113 | if (target.IsValid()) |
| 114 | *this = target.ResolveLoadAddress(load_addr); |
| 115 | else |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 116 | m_opaque_up->Clear(); |
Caroline Tice | ceb6b13 | 2010-10-26 03:11:13 +0000 | [diff] [blame] | 117 | |
Adrian Prantl | 0509724 | 2018-04-30 16:49:04 +0000 | [diff] [blame] | 118 | // Check if we weren't were able to resolve a section offset address. If we |
| 119 | // weren't it is ok, the load address might be a location on the stack or |
| 120 | // heap, so we should just have an address with no section and a valid offset |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 121 | if (!m_opaque_up->IsValid()) |
| 122 | m_opaque_up->SetOffset(load_addr); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 123 | } |
| 124 | |
| 125 | bool SBAddress::OffsetAddress(addr_t offset) { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 126 | if (m_opaque_up->IsValid()) { |
| 127 | addr_t addr_offset = m_opaque_up->GetOffset(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 128 | if (addr_offset != LLDB_INVALID_ADDRESS) { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 129 | m_opaque_up->SetOffset(addr_offset + offset); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 130 | return true; |
Caroline Tice | ceb6b13 | 2010-10-26 03:11:13 +0000 | [diff] [blame] | 131 | } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 132 | } |
| 133 | return false; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 134 | } |
| 135 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 136 | lldb::SBSection SBAddress::GetSection() { |
| 137 | lldb::SBSection sb_section; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 138 | if (m_opaque_up->IsValid()) |
| 139 | sb_section.SetSP(m_opaque_up->GetSection()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 140 | return sb_section; |
Greg Clayton | 00e6fbf | 2011-07-22 16:46:35 +0000 | [diff] [blame] | 141 | } |
| 142 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 143 | lldb::addr_t SBAddress::GetOffset() { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 144 | if (m_opaque_up->IsValid()) |
| 145 | return m_opaque_up->GetOffset(); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 146 | return 0; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 147 | } |
| 148 | |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 149 | Address *SBAddress::operator->() { return m_opaque_up.get(); } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 150 | |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 151 | const Address *SBAddress::operator->() const { return m_opaque_up.get(); } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 152 | |
| 153 | Address &SBAddress::ref() { |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 154 | if (m_opaque_up == NULL) |
| 155 | m_opaque_up.reset(new Address()); |
| 156 | return *m_opaque_up; |
Greg Clayton | cac9c5f | 2011-09-24 00:52:29 +0000 | [diff] [blame] | 157 | } |
| 158 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 159 | const Address &SBAddress::ref() const { |
Adrian Prantl | 0509724 | 2018-04-30 16:49:04 +0000 | [diff] [blame] | 160 | // This object should already have checked with "IsValid()" prior to calling |
| 161 | // this function. In case you didn't we will assert and die to let you know. |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 162 | assert(m_opaque_up.get()); |
| 163 | return *m_opaque_up; |
Greg Clayton | 13d1950 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 164 | } |
Greg Clayton | cac9c5f | 2011-09-24 00:52:29 +0000 | [diff] [blame] | 165 | |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 166 | Address *SBAddress::get() { return m_opaque_up.get(); } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 167 | |
| 168 | bool SBAddress::GetDescription(SBStream &description) { |
| 169 | // Call "ref()" on the stream to make sure it creates a backing stream in |
| 170 | // case there isn't one already... |
| 171 | Stream &strm = description.ref(); |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 172 | if (m_opaque_up->IsValid()) { |
| 173 | m_opaque_up->Dump(&strm, NULL, Address::DumpStyleResolvedDescription, |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 174 | Address::DumpStyleModuleWithFileAddress, 4); |
| 175 | StreamString sstrm; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 176 | // m_opaque_up->Dump (&sstrm, NULL, |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 177 | // Address::DumpStyleResolvedDescription, Address::DumpStyleInvalid, |
| 178 | // 4); |
| 179 | // if (sstrm.GetData()) |
| 180 | // strm.Printf (" (%s)", sstrm.GetData()); |
| 181 | } else |
| 182 | strm.PutCString("No value"); |
| 183 | |
| 184 | return true; |
Greg Clayton | 0996003 | 2010-09-10 18:31:35 +0000 | [diff] [blame] | 185 | } |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 186 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 187 | SBModule SBAddress::GetModule() { |
| 188 | SBModule sb_module; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 189 | if (m_opaque_up->IsValid()) |
| 190 | sb_module.SetSP(m_opaque_up->GetModule()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 191 | return sb_module; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 192 | } |
| 193 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 194 | SBSymbolContext SBAddress::GetSymbolContext(uint32_t resolve_scope) { |
| 195 | SBSymbolContext sb_sc; |
Zachary Turner | 991e445 | 2018-10-25 20:45:19 +0000 | [diff] [blame] | 196 | SymbolContextItem scope = static_cast<SymbolContextItem>(resolve_scope); |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 197 | if (m_opaque_up->IsValid()) |
| 198 | m_opaque_up->CalculateSymbolContext(&sb_sc.ref(), scope); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 199 | return sb_sc; |
Greg Clayton | 0996003 | 2010-09-10 18:31:35 +0000 | [diff] [blame] | 200 | } |
| 201 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 202 | SBCompileUnit SBAddress::GetCompileUnit() { |
| 203 | SBCompileUnit sb_comp_unit; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 204 | if (m_opaque_up->IsValid()) |
| 205 | sb_comp_unit.reset(m_opaque_up->CalculateSymbolContextCompileUnit()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 206 | return sb_comp_unit; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 207 | } |
| 208 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 209 | SBFunction SBAddress::GetFunction() { |
| 210 | SBFunction sb_function; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 211 | if (m_opaque_up->IsValid()) |
| 212 | sb_function.reset(m_opaque_up->CalculateSymbolContextFunction()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 213 | return sb_function; |
Caroline Tice | 750cd17 | 2010-10-26 23:49:36 +0000 | [diff] [blame] | 214 | } |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 215 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 216 | SBBlock SBAddress::GetBlock() { |
| 217 | SBBlock sb_block; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 218 | if (m_opaque_up->IsValid()) |
| 219 | sb_block.SetPtr(m_opaque_up->CalculateSymbolContextBlock()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 220 | return sb_block; |
Caroline Tice | dde9cff | 2010-09-20 05:20:02 +0000 | [diff] [blame] | 221 | } |
Greg Clayton | 05d2b7f | 2011-03-31 01:08:07 +0000 | [diff] [blame] | 222 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 223 | SBSymbol SBAddress::GetSymbol() { |
| 224 | SBSymbol sb_symbol; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 225 | if (m_opaque_up->IsValid()) |
| 226 | sb_symbol.reset(m_opaque_up->CalculateSymbolContextSymbol()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 227 | return sb_symbol; |
Greg Clayton | 05d2b7f | 2011-03-31 01:08:07 +0000 | [diff] [blame] | 228 | } |
| 229 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 230 | SBLineEntry SBAddress::GetLineEntry() { |
| 231 | SBLineEntry sb_line_entry; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 232 | if (m_opaque_up->IsValid()) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 233 | LineEntry line_entry; |
Jonas Devlieghere | d5b4403 | 2019-02-13 06:25:41 +0000 | [diff] [blame] | 234 | if (m_opaque_up->CalculateSymbolContextLineEntry(line_entry)) |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 235 | sb_line_entry.SetLineEntry(line_entry); |
| 236 | } |
| 237 | return sb_line_entry; |
Greg Clayton | 7e9b1fd | 2011-08-12 21:40:01 +0000 | [diff] [blame] | 238 | } |