blob: c99eb4663782e416863d1049615b9113930f55a1 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- BreakpointLocation.cpp ----------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// C Includes
11// C++ Includes
12#include <string>
13
14// Other libraries and framework includes
15// Project includes
16#include "lldb/Breakpoint/BreakpointLocation.h"
17#include "lldb/Breakpoint/BreakpointID.h"
18#include "lldb/Breakpoint/StoppointCallbackContext.h"
Jim Inghame5ed8e92011-06-02 23:58:26 +000019#include "lldb/Core/Debugger.h"
Chris Lattner24943d22010-06-08 16:52:24 +000020#include "lldb/Core/Log.h"
21#include "lldb/Target/Target.h"
Jim Inghamd1686902010-10-14 23:45:03 +000022#include "lldb/Target/ThreadPlan.h"
Chris Lattner24943d22010-06-08 16:52:24 +000023#include "lldb/Target/Process.h"
24#include "lldb/Core/StreamString.h"
25#include "lldb/lldb-private-log.h"
26#include "lldb/Target/Thread.h"
Jim Ingham3c7b5b92010-06-16 02:00:15 +000027#include "lldb/Target/ThreadSpec.h"
Chris Lattner24943d22010-06-08 16:52:24 +000028
29using namespace lldb;
30using namespace lldb_private;
31
32BreakpointLocation::BreakpointLocation
33(
34 break_id_t loc_id,
35 Breakpoint &owner,
Greg Clayton19a1ab82011-02-05 00:38:04 +000036 const Address &addr,
Chris Lattner24943d22010-06-08 16:52:24 +000037 lldb::tid_t tid,
38 bool hardware
39) :
Greg Claytonc0fa5332011-05-22 22:46:53 +000040 StoppointLocation (loc_id, addr.GetOpcodeLoadAddress(&owner.GetTarget()), hardware),
Jim Ingham28e23862012-02-08 05:23:15 +000041 m_being_created(true),
Chris Lattner24943d22010-06-08 16:52:24 +000042 m_address (addr),
43 m_owner (owner),
44 m_options_ap (),
45 m_bp_site_sp ()
46{
Jim Ingham3c7b5b92010-06-16 02:00:15 +000047 SetThreadID (tid);
Jim Ingham28e23862012-02-08 05:23:15 +000048 m_being_created = false;
Chris Lattner24943d22010-06-08 16:52:24 +000049}
50
51BreakpointLocation::~BreakpointLocation()
52{
53 ClearBreakpointSite();
54}
55
56lldb::addr_t
Greg Clayton273a8e52010-06-14 04:18:27 +000057BreakpointLocation::GetLoadAddress () const
Chris Lattner24943d22010-06-08 16:52:24 +000058{
Greg Claytonc0fa5332011-05-22 22:46:53 +000059 return m_address.GetOpcodeLoadAddress (&m_owner.GetTarget());
Chris Lattner24943d22010-06-08 16:52:24 +000060}
61
62Address &
63BreakpointLocation::GetAddress ()
64{
65 return m_address;
66}
67
68Breakpoint &
69BreakpointLocation::GetBreakpoint ()
70{
71 return m_owner;
72}
73
74bool
Johnny Chenca4fe802012-02-01 19:05:20 +000075BreakpointLocation::IsEnabled () const
Chris Lattner24943d22010-06-08 16:52:24 +000076{
Johnny Chenfd60a602012-01-30 22:48:10 +000077 if (!m_owner.IsEnabled())
78 return false;
79 else if (m_options_ap.get() != NULL)
Chris Lattner24943d22010-06-08 16:52:24 +000080 return m_options_ap->IsEnabled();
81 else
Johnny Chenfd60a602012-01-30 22:48:10 +000082 return true;
Chris Lattner24943d22010-06-08 16:52:24 +000083}
84
85void
86BreakpointLocation::SetEnabled (bool enabled)
87{
88 GetLocationOptions()->SetEnabled(enabled);
89 if (enabled)
90 {
91 ResolveBreakpointSite();
92 }
93 else
94 {
95 ClearBreakpointSite();
96 }
Jim Ingham28e23862012-02-08 05:23:15 +000097 SendBreakpointLocationChangedEvent (enabled ? eBreakpointEventTypeEnabled : eBreakpointEventTypeDisabled);
Chris Lattner24943d22010-06-08 16:52:24 +000098}
99
100void
101BreakpointLocation::SetThreadID (lldb::tid_t thread_id)
102{
Jim Ingham3c7b5b92010-06-16 02:00:15 +0000103 if (thread_id != LLDB_INVALID_THREAD_ID)
104 GetLocationOptions()->SetThreadID(thread_id);
105 else
106 {
107 // If we're resetting this to an invalid thread id, then
108 // don't make an options pointer just to do that.
109 if (m_options_ap.get() != NULL)
110 m_options_ap->SetThreadID (thread_id);
111 }
Jim Ingham28e23862012-02-08 05:23:15 +0000112 SendBreakpointLocationChangedEvent (eBreakpointEventTypeThreadChanged);
113}
114
115lldb::tid_t
116BreakpointLocation::GetThreadID ()
117{
118 if (GetOptionsNoCreate()->GetThreadSpecNoCreate())
119 return GetOptionsNoCreate()->GetThreadSpecNoCreate()->GetTID();
120 else
121 return LLDB_INVALID_THREAD_ID;
122}
123
124void
125BreakpointLocation::SetThreadIndex (uint32_t index)
126{
127 if (index != 0)
128 GetLocationOptions()->GetThreadSpec()->SetIndex(index);
129 else
130 {
131 // If we're resetting this to an invalid thread id, then
132 // don't make an options pointer just to do that.
133 if (m_options_ap.get() != NULL)
134 m_options_ap->GetThreadSpec()->SetIndex(index);
135 }
136 SendBreakpointLocationChangedEvent (eBreakpointEventTypeThreadChanged);
137
138}
139
140uint32_t
141BreakpointLocation::GetThreadIndex() const
142{
143 if (GetOptionsNoCreate()->GetThreadSpecNoCreate())
144 return GetOptionsNoCreate()->GetThreadSpecNoCreate()->GetIndex();
145 else
146 return 0;
147}
148
149void
150BreakpointLocation::SetThreadName (const char *thread_name)
151{
152 if (thread_name != NULL)
153 GetLocationOptions()->GetThreadSpec()->SetName(thread_name);
154 else
155 {
156 // If we're resetting this to an invalid thread id, then
157 // don't make an options pointer just to do that.
158 if (m_options_ap.get() != NULL)
159 m_options_ap->GetThreadSpec()->SetName(thread_name);
160 }
161 SendBreakpointLocationChangedEvent (eBreakpointEventTypeThreadChanged);
162}
163
164const char *
165BreakpointLocation::GetThreadName () const
166{
167 if (GetOptionsNoCreate()->GetThreadSpecNoCreate())
168 return GetOptionsNoCreate()->GetThreadSpecNoCreate()->GetName();
169 else
170 return NULL;
171}
172
173void
174BreakpointLocation::SetQueueName (const char *queue_name)
175{
176 if (queue_name != NULL)
177 GetLocationOptions()->GetThreadSpec()->SetQueueName(queue_name);
178 else
179 {
180 // If we're resetting this to an invalid thread id, then
181 // don't make an options pointer just to do that.
182 if (m_options_ap.get() != NULL)
183 m_options_ap->GetThreadSpec()->SetQueueName(queue_name);
184 }
185 SendBreakpointLocationChangedEvent (eBreakpointEventTypeThreadChanged);
186}
187
188const char *
189BreakpointLocation::GetQueueName () const
190{
191 if (GetOptionsNoCreate()->GetThreadSpecNoCreate())
192 return GetOptionsNoCreate()->GetThreadSpecNoCreate()->GetQueueName();
193 else
194 return NULL;
Chris Lattner24943d22010-06-08 16:52:24 +0000195}
196
197bool
198BreakpointLocation::InvokeCallback (StoppointCallbackContext *context)
199{
Jim Ingham649492b2010-06-18 01:00:58 +0000200 if (m_options_ap.get() != NULL && m_options_ap->HasCallback())
Chris Lattner24943d22010-06-08 16:52:24 +0000201 return m_options_ap->InvokeCallback (context, m_owner.GetID(), GetID());
Jim Ingham649492b2010-06-18 01:00:58 +0000202 else
203 return m_owner.InvokeCallback (context, GetID());
Chris Lattner24943d22010-06-08 16:52:24 +0000204}
205
206void
207BreakpointLocation::SetCallback (BreakpointHitCallback callback, void *baton,
208 bool is_synchronous)
209{
210 // The default "Baton" class will keep a copy of "baton" and won't free
211 // or delete it when it goes goes out of scope.
212 GetLocationOptions()->SetCallback(callback, BatonSP (new Baton(baton)), is_synchronous);
Jim Ingham28e23862012-02-08 05:23:15 +0000213 SendBreakpointLocationChangedEvent (eBreakpointEventTypeCommandChanged);
Chris Lattner24943d22010-06-08 16:52:24 +0000214}
215
216void
217BreakpointLocation::SetCallback (BreakpointHitCallback callback, const BatonSP &baton_sp,
218 bool is_synchronous)
219{
220 GetLocationOptions()->SetCallback (callback, baton_sp, is_synchronous);
Jim Ingham28e23862012-02-08 05:23:15 +0000221 SendBreakpointLocationChangedEvent (eBreakpointEventTypeCommandChanged);
Chris Lattner24943d22010-06-08 16:52:24 +0000222}
223
Jim Inghamd1686902010-10-14 23:45:03 +0000224
Chris Lattner24943d22010-06-08 16:52:24 +0000225void
226BreakpointLocation::ClearCallback ()
227{
228 GetLocationOptions()->ClearCallback();
229}
230
Jim Inghamd1686902010-10-14 23:45:03 +0000231void
232BreakpointLocation::SetCondition (const char *condition)
233{
234 GetLocationOptions()->SetCondition (condition);
Jim Ingham28e23862012-02-08 05:23:15 +0000235 SendBreakpointLocationChangedEvent (eBreakpointEventTypeConditionChanged);
Jim Inghamd1686902010-10-14 23:45:03 +0000236}
237
238ThreadPlan *
239BreakpointLocation::GetThreadPlanToTestCondition (ExecutionContext &exe_ctx, Stream &error)
240{
Jim Inghamd1686902010-10-14 23:45:03 +0000241 if (m_options_ap.get())
Greg Clayton13d24fb2012-01-29 20:56:30 +0000242 return m_options_ap->GetThreadPlanToTestCondition (exe_ctx, shared_from_this(), error);
Jim Inghamd1686902010-10-14 23:45:03 +0000243 else
Greg Clayton13d24fb2012-01-29 20:56:30 +0000244 return m_owner.GetThreadPlanToTestCondition (exe_ctx, shared_from_this(), error);
Jim Inghamd1686902010-10-14 23:45:03 +0000245}
246
247const char *
Jim Inghamac354422011-06-15 21:16:00 +0000248BreakpointLocation::GetConditionText () const
Jim Inghamd1686902010-10-14 23:45:03 +0000249{
Jim Inghamac354422011-06-15 21:16:00 +0000250 return GetOptionsNoCreate()->GetConditionText();
Jim Inghamd1686902010-10-14 23:45:03 +0000251}
252
Greg Clayton54e7afa2010-07-09 20:39:50 +0000253uint32_t
Chris Lattner24943d22010-06-08 16:52:24 +0000254BreakpointLocation::GetIgnoreCount ()
255{
Jim Ingham9c6898b2010-06-22 21:12:54 +0000256 return GetOptionsNoCreate()->GetIgnoreCount();
Chris Lattner24943d22010-06-08 16:52:24 +0000257}
258
259void
Greg Clayton54e7afa2010-07-09 20:39:50 +0000260BreakpointLocation::SetIgnoreCount (uint32_t n)
Chris Lattner24943d22010-06-08 16:52:24 +0000261{
262 GetLocationOptions()->SetIgnoreCount(n);
Jim Ingham28e23862012-02-08 05:23:15 +0000263 SendBreakpointLocationChangedEvent (eBreakpointEventTypeIgnoreChanged);
Chris Lattner24943d22010-06-08 16:52:24 +0000264}
265
Jim Ingham3c7b5b92010-06-16 02:00:15 +0000266const BreakpointOptions *
Jim Ingham9c6898b2010-06-22 21:12:54 +0000267BreakpointLocation::GetOptionsNoCreate () const
Chris Lattner24943d22010-06-08 16:52:24 +0000268{
269 if (m_options_ap.get() != NULL)
270 return m_options_ap.get();
271 else
272 return m_owner.GetOptions ();
273}
274
275BreakpointOptions *
276BreakpointLocation::GetLocationOptions ()
277{
Jim Ingham649492b2010-06-18 01:00:58 +0000278 // If we make the copy we don't copy the callbacks because that is potentially
279 // expensive and we don't want to do that for the simple case where someone is
280 // just disabling the location.
Chris Lattner24943d22010-06-08 16:52:24 +0000281 if (m_options_ap.get() == NULL)
Jim Ingham649492b2010-06-18 01:00:58 +0000282 m_options_ap.reset(BreakpointOptions::CopyOptionsNoCallback(*m_owner.GetOptions ()));
283
Chris Lattner24943d22010-06-08 16:52:24 +0000284 return m_options_ap.get();
285}
286
Jim Ingham3c7b5b92010-06-16 02:00:15 +0000287bool
288BreakpointLocation::ValidForThisThread (Thread *thread)
289{
Jim Ingham9c6898b2010-06-22 21:12:54 +0000290 return thread->MatchesSpec(GetOptionsNoCreate()->GetThreadSpecNoCreate());
Jim Ingham3c7b5b92010-06-16 02:00:15 +0000291}
292
Chris Lattner24943d22010-06-08 16:52:24 +0000293// RETURNS - true if we should stop at this breakpoint, false if we
Jim Ingham3c7b5b92010-06-16 02:00:15 +0000294// should continue. Note, we don't check the thread spec for the breakpoint
295// here, since if the breakpoint is not for this thread, then the event won't
296// even get reported, so the check is redundant.
Chris Lattner24943d22010-06-08 16:52:24 +0000297
298bool
299BreakpointLocation::ShouldStop (StoppointCallbackContext *context)
300{
301 bool should_stop = true;
Greg Claytone005f2c2010-11-06 01:53:30 +0000302 LogSP log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_BREAKPOINTS);
Chris Lattner24943d22010-06-08 16:52:24 +0000303
Johnny Chen51b7c5f2012-01-23 23:03:59 +0000304 IncrementHitCount();
Chris Lattner24943d22010-06-08 16:52:24 +0000305
306 if (!IsEnabled())
307 return false;
308
Johnny Chen51b7c5f2012-01-23 23:03:59 +0000309 if (GetHitCount() <= GetIgnoreCount())
Chris Lattner24943d22010-06-08 16:52:24 +0000310 return false;
311
Jim Inghamd1686902010-10-14 23:45:03 +0000312 // We only run synchronous callbacks in ShouldStop:
Chris Lattner24943d22010-06-08 16:52:24 +0000313 context->is_synchronous = true;
314 should_stop = InvokeCallback (context);
Jim Inghamd1686902010-10-14 23:45:03 +0000315
Jim Inghame5ed8e92011-06-02 23:58:26 +0000316 if (log)
Jim Inghamd1686902010-10-14 23:45:03 +0000317 {
Jim Inghame5ed8e92011-06-02 23:58:26 +0000318 StreamString s;
319 GetDescription (&s, lldb::eDescriptionLevelVerbose);
320 log->Printf ("Hit breakpoint location: %s, %s.\n", s.GetData(), should_stop ? "stopping" : "continuing");
Chris Lattner24943d22010-06-08 16:52:24 +0000321 }
Jim Inghame5ed8e92011-06-02 23:58:26 +0000322
Chris Lattner24943d22010-06-08 16:52:24 +0000323 return should_stop;
324}
325
326bool
327BreakpointLocation::IsResolved () const
328{
329 return m_bp_site_sp.get() != NULL;
330}
331
Jim Inghamd1686902010-10-14 23:45:03 +0000332lldb::BreakpointSiteSP
333BreakpointLocation::GetBreakpointSite() const
334{
335 return m_bp_site_sp;
336}
337
Chris Lattner24943d22010-06-08 16:52:24 +0000338bool
339BreakpointLocation::ResolveBreakpointSite ()
340{
341 if (m_bp_site_sp)
342 return true;
343
Greg Claytoneea26402010-09-14 23:36:40 +0000344 Process *process = m_owner.GetTarget().GetProcessSP().get();
Chris Lattner24943d22010-06-08 16:52:24 +0000345 if (process == NULL)
346 return false;
347
Greg Claytoneea26402010-09-14 23:36:40 +0000348 if (m_owner.GetTarget().GetSectionLoadList().IsEmpty())
349 return false;
350
Greg Clayton13d24fb2012-01-29 20:56:30 +0000351 lldb::break_id_t new_id = process->CreateBreakpointSite (shared_from_this(), false);
Chris Lattner24943d22010-06-08 16:52:24 +0000352
Stephen Wilson3fd1f362010-07-17 00:56:13 +0000353 if (new_id == LLDB_INVALID_BREAK_ID)
Chris Lattner24943d22010-06-08 16:52:24 +0000354 {
Greg Claytone005f2c2010-11-06 01:53:30 +0000355 LogSP log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_BREAKPOINTS);
Chris Lattner24943d22010-06-08 16:52:24 +0000356 if (log)
357 log->Warning ("Tried to add breakpoint site at 0x%llx but it was already present.\n",
Greg Claytonc0fa5332011-05-22 22:46:53 +0000358 m_address.GetOpcodeLoadAddress (&m_owner.GetTarget()));
Chris Lattner24943d22010-06-08 16:52:24 +0000359 return false;
360 }
361
362 return true;
363}
364
365bool
366BreakpointLocation::SetBreakpointSite (BreakpointSiteSP& bp_site_sp)
367{
368 m_bp_site_sp = bp_site_sp;
369 return true;
370}
371
372bool
373BreakpointLocation::ClearBreakpointSite ()
374{
375 if (m_bp_site_sp.get())
376 {
Jim Ingham649492b2010-06-18 01:00:58 +0000377 m_owner.GetTarget().GetProcessSP()->RemoveOwnerFromBreakpointSite (GetBreakpoint().GetID(),
378 GetID(), m_bp_site_sp);
Chris Lattner24943d22010-06-08 16:52:24 +0000379 m_bp_site_sp.reset();
380 return true;
381 }
382 return false;
383}
384
385void
386BreakpointLocation::GetDescription (Stream *s, lldb::DescriptionLevel level)
387{
388 SymbolContext sc;
389 s->Indent();
390 BreakpointID::GetCanonicalReference(s, m_owner.GetID(), GetID());
391
392 if (level == lldb::eDescriptionLevelBrief)
393 return;
394
395 s->PutCString(": ");
396
397 if (level == lldb::eDescriptionLevelVerbose)
398 s->IndentMore();
399
400 if (m_address.IsSectionOffset())
401 {
402 m_address.CalculateSymbolContext(&sc);
403
404 if (level == lldb::eDescriptionLevelFull)
405 {
406 s->PutCString("where = ");
Greg Clayton5205f0b2010-09-03 17:10:42 +0000407 sc.DumpStopContext (s, m_owner.GetTarget().GetProcessSP().get(), m_address, false, true, false);
Chris Lattner24943d22010-06-08 16:52:24 +0000408 }
409 else
410 {
411 if (sc.module_sp)
412 {
413 s->EOL();
414 s->Indent("module = ");
415 sc.module_sp->GetFileSpec().Dump (s);
416 }
417
418 if (sc.comp_unit != NULL)
419 {
420 s->EOL();
421 s->Indent("compile unit = ");
Jim Ingham7ea35232010-10-27 22:58:34 +0000422 static_cast<FileSpec*>(sc.comp_unit)->GetFilename().Dump (s);
Chris Lattner24943d22010-06-08 16:52:24 +0000423
424 if (sc.function != NULL)
425 {
426 s->EOL();
427 s->Indent("function = ");
428 s->PutCString (sc.function->GetMangled().GetName().AsCString("<unknown>"));
429 }
430
431 if (sc.line_entry.line > 0)
432 {
433 s->EOL();
434 s->Indent("location = ");
Greg Clayton72b71582010-09-02 21:44:10 +0000435 sc.line_entry.DumpStopContext (s, true);
Chris Lattner24943d22010-06-08 16:52:24 +0000436 }
437
438 }
439 else
440 {
441 // If we don't have a comp unit, see if we have a symbol we can print.
442 if (sc.symbol)
443 {
444 s->EOL();
445 s->Indent("symbol = ");
446 s->PutCString(sc.symbol->GetMangled().GetName().AsCString("<unknown>"));
447 }
448 }
449 }
450 }
451
452 if (level == lldb::eDescriptionLevelVerbose)
453 {
454 s->EOL();
455 s->Indent();
456 }
457 s->Printf ("%saddress = ", (level == lldb::eDescriptionLevelFull && m_address.IsSectionOffset()) ? ", " : "");
458 ExecutionContextScope *exe_scope = NULL;
459 Target *target = &m_owner.GetTarget();
460 if (target)
461 exe_scope = target->GetProcessSP().get();
462 if (exe_scope == NULL)
463 exe_scope = target;
464
465 m_address.Dump(s, exe_scope, Address::DumpStyleLoadAddress, Address::DumpStyleModuleWithFileAddress);
466
467 if (level == lldb::eDescriptionLevelVerbose)
468 {
469 s->EOL();
470 s->Indent();
471 s->Printf("resolved = %s\n", IsResolved() ? "true" : "false");
472
473 s->Indent();
Chris Lattner24943d22010-06-08 16:52:24 +0000474 s->Printf ("hit count = %-4u\n", GetHitCount());
475
476 if (m_options_ap.get())
477 {
Jim Ingham649492b2010-06-18 01:00:58 +0000478 s->Indent();
479 m_options_ap->GetDescription (s, level);
480 s->EOL();
Chris Lattner24943d22010-06-08 16:52:24 +0000481 }
482 s->IndentLess();
483 }
484 else
485 {
Jim Ingham649492b2010-06-18 01:00:58 +0000486 s->Printf(", %sresolved, hit count = %u ",
Chris Lattner24943d22010-06-08 16:52:24 +0000487 (IsResolved() ? "" : "un"),
Chris Lattner24943d22010-06-08 16:52:24 +0000488 GetHitCount());
Jim Ingham649492b2010-06-18 01:00:58 +0000489 if (m_options_ap.get())
490 {
491 m_options_ap->GetDescription (s, level);
492 }
Chris Lattner24943d22010-06-08 16:52:24 +0000493 }
494}
495
496void
497BreakpointLocation::Dump(Stream *s) const
498{
499 if (s == NULL)
500 return;
501
Greg Claytond9919d32011-12-01 23:28:38 +0000502 s->Printf("BreakpointLocation %u: tid = %4.4llx load addr = 0x%8.8llx state = %s type = %s breakpoint "
Jim Ingham649492b2010-06-18 01:00:58 +0000503 "hw_index = %i hit_count = %-4u ignore_count = %-4u",
Johnny Chenf8c0fc52012-01-26 00:08:14 +0000504 GetID(),
505 GetOptionsNoCreate()->GetThreadSpecNoCreate()->GetTID(),
506 (uint64_t) m_address.GetOpcodeLoadAddress (&m_owner.GetTarget()),
Johnny Chenfd60a602012-01-30 22:48:10 +0000507 (m_options_ap.get() ? m_options_ap->IsEnabled() : m_owner.IsEnabled()) ? "enabled " : "disabled",
Johnny Chenf8c0fc52012-01-26 00:08:14 +0000508 IsHardware() ? "hardware" : "software",
509 GetHardwareIndex(),
510 GetHitCount(),
511 GetOptionsNoCreate()->GetIgnoreCount());
Chris Lattner24943d22010-06-08 16:52:24 +0000512}
Jim Ingham28e23862012-02-08 05:23:15 +0000513
514void
515BreakpointLocation::SendBreakpointLocationChangedEvent (lldb::BreakpointEventType eventKind)
516{
517 if (!m_being_created
518 && !m_owner.IsInternal()
519 && m_owner.GetTarget().EventTypeHasListeners(Target::eBroadcastBitBreakpointChanged))
520 {
521 Breakpoint::BreakpointEventData *data = new Breakpoint::BreakpointEventData (eventKind,
522 m_owner.shared_from_this());
523 data->GetBreakpointLocationCollection().Add (shared_from_this());
524 m_owner.GetTarget().BroadcastEvent (Target::eBroadcastBitBreakpointChanged, data);
525 }
526}
527