1cfca06d7SDimitry Andric //===-- SBWatchpoint.cpp --------------------------------------------------===//
2f034231aSEd Maste //
35f29bb8aSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
45f29bb8aSDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
55f29bb8aSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6f034231aSEd Maste //
7f034231aSEd Maste //===----------------------------------------------------------------------===//
8f034231aSEd Maste
9f034231aSEd Maste #include "lldb/API/SBWatchpoint.h"
10f034231aSEd Maste #include "lldb/API/SBAddress.h"
11f034231aSEd Maste #include "lldb/API/SBDebugger.h"
1214f1b3e8SDimitry Andric #include "lldb/API/SBDefines.h"
13f034231aSEd Maste #include "lldb/API/SBEvent.h"
14f034231aSEd Maste #include "lldb/API/SBStream.h"
156f8fc217SDimitry Andric #include "lldb/Utility/Instrumentation.h"
16f034231aSEd Maste
17f034231aSEd Maste #include "lldb/Breakpoint/Watchpoint.h"
18f034231aSEd Maste #include "lldb/Breakpoint/WatchpointList.h"
197fa27ce4SDimitry Andric #include "lldb/Symbol/CompilerType.h"
2014f1b3e8SDimitry Andric #include "lldb/Target/Process.h"
21f034231aSEd Maste #include "lldb/Target/Target.h"
2274a628f7SDimitry Andric #include "lldb/Utility/Stream.h"
2314f1b3e8SDimitry Andric #include "lldb/lldb-defines.h"
2414f1b3e8SDimitry Andric #include "lldb/lldb-types.h"
25f034231aSEd Maste
26f034231aSEd Maste using namespace lldb;
27f034231aSEd Maste using namespace lldb_private;
28f034231aSEd Maste
SBWatchpoint()296f8fc217SDimitry Andric SBWatchpoint::SBWatchpoint() { LLDB_INSTRUMENT_VA(this); }
30f034231aSEd Maste
SBWatchpoint(const lldb::WatchpointSP & wp_sp)3114f1b3e8SDimitry Andric SBWatchpoint::SBWatchpoint(const lldb::WatchpointSP &wp_sp)
3274a628f7SDimitry Andric : m_opaque_wp(wp_sp) {
336f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, wp_sp);
34f034231aSEd Maste }
35f034231aSEd Maste
SBWatchpoint(const SBWatchpoint & rhs)3614f1b3e8SDimitry Andric SBWatchpoint::SBWatchpoint(const SBWatchpoint &rhs)
375f29bb8aSDimitry Andric : m_opaque_wp(rhs.m_opaque_wp) {
386f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, rhs);
395f29bb8aSDimitry Andric }
40f034231aSEd Maste
operator =(const SBWatchpoint & rhs)4114f1b3e8SDimitry Andric const SBWatchpoint &SBWatchpoint::operator=(const SBWatchpoint &rhs) {
426f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, rhs);
435f29bb8aSDimitry Andric
4474a628f7SDimitry Andric m_opaque_wp = rhs.m_opaque_wp;
456f8fc217SDimitry Andric return *this;
46f034231aSEd Maste }
47f034231aSEd Maste
48cfca06d7SDimitry Andric SBWatchpoint::~SBWatchpoint() = default;
49f034231aSEd Maste
GetID()5014f1b3e8SDimitry Andric watch_id_t SBWatchpoint::GetID() {
516f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
52f034231aSEd Maste
53f034231aSEd Maste watch_id_t watch_id = LLDB_INVALID_WATCH_ID;
54f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
55f034231aSEd Maste if (watchpoint_sp)
56f034231aSEd Maste watch_id = watchpoint_sp->GetID();
57f034231aSEd Maste
58f034231aSEd Maste return watch_id;
59f034231aSEd Maste }
60f034231aSEd Maste
IsValid() const615f29bb8aSDimitry Andric bool SBWatchpoint::IsValid() const {
626f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
635f29bb8aSDimitry Andric return this->operator bool();
645f29bb8aSDimitry Andric }
operator bool() const655f29bb8aSDimitry Andric SBWatchpoint::operator bool() const {
666f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
675f29bb8aSDimitry Andric
685f29bb8aSDimitry Andric return bool(m_opaque_wp.lock());
695f29bb8aSDimitry Andric }
705f29bb8aSDimitry Andric
operator ==(const SBWatchpoint & rhs) const715f29bb8aSDimitry Andric bool SBWatchpoint::operator==(const SBWatchpoint &rhs) const {
726f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, rhs);
735f29bb8aSDimitry Andric
745f29bb8aSDimitry Andric return GetSP() == rhs.GetSP();
755f29bb8aSDimitry Andric }
765f29bb8aSDimitry Andric
operator !=(const SBWatchpoint & rhs) const775f29bb8aSDimitry Andric bool SBWatchpoint::operator!=(const SBWatchpoint &rhs) const {
786f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, rhs);
795f29bb8aSDimitry Andric
805f29bb8aSDimitry Andric return !(*this == rhs);
815f29bb8aSDimitry Andric }
82f034231aSEd Maste
GetError()8314f1b3e8SDimitry Andric SBError SBWatchpoint::GetError() {
846f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
855f29bb8aSDimitry Andric
86f034231aSEd Maste SBError sb_error;
87f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
8814f1b3e8SDimitry Andric if (watchpoint_sp) {
89f034231aSEd Maste sb_error.SetError(watchpoint_sp->GetError());
90f034231aSEd Maste }
916f8fc217SDimitry Andric return sb_error;
92f034231aSEd Maste }
93f034231aSEd Maste
GetHardwareIndex()9414f1b3e8SDimitry Andric int32_t SBWatchpoint::GetHardwareIndex() {
956f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
965f29bb8aSDimitry Andric
97b1c73532SDimitry Andric // For processes using gdb remote protocol,
98b1c73532SDimitry Andric // we cannot determine the hardware breakpoint
99b1c73532SDimitry Andric // index reliably; providing possibly correct
100b1c73532SDimitry Andric // guesses is not useful to anyone.
101b1c73532SDimitry Andric return -1;
102f034231aSEd Maste }
103f034231aSEd Maste
GetWatchAddress()10414f1b3e8SDimitry Andric addr_t SBWatchpoint::GetWatchAddress() {
1056f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
1065f29bb8aSDimitry Andric
107f034231aSEd Maste addr_t ret_addr = LLDB_INVALID_ADDRESS;
108f034231aSEd Maste
109f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
11014f1b3e8SDimitry Andric if (watchpoint_sp) {
11114f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
11214f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
113f034231aSEd Maste ret_addr = watchpoint_sp->GetLoadAddress();
114f034231aSEd Maste }
115f034231aSEd Maste
116f034231aSEd Maste return ret_addr;
117f034231aSEd Maste }
118f034231aSEd Maste
GetWatchSize()11914f1b3e8SDimitry Andric size_t SBWatchpoint::GetWatchSize() {
1206f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
1215f29bb8aSDimitry Andric
122f034231aSEd Maste size_t watch_size = 0;
123f034231aSEd Maste
124f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
12514f1b3e8SDimitry Andric if (watchpoint_sp) {
12614f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
12714f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
128f034231aSEd Maste watch_size = watchpoint_sp->GetByteSize();
129f034231aSEd Maste }
130f034231aSEd Maste
131f034231aSEd Maste return watch_size;
132f034231aSEd Maste }
133f034231aSEd Maste
SetEnabled(bool enabled)13414f1b3e8SDimitry Andric void SBWatchpoint::SetEnabled(bool enabled) {
1356f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, enabled);
1365f29bb8aSDimitry Andric
137f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
13814f1b3e8SDimitry Andric if (watchpoint_sp) {
13914f1b3e8SDimitry Andric Target &target = watchpoint_sp->GetTarget();
14014f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(target.GetAPIMutex());
14114f1b3e8SDimitry Andric ProcessSP process_sp = target.GetProcessSP();
14214f1b3e8SDimitry Andric const bool notify = true;
14314f1b3e8SDimitry Andric if (process_sp) {
14414f1b3e8SDimitry Andric if (enabled)
145b1c73532SDimitry Andric process_sp->EnableWatchpoint(watchpoint_sp, notify);
14614f1b3e8SDimitry Andric else
147b1c73532SDimitry Andric process_sp->DisableWatchpoint(watchpoint_sp, notify);
14814f1b3e8SDimitry Andric } else {
14914f1b3e8SDimitry Andric watchpoint_sp->SetEnabled(enabled, notify);
15014f1b3e8SDimitry Andric }
151f034231aSEd Maste }
152f034231aSEd Maste }
153f034231aSEd Maste
IsEnabled()15414f1b3e8SDimitry Andric bool SBWatchpoint::IsEnabled() {
1556f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
1565f29bb8aSDimitry Andric
157f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
15814f1b3e8SDimitry Andric if (watchpoint_sp) {
15914f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
16014f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
161f034231aSEd Maste return watchpoint_sp->IsEnabled();
16214f1b3e8SDimitry Andric } else
163f034231aSEd Maste return false;
164f034231aSEd Maste }
165f034231aSEd Maste
GetHitCount()16614f1b3e8SDimitry Andric uint32_t SBWatchpoint::GetHitCount() {
1676f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
1685f29bb8aSDimitry Andric
169f034231aSEd Maste uint32_t count = 0;
170f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
17114f1b3e8SDimitry Andric if (watchpoint_sp) {
17214f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
17314f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
174f034231aSEd Maste count = watchpoint_sp->GetHitCount();
175f034231aSEd Maste }
176f034231aSEd Maste
177f034231aSEd Maste return count;
178f034231aSEd Maste }
179f034231aSEd Maste
GetIgnoreCount()18014f1b3e8SDimitry Andric uint32_t SBWatchpoint::GetIgnoreCount() {
1816f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
1825f29bb8aSDimitry Andric
183f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
18414f1b3e8SDimitry Andric if (watchpoint_sp) {
18514f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
18614f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
187f034231aSEd Maste return watchpoint_sp->GetIgnoreCount();
18814f1b3e8SDimitry Andric } else
189f034231aSEd Maste return 0;
190f034231aSEd Maste }
191f034231aSEd Maste
SetIgnoreCount(uint32_t n)19214f1b3e8SDimitry Andric void SBWatchpoint::SetIgnoreCount(uint32_t n) {
1936f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, n);
1945f29bb8aSDimitry Andric
195f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
19614f1b3e8SDimitry Andric if (watchpoint_sp) {
19714f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
19814f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
199f034231aSEd Maste watchpoint_sp->SetIgnoreCount(n);
200f034231aSEd Maste }
201f034231aSEd Maste }
202f034231aSEd Maste
GetCondition()20314f1b3e8SDimitry Andric const char *SBWatchpoint::GetCondition() {
2046f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
2055f29bb8aSDimitry Andric
206f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
2077fa27ce4SDimitry Andric if (!watchpoint_sp)
2087fa27ce4SDimitry Andric return nullptr;
2097fa27ce4SDimitry Andric
21014f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
21114f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
2127fa27ce4SDimitry Andric return ConstString(watchpoint_sp->GetConditionText()).GetCString();
213f034231aSEd Maste }
214f034231aSEd Maste
SetCondition(const char * condition)21514f1b3e8SDimitry Andric void SBWatchpoint::SetCondition(const char *condition) {
2166f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, condition);
2175f29bb8aSDimitry Andric
218f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
21914f1b3e8SDimitry Andric if (watchpoint_sp) {
22014f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
22114f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
222f034231aSEd Maste watchpoint_sp->SetCondition(condition);
223f034231aSEd Maste }
224f034231aSEd Maste }
225f034231aSEd Maste
GetDescription(SBStream & description,DescriptionLevel level)22614f1b3e8SDimitry Andric bool SBWatchpoint::GetDescription(SBStream &description,
22714f1b3e8SDimitry Andric DescriptionLevel level) {
2286f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, description, level);
2295f29bb8aSDimitry Andric
230f034231aSEd Maste Stream &strm = description.ref();
231f034231aSEd Maste
232f034231aSEd Maste lldb::WatchpointSP watchpoint_sp(GetSP());
23314f1b3e8SDimitry Andric if (watchpoint_sp) {
23414f1b3e8SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
23514f1b3e8SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
236f034231aSEd Maste watchpoint_sp->GetDescription(&strm, level);
237f034231aSEd Maste strm.EOL();
23814f1b3e8SDimitry Andric } else
239f034231aSEd Maste strm.PutCString("No value");
240f034231aSEd Maste
241f034231aSEd Maste return true;
242f034231aSEd Maste }
243f034231aSEd Maste
Clear()2445f29bb8aSDimitry Andric void SBWatchpoint::Clear() {
2456f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
246f034231aSEd Maste
2475f29bb8aSDimitry Andric m_opaque_wp.reset();
2485f29bb8aSDimitry Andric }
249f034231aSEd Maste
GetSP() const2505f29bb8aSDimitry Andric lldb::WatchpointSP SBWatchpoint::GetSP() const {
2516f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this);
2525f29bb8aSDimitry Andric
2536f8fc217SDimitry Andric return m_opaque_wp.lock();
2545f29bb8aSDimitry Andric }
2555f29bb8aSDimitry Andric
SetSP(const lldb::WatchpointSP & sp)2565f29bb8aSDimitry Andric void SBWatchpoint::SetSP(const lldb::WatchpointSP &sp) {
2576f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(this, sp);
2585f29bb8aSDimitry Andric
2595f29bb8aSDimitry Andric m_opaque_wp = sp;
2605f29bb8aSDimitry Andric }
261f034231aSEd Maste
EventIsWatchpointEvent(const lldb::SBEvent & event)26214f1b3e8SDimitry Andric bool SBWatchpoint::EventIsWatchpointEvent(const lldb::SBEvent &event) {
2636f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(event);
2645f29bb8aSDimitry Andric
26514f1b3e8SDimitry Andric return Watchpoint::WatchpointEventData::GetEventDataFromEvent(event.get()) !=
2665f29bb8aSDimitry Andric nullptr;
267f034231aSEd Maste }
268f034231aSEd Maste
269f034231aSEd Maste WatchpointEventType
GetWatchpointEventTypeFromEvent(const SBEvent & event)27014f1b3e8SDimitry Andric SBWatchpoint::GetWatchpointEventTypeFromEvent(const SBEvent &event) {
2716f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(event);
2725f29bb8aSDimitry Andric
273f034231aSEd Maste if (event.IsValid())
27414f1b3e8SDimitry Andric return Watchpoint::WatchpointEventData::GetWatchpointEventTypeFromEvent(
27514f1b3e8SDimitry Andric event.GetSP());
276f034231aSEd Maste return eWatchpointEventTypeInvalidType;
277f034231aSEd Maste }
278f034231aSEd Maste
GetWatchpointFromEvent(const lldb::SBEvent & event)27914f1b3e8SDimitry Andric SBWatchpoint SBWatchpoint::GetWatchpointFromEvent(const lldb::SBEvent &event) {
2806f8fc217SDimitry Andric LLDB_INSTRUMENT_VA(event);
2815f29bb8aSDimitry Andric
282f034231aSEd Maste SBWatchpoint sb_watchpoint;
283f034231aSEd Maste if (event.IsValid())
28474a628f7SDimitry Andric sb_watchpoint =
28514f1b3e8SDimitry Andric Watchpoint::WatchpointEventData::GetWatchpointFromEvent(event.GetSP());
2866f8fc217SDimitry Andric return sb_watchpoint;
287f034231aSEd Maste }
2887fa27ce4SDimitry Andric
GetType()2897fa27ce4SDimitry Andric lldb::SBType SBWatchpoint::GetType() {
2907fa27ce4SDimitry Andric LLDB_INSTRUMENT_VA(this);
2917fa27ce4SDimitry Andric
2927fa27ce4SDimitry Andric lldb::WatchpointSP watchpoint_sp(GetSP());
2937fa27ce4SDimitry Andric if (watchpoint_sp) {
2947fa27ce4SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
2957fa27ce4SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
2967fa27ce4SDimitry Andric const CompilerType &type = watchpoint_sp->GetCompilerType();
2977fa27ce4SDimitry Andric return lldb::SBType(type);
2987fa27ce4SDimitry Andric }
2997fa27ce4SDimitry Andric return lldb::SBType();
3007fa27ce4SDimitry Andric }
3017fa27ce4SDimitry Andric
GetWatchValueKind()3027fa27ce4SDimitry Andric WatchpointValueKind SBWatchpoint::GetWatchValueKind() {
3037fa27ce4SDimitry Andric LLDB_INSTRUMENT_VA(this);
3047fa27ce4SDimitry Andric
3057fa27ce4SDimitry Andric lldb::WatchpointSP watchpoint_sp(GetSP());
3067fa27ce4SDimitry Andric if (watchpoint_sp) {
3077fa27ce4SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
3087fa27ce4SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
3097fa27ce4SDimitry Andric if (watchpoint_sp->IsWatchVariable())
3107fa27ce4SDimitry Andric return WatchpointValueKind::eWatchPointValueKindVariable;
3117fa27ce4SDimitry Andric return WatchpointValueKind::eWatchPointValueKindExpression;
3127fa27ce4SDimitry Andric }
3137fa27ce4SDimitry Andric return WatchpointValueKind::eWatchPointValueKindInvalid;
3147fa27ce4SDimitry Andric }
3157fa27ce4SDimitry Andric
GetWatchSpec()3167fa27ce4SDimitry Andric const char *SBWatchpoint::GetWatchSpec() {
3177fa27ce4SDimitry Andric LLDB_INSTRUMENT_VA(this);
3187fa27ce4SDimitry Andric
3197fa27ce4SDimitry Andric lldb::WatchpointSP watchpoint_sp(GetSP());
3207fa27ce4SDimitry Andric if (!watchpoint_sp)
3217fa27ce4SDimitry Andric return nullptr;
3227fa27ce4SDimitry Andric
3237fa27ce4SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
3247fa27ce4SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
3257fa27ce4SDimitry Andric // Store the result of `GetWatchSpec()` as a ConstString
3267fa27ce4SDimitry Andric // so that the C string we return has a sufficiently long
3277fa27ce4SDimitry Andric // lifetime. Note this a memory leak but should be fairly
3287fa27ce4SDimitry Andric // low impact.
3297fa27ce4SDimitry Andric return ConstString(watchpoint_sp->GetWatchSpec()).AsCString();
3307fa27ce4SDimitry Andric }
3317fa27ce4SDimitry Andric
IsWatchingReads()3327fa27ce4SDimitry Andric bool SBWatchpoint::IsWatchingReads() {
3337fa27ce4SDimitry Andric LLDB_INSTRUMENT_VA(this);
3347fa27ce4SDimitry Andric lldb::WatchpointSP watchpoint_sp(GetSP());
3357fa27ce4SDimitry Andric if (watchpoint_sp) {
3367fa27ce4SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
3377fa27ce4SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
3387fa27ce4SDimitry Andric
3397fa27ce4SDimitry Andric return watchpoint_sp->WatchpointRead();
3407fa27ce4SDimitry Andric }
3417fa27ce4SDimitry Andric
3427fa27ce4SDimitry Andric return false;
3437fa27ce4SDimitry Andric }
3447fa27ce4SDimitry Andric
IsWatchingWrites()3457fa27ce4SDimitry Andric bool SBWatchpoint::IsWatchingWrites() {
3467fa27ce4SDimitry Andric LLDB_INSTRUMENT_VA(this);
3477fa27ce4SDimitry Andric lldb::WatchpointSP watchpoint_sp(GetSP());
3487fa27ce4SDimitry Andric if (watchpoint_sp) {
3497fa27ce4SDimitry Andric std::lock_guard<std::recursive_mutex> guard(
3507fa27ce4SDimitry Andric watchpoint_sp->GetTarget().GetAPIMutex());
3517fa27ce4SDimitry Andric
352b1c73532SDimitry Andric return watchpoint_sp->WatchpointWrite() ||
353b1c73532SDimitry Andric watchpoint_sp->WatchpointModify();
3547fa27ce4SDimitry Andric }
3557fa27ce4SDimitry Andric
3567fa27ce4SDimitry Andric return false;
3577fa27ce4SDimitry Andric }
358