Example #1
0
 /// <summary>
 /// <para>Watch this value that this value points to in memory</para>
 /// </summary>
 /// <remarks>
 /// <para>Sets a watchpoint on the value.</para>
 /// </remarks>
 /// <param name="resolve_location">
 /// <para>Resolve the location of this value once and watch its address.</para>
 /// <para>This value must currently be set to</para>
 /// <para>as watching all</para>
 /// <para>locations of a variable or a variable path is not yet supported,</para>
 /// <para>though we plan to support it in the future.</para>
 /// </param>
 /// <param name="read">
 /// <para>Stop when this value is accessed.</para>
 /// </param>
 /// <param name="write">
 /// <para>Stop when this value is modified</para>
 /// </param>
 /// <param name="error">
 /// <para>An error object. Contains the reason if there is some failure.</para>
 /// </param>
 /// <returns>
 /// <para>An SBWatchpoint object. This object might not be valid upon</para>
 /// <para>return due to a value not being contained in memory, too</para>
 /// <para>large, or watchpoint resources are not available or all in</para>
 /// <para>use.</para>
 /// </returns>
 public LLDB.Watchpoint WatchPointee(bool resolve_location, bool read, bool write, LLDB.Error error)
 {
     if (ReferenceEquals(error, null))
         throw new global::System.ArgumentNullException("error", "Cannot be null because it is a C++ reference (&).");
     var arg3 = error.__Instance;
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.WatchPointee_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), resolve_location, read, write, arg3);
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }
Example #2
0
 public static LLDB.Watchpoint GetWatchpointFromEvent(LLDB.Event @event)
 {
     if (ReferenceEquals(@event, null))
         throw new global::System.ArgumentNullException("@event", "Cannot be null because it is a C++ reference (&).");
     var arg0 = @event.__Instance;
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.GetWatchpointFromEvent_0(new IntPtr(&__ret), arg0);
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }
Example #3
0
 public LLDB.Watchpoint Watch(bool resolve_location, bool read, bool write)
 {
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.Watch_1(new IntPtr(&__ret), (__Instance + __PointerAdjustment), resolve_location, read, write);
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }
Example #4
0
 public LLDB.Watchpoint FindWatchpointByID(int watch_id)
 {
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.FindWatchpointByID_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), watch_id);
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }
Example #5
0
 public LLDB.Watchpoint GetWatchpointAtIndex(uint idx)
 {
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.GetWatchpointAtIndex_0(new IntPtr(&__ret), (__Instance + __PointerAdjustment), idx);
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }
Example #6
0
 public LLDB.Watchpoint WatchAddress(ulong addr, uint size, bool read, bool write, LLDB.Error error)
 {
     if (ReferenceEquals(error, null))
         throw new global::System.ArgumentNullException("error", "Cannot be null because it is a C++ reference (&).");
     var arg4 = error.__Instance;
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.WatchAddress_0((__Instance + __PointerAdjustment), new IntPtr(&__ret), addr, size, read, write, arg4);
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }
Example #7
0
 /// <summary>
 /// <para>Watch this value that this value points to in memory</para>
 /// </summary>
 /// <remarks>
 /// <para>Sets a watchpoint on the value.</para>
 /// </remarks>
 /// <param name="resolve_location">
 /// <para>Resolve the location of this value once and watch its address.</para>
 /// <para>This value must currently be set to</para>
 /// <para>as watching all</para>
 /// <para>locations of a variable or a variable path is not yet supported,</para>
 /// <para>though we plan to support it in the future.</para>
 /// </param>
 /// <param name="read">
 /// <para>Stop when this value is accessed.</para>
 /// </param>
 /// <param name="write">
 /// <para>Stop when this value is modified</para>
 /// </param>
 /// <param name="error">
 /// <para>An error object. Contains the reason if there is some failure.</para>
 /// </param>
 /// <returns>
 /// <para>An SBWatchpoint object. This object might not be valid upon</para>
 /// <para>return due to a value not being contained in memory, too</para>
 /// <para>large, or watchpoint resources are not available or all in</para>
 /// <para>use.</para>
 /// </returns>
 public LLDB.Watchpoint WatchPointee(bool resolve_location, bool read, bool write, out LLDB.Error error)
 {
     error = new LLDB.Error();
     if (ReferenceEquals(error, null))
         throw new global::System.ArgumentNullException("error", "Cannot be null because it is a C++ reference (&).");
     var arg3 = error.__Instance;
     var __ret = new LLDB.Watchpoint.Internal();
     Internal.WatchPointee_0((__Instance + __PointerAdjustment), new IntPtr(&__ret), resolve_location, read, write, arg3);
     LLDB.Error __result0;
     if (arg3 == IntPtr.Zero) __result0 = null;
     else if (LLDB.Error.NativeToManagedMap.ContainsKey(arg3))
         __result0 = (LLDB.Error) LLDB.Error.NativeToManagedMap[arg3];
     else __result0 = LLDB.Error.__CreateInstance(arg3);
     error = __result0;
     return LLDB.Watchpoint.__CreateInstance(__ret);
 }