/
n-dimens
/
pascalabcnet
Обзор
Документация
Войти
/
n-dimens
/
pascalabcnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
VisualPascalABCNETLinux/MonoDebugging/Debugger/BreakpointEventRequest.cs
28 строк
940 B
Ivan Bondarev
missing files for debugger
18 апр 2023, 18:53
18 апр 2023, 18:53
d0397a4
Код
Авторство
О чём код?
using System; using System.Collections.Generic; using System.Linq; namespace Mono.Debugger.Soft { public sealed class BreakpointEventRequest : EventRequest { MethodMirror method; long location; internal BreakpointEventRequest (VirtualMachine vm, MethodMirror method, long location) : base (vm, EventType.Breakpoint) { if (method == null) throw new ArgumentNullException ("method"); CheckMirror (vm, method); if (method.Locations.Count > 0 && !method.Locations.Any (l => l.ILOffset == location)) throw new ArgumentException ("A breakpoint can only be set at an IL offset which is equal to the ILOffset property of one of the locations in method.Locations", "location"); this.method = method; this.location = location; } public override void Enable () { var mods = new List <Modifier> (); mods.Add (new LocationModifier () { Method = method.Id, Location = location }); SendReq (mods); } } }