| 1 | #cxx . . $ `<file>/src/DebuggerData.cpp`/include "DebuggerData.h"cxx . . $ `<file>/src/DebuggerData.h`/ |
| 2 | #include "Convert.h"cxx . . $ `<file>/src/Convert.h`/ |
| 3 | #include "ranges.h"cxx . . $ `<file>/src/ranges.h`/ |
| 4 | #include <qglobal.h> |
| 5 | #include <QStringList> |
| 6 | #include <QDebug> |
| 7 | #include <algorithm> |
| 8 | // class MemoryLayout |
| 9 | |
| 10 | static const char* const TypeNamescxx . . $ TypeNames.[] = { "breakpoint", "memread", "memwrite", "ioread", "iowrite", |
| 11 | "condition" }; |
| 12 | |
| 13 | MemoryLayoutcxx . . $ MemoryLayout#::MemoryLayoutcxx . . $ MemoryLayout#MemoryLayout(49f6e7a06ebc5aa8).() |
| 14 | { |
| 15 | for (int p = 0; p < 4; ++p) { |
| 16 | primarySlotcxx . . $ MemoryLayout#primarySlot.[p] = 0; |
| 17 | secondarySlotcxx . . $ MemoryLayout#secondarySlot.[p] = -1; |
| 18 | mapperSegmentcxx . . $ MemoryLayout#mapperSegment.[p] = 0; |
| 19 | isSubslottedcxx . . $ MemoryLayout#isSubslotted.[p] = false; |
| 20 | for (int q = 0; q < 4; ++q) { |
| 21 | mapperSizecxx . . $ MemoryLayout#mapperSize.[p][q] = 0; |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | |
| 27 | // class Breakpoints |
| 28 | |
| 29 | static const char *BreakpointSetCodescxx . . $ BreakpointSetCodes.[] = { |
| 30 | "set_bp", |
| 31 | "set_watchpoint read_mem", |
| 32 | "set_watchpoint write_mem", |
| 33 | "set_watchpoint read_io", |
| 34 | "set_watchpoint write_io", |
| 35 | "set_condition" |
| 36 | }; |
| 37 | |
| 38 | static QStringcxx . . $ QString# getNextArgumentcxx . . $ getNextArgument(ad4691de8f106049).(QStringcxx . . $ QString#& data, int& pos) |
| 39 | { |
| 40 | QStringcxx . . $ QString# resultcxx . . $ QString#QString(ced63f7c635d850d).; |
| 41 | while (data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos] ==cxx . . $ `operator==`(a468b2f18a3afe8). ' 'cxx . . $ QChar#QChar(f349c77f591a7878). || data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos] ==cxx . . $ `operator==`(a468b2f18a3afe8). '\t'cxx . . $ QChar#QChar(f349c77f591a7878).) ++pos; |
| 42 | while (true) { |
| 43 | if (data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos] ==cxx . . $ `operator==`(a468b2f18a3afe8). ' 'cxx . . $ QChar#QChar(f349c77f591a7878). || data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos] ==cxx . . $ `operator==`(a468b2f18a3afe8). '\t'cxx . . $ QChar#QChar(f349c77f591a7878).) break; |
| 44 | if (data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos] ==cxx . . $ `operator==`(a468b2f18a3afe8). '}'cxx . . $ QChar#QChar(f349c77f591a7878). || data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos] ==cxx . . $ `operator==`(a468b2f18a3afe8). ']'cxx . . $ QChar#QChar(f349c77f591a7878).) break; |
| 45 | result +=cxx . . $ QString#`operator+=`(3a2ffbdf8ecc25e2). data[cxx . . $ QString#`operator[]`(57436120916eb52c).pos]; |
| 46 | ++pos; |
| 47 | } |
| 48 | return resultcxx . . $ QString#QString(28715ad661ad3cec).; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | bool Breakpointcxx . . $ Breakpoint#::operatorcxx . . $ Breakpoint#`operator==`(b5006d53b93f316).==(const Breakpointcxx . . $ Breakpoint# &bp) const |
| 53 | { |
| 54 | if (bp.typecxx . . $ Breakpoint#type. != typecxx . . $ Breakpoint#type.) return false; |
| 55 | |
| 56 | // compare address |
| 57 | if (typecxx . . $ Breakpoint#type. != Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.) { |
| 58 | if (bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).startcxx . . $ AddressRange#start. != rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).startcxx . . $ AddressRange#start.) return false; |
| 59 | if (typecxx . . $ Breakpoint#type. != Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT.) { |
| 60 | if (bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).endcxx . . $ AddressRange#end. !=cxx . . $ std/`operator!=`(bfff6fe36055af71). rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).endcxx . . $ AddressRange#end.) return false; |
| 61 | } |
| 62 | // compare slot |
| 63 | if (bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. !=cxx . . $ std/`operator!=`(bfff6fe36055af71). slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. || bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. !=cxx . . $ std/`operator!=`(bfff6fe36055af71). slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. || bp.segmentcxx . . $ Breakpoint#segment. !=cxx . . $ std/`operator!=`(bfff6fe36055af71). segmentcxx . . $ Breakpoint#segment.) return false; |
| 64 | } |
| 65 | // compare condition |
| 66 | return bp.conditioncxx . . $ Breakpoint#condition. ==cxx . . $ `operator==`(5bc2975d2d751687). conditioncxx . . $ Breakpoint#condition.; |
| 67 | } |
| 68 | |
| 69 | void Breakpointscxx . . $ Breakpoints#::clearcxx . . $ Breakpoints#clear(49f6e7a06ebc5aa8).() |
| 70 | { |
| 71 | breakpointscxx . . $ Breakpoints#breakpoints..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 72 | } |
| 73 | |
| 74 | void Breakpointscxx . . $ Breakpoints#::setMemoryLayoutcxx . . $ Breakpoints#setMemoryLayout(64b27f19295a45ce).(MemoryLayoutcxx . . $ MemoryLayout#* ml) |
| 75 | { |
| 76 | memLayoutcxx . . $ Breakpoints#memLayout. = ml; |
| 77 | } |
| 78 | |
| 79 | QStringcxx . . $ QString# Breakpointscxx . . $ Breakpoints#::createSetCommandcxx . . $ Breakpoints#createSetCommand(c597a5e9ff31d2bf).(Breakpointcxx . . $ Breakpoint#::Typecxx . . $ Breakpoint#Type# type, stdcxx . . $ std/::optionalcxx . . $ std/optional#<AddressRangecxx . . $ AddressRange#> range, |
| 80 | Slotcxx . . $ Slot# slot, stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint8_tcxx . . $ uint8_t#> segment, |
| 81 | QStringcxx . . $ QString# condition) |
| 82 | { |
| 83 | QStringcxx . . $ QString# cmdcxx . . $ QString#QString(85c52e162fed56f9).("debug %1 %2 %3"); |
| 84 | QStringcxx . . $ QString# addrcxx . . $ QString#QString(ced63f7c635d850d)., condcxx . . $ QString#QString(ced63f7c635d850d).; |
| 85 | condition =cxx . . $ QString#`operator=`(4f35bf974e7f8568). condition.trimmedcxx . . $ QString#trimmed(dca2c5857e9adf82).(); |
| 86 | |
| 87 | if (type == Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.) { |
| 88 | // conditions don't have an address |
| 89 | cond =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(85c52e162fed56f9).("{%1}").argcxx . . $ QString#arg(bc823072288cbbb5).(condition); |
| 90 | } else if (range) { |
| 91 | if (type == Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT. || !range->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).endcxx . . $ AddressRange#end.) { |
| 92 | // breakpoint (these never have a range) or watchpoint without range |
| 93 | addr =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(range->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).startcxx . . $ AddressRange#start.); |
| 94 | } else { |
| 95 | // some type of watchpoint (with a valid range) |
| 96 | addr =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(85c52e162fed56f9).("{%1 %2}").argcxx . . $ QString#arg(ba69ea7f5cd360b4).(range->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).startcxx . . $ AddressRange#start.).argcxx . . $ QString#arg(ba69ea7f5cd360b4).(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).range->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).endcxx . . $ AddressRange#end.); |
| 97 | } |
| 98 | |
| 99 | cond =cxx . . $ QString#`operator=`(4f35bf974e7f8568). QStringcxx . . $ QString#QString(85c52e162fed56f9).("{ [ %1_in_slot %2 %3 %4 ] %5}") |
| 100 | .argcxx . . $ QString#arg(bc823072288cbbb5).(typecxx . . $ QString#QString(85c52e162fed56f9). == Breakpointcxx . . $ Breakpoint#::WATCHPOINT_MEMREADcxx . . $ Breakpoint#WATCHPOINT_MEMREAD. |
| 101 | || type == Breakpointcxx . . $ Breakpoint#::WATCHPOINT_MEMWRITEcxx . . $ Breakpoint#WATCHPOINT_MEMWRITE. ? "watch" : "pc") |
| 102 | .argcxx . . $ QString#arg(bc823072288cbbb5).(slot.pscxx . . $ Slot#ps. ? QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).slot.pscxx . . $ Slot#ps.) : "X"cxx . . $ QString#QString(85c52e162fed56f9).) |
| 103 | .argcxx . . $ QString#arg(bc823072288cbbb5).(slot.sscxx . . $ Slot#ss. ? QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).slot.sscxx . . $ Slot#ss.) : "X"cxx . . $ QString#QString(85c52e162fed56f9).) |
| 104 | .argcxx . . $ QString#arg(bc823072288cbbb5).(segment ? QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).segment) : "X"cxx . . $ QString#QString(85c52e162fed56f9).) |
| 105 | .argcxx . . $ QString#arg(bc823072288cbbb5).(condition.isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).() ? QStringcxx . . $ QString#QString(ced63f7c635d850d).() : QStringcxx . . $ QString#QString(85c52e162fed56f9).("&& ( %1 ) ").argcxx . . $ QString#arg(bc823072288cbbb5).(condition)); |
| 106 | } |
| 107 | return cmd.argcxx . . $ QString#arg(bc823072288cbbb5).(BreakpointSetCodescxx . . $ QString#QString(85c52e162fed56f9).[type]) |
| 108 | .argcxx . . $ QString#arg(bc823072288cbbb5).(addr) |
| 109 | .argcxx . . $ QString#arg(bc823072288cbbb5).(escapeXMLcxx . . $ escapeXML(f7f320d754b8fd09).(condcxx . . $ QString#QString(132dd6869045752b).)); |
| 110 | } |
| 111 | |
| 112 | QStringcxx . . $ QString# Breakpointscxx . . $ Breakpoints#::createRemoveCommandcxx . . $ Breakpoints#createRemoveCommand(fd988a2ab94d906b).(const QStringcxx . . $ QString#& id) |
| 113 | { |
| 114 | // find breakpoint |
| 115 | QStringcxx . . $ QString# cmdcxx . . $ QString#QString(85c52e162fed56f9).("debug remove_"); |
| 116 | if (id.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("bp"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 117 | cmd +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "bp "; |
| 118 | else if (id.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("wp"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 119 | cmd +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "watchpoint "; |
| 120 | else |
| 121 | cmd +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "condition "; |
| 122 | cmd +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). id; |
| 123 | return cmdcxx . . $ QString#QString(28715ad661ad3cec).; |
| 124 | } |
| 125 | |
| 126 | void Breakpointscxx . . $ Breakpoints#::setBreakpointscxx . . $ Breakpoints#setBreakpoints(3520e46b33348bf6).(const QStringcxx . . $ QString#& str) |
| 127 | { |
| 128 | breakpointscxx . . $ Breakpoints#breakpoints..clearcxx . . $ std/vector#clear(ced63f7c635d850d).(); |
| 129 | |
| 130 | QStringListcxx . . $ QStringList# bps = str.splitcxx . . $ QString#split(92030b8bf74e4227).('\n'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 131 | for (auto& bp : bps) { |
| 132 | if (bp.trimmedcxx . . $ QString#trimmed(dca2c5857e9adf82).().isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) continue; |
| 133 | |
| 134 | Breakpointcxx . . $ Breakpoint# newBp; |
| 135 | |
| 136 | // set id |
| 137 | int p = 0; |
| 138 | newBp.idcxx . . $ Breakpoint#id. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). getNextArgumentcxx . . $ getNextArgument(ad4691de8f106049).(bp, p); |
| 139 | |
| 140 | // determine type |
| 141 | if (bp.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("bp#"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 142 | newBp.typecxx . . $ Breakpoint#type. = Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT.; |
| 143 | } else if (bp.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("wp#"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 144 | // determine watchpoint type |
| 145 | static const char* const WpTypeNames[] = {"read_mem", "write_mem", "read_io", "write_io"}; |
| 146 | QStringcxx . . $ QString# wpType = getNextArgumentcxx . . $ getNextArgument(ad4691de8f106049).(bp, p); |
| 147 | if (auto it = rangescxx . . $ ranges/::findcxx . . $ ranges/find(9e10fecdb7a9cf11).(WpTypeNames, wpType); it != stdcxx . . $ std/::endcxx . . $ std/end(a8ca795d3c997dbe).(WpTypeNames)) { |
| 148 | newBp.typecxx . . $ Breakpoint#type. = static_cast<Breakpointcxx . . $ Breakpoint#::Typecxx . . $ Breakpoint#Type#>(stdcxx . . $ std/::distancecxx . . $ std/distance(4883b9d540cf40e9).(WpTypeNames, it) + 1); |
| 149 | } else { |
| 150 | continue; |
| 151 | } |
| 152 | } else if (bp.startsWithcxx . . $ QString#startsWith(8cce4688c16f48f3).("cond#"cxx . . $ QString#QString(85c52e162fed56f9).)) { |
| 153 | newBp.typecxx . . $ Breakpoint#type. = Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.; |
| 154 | } else { // unknown |
| 155 | continue; |
| 156 | } |
| 157 | |
| 158 | // get address |
| 159 | p++; |
| 160 | if (newBp.typecxx . . $ Breakpoint#type. != Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.) { |
| 161 | if (bp[cxx . . $ QString#`operator[]`(57436120916eb52c).p] ==cxx . . $ `operator==`(a468b2f18a3afe8). '{'cxx . . $ QChar#QChar(f349c77f591a7878).) { |
| 162 | p++; |
| 163 | auto s = getNextArgumentcxx . . $ getNextArgument(ad4691de8f106049).(bp, p); |
| 164 | auto start = stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint16_tcxx . . $ uint16_t#>(s); |
| 165 | if (!start) continue; |
| 166 | newBp.rangecxx . . $ Breakpoint#range. =cxx . . $ std/optional#`operator=`(4ce4dd0ee161fed). AddressRangecxx . . $ AddressRange#(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).start); |
| 167 | int q = bp.indexOfcxx . . $ QString#indexOf(75b556ba78e4903c).('}'cxx . . $ QChar#QChar(f349c77f591a7878)., p); |
| 168 | auto end = stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint16_tcxx . . $ uint16_t#>(bp.midcxx . . $ QString#mid(44b7563da18aea72).(p, q - p)); |
| 169 | newBp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).endcxx . . $ AddressRange#end. =cxx . . $ std/optional#`operator=`(ca4a31aee057e5da). end; |
| 170 | p = q + 1; |
| 171 | } else { |
| 172 | auto s = getNextArgumentcxx . . $ getNextArgument(ad4691de8f106049).(bp, p); |
| 173 | auto start = stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint16_tcxx . . $ uint16_t#>(s); |
| 174 | if (!start) continue; |
| 175 | newBp.rangecxx . . $ Breakpoint#range. =cxx . . $ std/optional#`operator=`(4ce4dd0ee161fed). AddressRangecxx . . $ AddressRange#(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).start); |
| 176 | } |
| 177 | } |
| 178 | // check and clip command (skip non-default commands) |
| 179 | int q = bp.lastIndexOfcxx . . $ QString#lastIndexOf(75b556ba78e4903c).('{'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 180 | if (bp.midcxx . . $ QString#mid(44b7563da18aea72).(q).simplifiedcxx . . $ QString#simplified(30b3b70527b1c61a).() !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "{debug break}") continue; |
| 181 | |
| 182 | newBp.conditioncxx . . $ Breakpoint#condition. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). unescapeXMLcxx . . $ unescapeXML(f7f320d754b8fd09).(bp.midcxx . . $ QString#mid(44b7563da18aea72).(p, q - p).trimmedcxx . . $ QString#trimmed(30b3b70527b1c61a).()); |
| 183 | parseConditioncxx . . $ Breakpoints#parseCondition(c0daef8b83b645df).(newBp); |
| 184 | insertBreakpointcxx . . $ Breakpoints#insertBreakpoint(c0daef8b83b645df).(newBp); |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | QStringcxx . . $ QString# Breakpointscxx . . $ Breakpoints#::mergeBreakpointscxx . . $ Breakpoints#mergeBreakpoints(fd988a2ab94d906b).(const QStringcxx . . $ QString#& str) |
| 189 | { |
| 190 | // copy breakpoints |
| 191 | auto oldBps = breakpointscxx . . $ std/vector#vector(a1201200cf0efa42).; |
| 192 | // parse new list |
| 193 | setBreakpointscxx . . $ Breakpoints#setBreakpoints(3520e46b33348bf6).(str); |
| 194 | // check old list against new one |
| 195 | QStringListcxx . . $ QStringList# mergeSetcxx . . $ QStringList#QStringList(ced63f7c635d850d).; |
| 196 | for (const auto& old : oldBps) { |
| 197 | auto newit = breakpointscxx . . $ Breakpoints#breakpoints..begincxx . . $ std/vector#begin(55a6de06420d4903).(); |
| 198 | for (/**/; newit !=cxx . . $ __gnu_cxx/`operator!=`(30ee64f2df4eef8b). breakpointscxx . . $ Breakpoints#breakpoints..endcxx . . $ std/vector#end(55a6de06420d4903).(); ++cxx . . $ __gnu_cxx/__normal_iterator#operator++(1613faa01bc3d014).newit) { |
| 199 | // check for identical data |
| 200 | if (old ==cxx . . $ Breakpoint#`operator==`(b5006d53b93f316). *cxx . . $ __gnu_cxx/__normal_iterator#`operator*`(f9c37c6e427d43d6).newit) break; |
| 201 | } |
| 202 | if (newit ==cxx . . $ __gnu_cxx/`operator==`(30ee64f2df4eef8b). breakpointscxx . . $ Breakpoints#breakpoints..endcxx . . $ std/vector#end(55a6de06420d4903).()) { |
| 203 | // create command to set this breakpoint again |
| 204 | QStringcxx . . $ QString# cmd = createSetCommandcxx . . $ Breakpoints#createSetCommand(c597a5e9ff31d2bf).(old.typecxx . . $ Breakpoint#type., old.rangecxx . . $ Breakpoint#range., old.slotcxx . . $ Breakpoint#slot., old.segmentcxx . . $ Breakpoint#segment., oldcxx . . $ QString#QString(132dd6869045752b)..conditioncxx . . $ Breakpoint#condition.); |
| 205 | mergeSet <<cxx . . $ QStringList#`operator<<`(85116071a693d053). cmd; |
| 206 | } |
| 207 | } |
| 208 | return mergeSet.joincxx . . $ QListSpecialMethods#join(5555d9024dcf93fb).(" ; "cxx . . $ QString#QString(85c52e162fed56f9).); |
| 209 | } |
| 210 | |
| 211 | void Breakpointscxx . . $ Breakpoints#::parseConditioncxx . . $ Breakpoints#parseCondition(c0daef8b83b645df).(Breakpointcxx . . $ Breakpoint#& bp) |
| 212 | { |
| 213 | bp.slotcxx . . $ Breakpoint#slot. =cxx . . $ Slot#`operator=`(344b60f683780dd1). {}; |
| 214 | bp.segmentcxx . . $ Breakpoint#segment. =cxx . . $ std/optional#`operator=`(1d7cf678b8ba1d4c). {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 215 | |
| 216 | // first split off braces |
| 217 | if (bp.conditioncxx . . $ Breakpoint#condition.[cxx . . $ QString#`operator[]`(57436120916eb52c).0] ==cxx . . $ `operator==`(a468b2f18a3afe8). '{'cxx . . $ QChar#QChar(f349c77f591a7878). && bp.conditioncxx . . $ Breakpoint#condition..endsWithcxx . . $ QString#endsWith(7cf081d1b6a1defd).('}'cxx . . $ QChar#QChar(f349c77f591a7878).)) { |
| 218 | if (bp.typecxx . . $ Breakpoint#type. != Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.) { |
| 219 | // check for slot argument |
| 220 | QRegExpcxx . . $ QRegExp# rxcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).(R"(^\{\s*\[\s*(pc|watch)_in_slot\s([X0123])\s([X0123])\s(X|\d{1,3})\s*\]\s*(&&\s*\((.+)\)\s*)?\}$)"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 221 | if (rx.indexIncxx . . $ QRegExp#indexIn(46f502bdfc4aeb33).(bp.conditioncxx . . $ Breakpoint#condition.) == 0) { |
| 222 | bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. =cxx . . $ std/optional#`operator=`(f9187f1fecdd4a0a). stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint8_tcxx . . $ uint8_t#>(rx.capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(2)); |
| 223 | bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. =cxx . . $ std/optional#`operator=`(f9187f1fecdd4a0a). stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint8_tcxx . . $ uint8_t#>(rx.capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(3)); |
| 224 | bp.segmentcxx . . $ Breakpoint#segment. =cxx . . $ std/optional#`operator=`(1d7cf678b8ba1d4c). stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint8_tcxx . . $ uint8_t#>(rx.capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(4)); |
| 225 | bp.conditioncxx . . $ Breakpoint#condition. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). rx.capcxx . . $ QRegExp#cap(ce915ed341d4a7f0).(6).trimmedcxx . . $ QString#trimmed(30b3b70527b1c61a).(); |
| 226 | } else { |
| 227 | bp.conditioncxx . . $ Breakpoint#condition..chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 228 | bp.conditioncxx . . $ Breakpoint#condition. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). bp.conditioncxx . . $ Breakpoint#condition..midcxx . . $ QString#mid(44b7563da18aea72).(1).trimmedcxx . . $ QString#trimmed(30b3b70527b1c61a).(); |
| 229 | } |
| 230 | } else { |
| 231 | bp.conditioncxx . . $ Breakpoint#condition..chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); |
| 232 | bp.conditioncxx . . $ Breakpoint#condition. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). bp.conditioncxx . . $ Breakpoint#condition..midcxx . . $ QString#mid(44b7563da18aea72).(1).trimmedcxx . . $ QString#trimmed(30b3b70527b1c61a).(); |
| 233 | } |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | bool Breakpointscxx . . $ Breakpoints#::inCurrentSlotcxx . . $ Breakpoints#inCurrentSlot(189cf40d1fe71fa0).(const Breakpointcxx . . $ Breakpoint#& bp) |
| 238 | { |
| 239 | if (!memLayoutcxx . . $ Breakpoints#memLayout.) return true; |
| 240 | if (bp.typecxx . . $ Breakpoint#type. == Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.) return true; |
| 241 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(bp.range); |
| 242 | |
| 243 | int page = (bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).startcxx . . $ AddressRange#start. & 0xC000) >> 14; |
| 244 | if (!bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps.) return true; |
| 245 | if (*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. == memLayoutcxx . . $ Breakpoints#memLayout.->primarySlotcxx . . $ MemoryLayout#primarySlot.[page]) { |
| 246 | if (memLayoutcxx . . $ Breakpoints#memLayout.->isSubslottedcxx . . $ MemoryLayout#isSubslotted.[*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. & 3]) { |
| 247 | if (!bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss.) return true; |
| 248 | if (*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. == memLayoutcxx . . $ Breakpoints#memLayout.->secondarySlotcxx . . $ MemoryLayout#secondarySlot.[page]) { |
| 249 | if (memLayoutcxx . . $ Breakpoints#memLayout.->mapperSizecxx . . $ MemoryLayout#mapperSize.[*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. & 3][*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. & 3] > 0) { |
| 250 | if (!bp.segmentcxx . . $ Breakpoint#segment. || *cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.segmentcxx . . $ Breakpoint#segment. == memLayoutcxx . . $ Breakpoints#memLayout.->mapperSegmentcxx . . $ MemoryLayout#mapperSegment.[page]) { |
| 251 | return true; |
| 252 | } |
| 253 | } else { |
| 254 | return true; |
| 255 | } |
| 256 | } |
| 257 | } else if (bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss.) { |
| 258 | return false; |
| 259 | } else if (memLayoutcxx . . $ Breakpoints#memLayout.->mapperSizecxx . . $ MemoryLayout#mapperSize.[*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. & 3][0] > 0) { |
| 260 | if (!bp.segmentcxx . . $ Breakpoint#segment. || *cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.segmentcxx . . $ Breakpoint#segment. == memLayoutcxx . . $ Breakpoints#memLayout.->mapperSegmentcxx . . $ MemoryLayout#mapperSegment.[page]) { |
| 261 | return true; |
| 262 | } |
| 263 | } else { |
| 264 | return true; |
| 265 | } |
| 266 | } |
| 267 | return false; |
| 268 | } |
| 269 | |
| 270 | void Breakpointscxx . . $ Breakpoints#::insertBreakpointcxx . . $ Breakpoints#insertBreakpoint(c0daef8b83b645df).(Breakpointcxx . . $ Breakpoint#& bp) |
| 271 | { |
| 272 | auto it = rangescxx . . $ ranges/::upper_boundcxx . . $ ranges/upper_bound(c5b3648797bcaf4b).(breakpointscxx . . $ Breakpoints#breakpoints., bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).startcxx . . $ AddressRange#start., {}, [](auto& bp) { return bp.range ? bp.range->start : -1; }); |
| 273 | breakpointscxx . . $ Breakpoints#breakpoints..insertcxx . . $ std/vector#insert(e54735f7c99f2c9d).(itcxx . . $ __gnu_cxx/__normal_iterator#__normal_iterator(459a7e7b9fbe7640)., bp); |
| 274 | } |
| 275 | |
| 276 | int Breakpointscxx . . $ Breakpoints#::breakpointCountcxx . . $ Breakpoints#breakpointCount(b126dc7c1de90089).() |
| 277 | { |
| 278 | return breakpointscxx . . $ Breakpoints#breakpoints..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).(); |
| 279 | } |
| 280 | |
| 281 | bool Breakpointscxx . . $ Breakpoints#::isBreakpointcxx . . $ Breakpoints#isBreakpoint(921e847d993b8ffc).(uint16_tcxx . . $ uint16_t# addr, QStringcxx . . $ QString#* id, bool checkSlot) |
| 282 | { |
| 283 | if (stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint16_tcxx . . $ uint16_t#> index = findBreakpointcxx . . $ Breakpoints#findBreakpoint(68cee70113e4f788).(addr)) { |
| 284 | for (auto i = *cxx . . $ std/optional#`operator*`(47e1a15210ec6306).index; i < breakpointCountcxx . . $ Breakpoints#breakpointCount(b126dc7c1de90089).() && breakpointscxx . . $ Breakpoints#breakpoints.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i].rangecxx . . $ Breakpoint#range. && breakpointscxx . . $ Breakpoints#breakpoints.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i].rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).startcxx . . $ AddressRange#start. == addr; i++) { |
| 285 | const auto& bp = breakpointscxx . . $ Breakpoints#breakpoints.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).i]; |
| 286 | if ((!checkSlot || inCurrentSlotcxx . . $ Breakpoints#inCurrentSlot(189cf40d1fe71fa0).(bp)) && bp.typecxx . . $ Breakpoint#type. == Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT.) { |
| 287 | if (id) *id =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). bp.idcxx . . $ Breakpoint#id.; |
| 288 | return true; |
| 289 | } |
| 290 | } |
| 291 | } |
| 292 | return false; |
| 293 | } |
| 294 | |
| 295 | bool Breakpointscxx . . $ Breakpoints#::isWatchpointcxx . . $ Breakpoints#isWatchpoint(921e847d993b8ffc).(quint16cxx . . $ quint16# addr, QStringcxx . . $ QString#* id, bool checkSlot) |
| 296 | { |
| 297 | for (const auto& bp : breakpointscxx . . $ Breakpoints#breakpoints.) { |
| 298 | if (bp.typecxx . . $ Breakpoint#type. == Breakpointcxx . . $ Breakpoint#::WATCHPOINT_MEMREADcxx . . $ Breakpoint#WATCHPOINT_MEMREAD. || bp.typecxx . . $ Breakpoint#type. == Breakpointcxx . . $ Breakpoint#::WATCHPOINT_MEMWRITEcxx . . $ Breakpoint#WATCHPOINT_MEMWRITE.) { |
| 299 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(bp.range); |
| 300 | if (bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).containscxx . . $ AddressRange#contains(897f8267d825a106).(addr)) { |
| 301 | if (!checkSlot || inCurrentSlotcxx . . $ Breakpoints#inCurrentSlot(189cf40d1fe71fa0).(bp)) { |
| 302 | if (id) *id =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). bp.idcxx . . $ Breakpoint#id.; |
| 303 | return true; |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | } |
| 308 | return false; |
| 309 | } |
| 310 | |
| 311 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint16_tcxx . . $ uint16_t#> |
| 312 | Breakpointscxx . . $ Breakpoints#::findBreakpointcxx . . $ Breakpoints#findBreakpoint(68cee70113e4f788).(uint16_tcxx . . $ uint16_t# addr) |
| 313 | { |
| 314 | if (auto i = rangescxx . . $ ranges/::lower_boundcxx . . $ ranges/lower_bound(c5b3648797bcaf4b).(breakpointscxx . . $ Breakpoints#breakpoints., addr, |
| 315 | [](auto& bp, auto addr) { return bp.range ? bp.range->start <cxx . . $ `operator<`(9d1caf642710d3b0). addr : true; }); |
| 316 | i !=cxx . . $ __gnu_cxx/`operator!=`(30ee64f2df4eef8b). breakpointscxx . . $ Breakpoints#breakpoints..endcxx . . $ std/vector#end(55a6de06420d4903).() && i->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(65c2ec7035a77d3e).rangecxx . . $ Breakpoint#range. && i->cxx . . $ __gnu_cxx/__normal_iterator#`operator->`(65c2ec7035a77d3e).rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).startcxx . . $ AddressRange#start. == addr) { |
| 317 | return stdcxx . . $ std/optional#optional(e3f0d6382bd52f24).::distancecxx . . $ std/distance(4883b9d540cf40e9).(breakpointscxx . . $ Breakpoints#breakpoints..begincxx . . $ std/vector#begin(55a6de06420d4903).(), i); |
| 318 | } |
| 319 | return {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 320 | } |
| 321 | |
| 322 | const Breakpointcxx . . $ Breakpoint#& Breakpointscxx . . $ Breakpoints#::getBreakpointcxx . . $ Breakpoints#getBreakpoint(54c1ece35cd38175).(int index) |
| 323 | { |
| 324 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!((long unsigned) index < breakpoints.size()); |
| 325 | return breakpointscxx . . $ Breakpoints#breakpoints.[cxx . . $ std/vector#`operator[]`(81207c53da4b73ce).index]; |
| 326 | } |
| 327 | |
| 328 | void Breakpointscxx . . $ Breakpoints#::saveBreakpointscxx . . $ Breakpoints#saveBreakpoints(b6139443264d70c1).(QXmlStreamWritercxx . . $ QXmlStreamWriter#& xml) |
| 329 | { |
| 330 | // write symbols |
| 331 | for (const auto& bp : breakpointscxx . . $ Breakpoints#breakpoints.) { |
| 332 | xml.writeStartElementcxx . . $ QXmlStreamWriter#writeStartElement(3520e46b33348bf6).("Breakpoint"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 333 | |
| 334 | // type |
| 335 | xml.writeAttributecxx . . $ QXmlStreamWriter#writeAttribute(c1427772cd1877b0).("type"cxx . . $ QString#QString(85c52e162fed56f9)., TypeNamescxx . . $ QString#QString(85c52e162fed56f9).[bp.typecxx . . $ Breakpoint#type.]); |
| 336 | |
| 337 | // id |
| 338 | xml.writeAttributecxx . . $ QXmlStreamWriter#writeAttribute(c1427772cd1877b0).("id"cxx . . $ QString#QString(85c52e162fed56f9)., bp.idcxx . . $ Breakpoint#id.); |
| 339 | |
| 340 | // slot/segment |
| 341 | xml.writeAttributecxx . . $ QXmlStreamWriter#writeAttribute(c1427772cd1877b0).("primarySlot"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#QString(f2c90172ce699d92).(bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. ? QCharcxx . . $ QChar#('0' + *cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps.) : '*'cxx . . $ QChar#QChar(f349c77f591a7878).)); |
| 342 | xml.writeAttributecxx . . $ QXmlStreamWriter#writeAttribute(c1427772cd1877b0).("secondarySlot"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#QString(f2c90172ce699d92).(bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. ? QCharcxx . . $ QChar#('0' + *cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss.) : '*'cxx . . $ QChar#QChar(f349c77f591a7878).)); |
| 343 | xml.writeAttributecxx . . $ QXmlStreamWriter#writeAttribute(c1427772cd1877b0).("segment"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.segmentcxx . . $ Breakpoint#segment.)); |
| 344 | |
| 345 | // address |
| 346 | if (bp.typecxx . . $ Breakpoint#type. == Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT.) { |
| 347 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(bp.range); |
| 348 | xml.writeTextElementcxx . . $ QXmlStreamWriter#writeTextElement(c1427772cd1877b0).("address"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).startcxx . . $ AddressRange#start.)); |
| 349 | } else if (bp.typecxx . . $ Breakpoint#type. != Breakpointcxx . . $ Breakpoint#::CONDITIONcxx . . $ Breakpoint#CONDITION.) { |
| 350 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(bp.range); |
| 351 | xml.writeTextElementcxx . . $ QXmlStreamWriter#writeTextElement(c1427772cd1877b0).("regionStart"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).startcxx . . $ AddressRange#start.)); |
| 352 | if (bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).endcxx . . $ AddressRange#end.) xml.writeTextElementcxx . . $ QXmlStreamWriter#writeTextElement(c1427772cd1877b0).("regionEnd"cxx . . $ QString#QString(85c52e162fed56f9)., QStringcxx . . $ QString#::numbercxx . . $ QString#number(f4fd9db251ca774b).(*cxx . . $ std/optional#`operator*`(a104ceb4a760916d).bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(8e614c7de0b1573e).endcxx . . $ AddressRange#end.)); |
| 353 | } |
| 354 | |
| 355 | // condition |
| 356 | xml.writeTextElementcxx . . $ QXmlStreamWriter#writeTextElement(c1427772cd1877b0).("condition"cxx . . $ QString#QString(85c52e162fed56f9)., bp.conditioncxx . . $ Breakpoint#condition.); |
| 357 | |
| 358 | // complete |
| 359 | xml.writeEndElementcxx . . $ QXmlStreamWriter#writeEndElement(49f6e7a06ebc5aa8).(); |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | void Breakpointscxx . . $ Breakpoints#::loadBreakpointscxx . . $ Breakpoints#loadBreakpoints(e225a1e01f50193c).(QXmlStreamReadercxx . . $ QXmlStreamReader#& xml) |
| 364 | { |
| 365 | Breakpointcxx . . $ Breakpoint# bp; |
| 366 | while (!xml.atEndcxx . . $ QXmlStreamReader#atEnd(50ce9a9e25b4a850).()) { |
| 367 | xml.readNextcxx . . $ QXmlStreamReader#readNext(b7ff4e19d2a802cc).(); |
| 368 | // exit if closing of main tag |
| 369 | if (xml.isEndElementcxx . . $ QXmlStreamReader#isEndElement(50ce9a9e25b4a850).()) { |
| 370 | if (xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "Breakpoints") { |
| 371 | break; |
| 372 | } else if (xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "Breakpoint") { |
| 373 | insertBreakpointcxx . . $ Breakpoints#insertBreakpoint(c0daef8b83b645df).(bp); |
| 374 | } |
| 375 | } |
| 376 | // begin tag |
| 377 | if (xml.isStartElementcxx . . $ QXmlStreamReader#isStartElement(50ce9a9e25b4a850).()) { |
| 378 | if (xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "Breakpoint") { |
| 379 | // set type |
| 380 | QStringcxx . . $ QString# label = xml.attributescxx . . $ QXmlStreamReader#attributes(67475bfd56333fa4).().valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("type"cxx . . $ QString#QString(85c52e162fed56f9).).toStringcxx . . $ QStringRef#toString(6ef7b6c27b00b43d).().toLowercxx . . $ QString#toLower(30b3b70527b1c61a).(); |
| 381 | if (auto it = rangescxx . . $ ranges/::findcxx . . $ ranges/find(9e10fecdb7a9cf11).(TypeNamescxx . . $ TypeNames., label); it != stdcxx . . $ std/::endcxx . . $ std/end(a8ca795d3c997dbe).(TypeNamescxx . . $ TypeNames.)) { |
| 382 | bp.typecxx . . $ Breakpoint#type. = static_cast<Breakpointcxx . . $ Breakpoint#::Typecxx . . $ Breakpoint#Type#>(stdcxx . . $ std/::distancecxx . . $ std/distance(4883b9d540cf40e9).(TypeNamescxx . . $ TypeNames., it)); |
| 383 | } else { |
| 384 | bp.typecxx . . $ Breakpoint#type. = Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT.; |
| 385 | } |
| 386 | |
| 387 | // id |
| 388 | bp.idcxx . . $ Breakpoint#id. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). xml.attributescxx . . $ QXmlStreamReader#attributes(67475bfd56333fa4).().valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("id"cxx . . $ QString#QString(85c52e162fed56f9).).toStringcxx . . $ QStringRef#toString(6ef7b6c27b00b43d).(); |
| 389 | |
| 390 | // slot/segment |
| 391 | char c = xml.attributescxx . . $ QXmlStreamReader#attributes(67475bfd56333fa4).().valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("primarySlot"cxx . . $ QString#QString(85c52e162fed56f9).).atcxx . . $ QStringRef#at(13af7ae5a875439e).(0).toLatin1cxx . . $ QChar#toLatin1(a33b425be6aff8f0).(); |
| 392 | bp.slotcxx . . $ Breakpoint#slot..pscxx . . $ Slot#ps. =cxx . . $ std/optional#`operator=`(f9187f1fecdd4a0a). make_ifcxx . . $ make_if(e25f002ff5d2f3ed).(c >= '0' && c <= '3', c - '0'); |
| 393 | c = xml.attributescxx . . $ QXmlStreamReader#attributes(67475bfd56333fa4).().valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("secondarySlot"cxx . . $ QString#QString(85c52e162fed56f9).).atcxx . . $ QStringRef#at(13af7ae5a875439e).(0).toLatin1cxx . . $ QChar#toLatin1(a33b425be6aff8f0).(); |
| 394 | bp.slotcxx . . $ Breakpoint#slot..sscxx . . $ Slot#ss. =cxx . . $ std/optional#`operator=`(f9187f1fecdd4a0a). make_ifcxx . . $ make_if(e25f002ff5d2f3ed).(c >= '0' && c <= '3', c - '0'); |
| 395 | bp.segmentcxx . . $ Breakpoint#segment. =cxx . . $ std/optional#`operator=`(1d7cf678b8ba1d4c). stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint8_tcxx . . $ uint8_t#>(xml.attributescxx . . $ QXmlStreamReader#attributes(67475bfd56333fa4).().valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("segment"cxx . . $ QString#QString(85c52e162fed56f9).) |
| 396 | .toStringcxx . . $ QStringRef#toString(6ef7b6c27b00b43d).()); |
| 397 | |
| 398 | } else if (xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "address" || xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "regionStart") { |
| 399 | // read symbol name |
| 400 | auto s = xml.readElementTextcxx . . $ QXmlStreamReader#readElementText(626b7e7cde3661e7).(); |
| 401 | auto start = stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint16_tcxx . . $ uint16_t#>(s); |
| 402 | if (!start) continue; |
| 403 | bp.rangecxx . . $ Breakpoint#range. =cxx . . $ std/optional#`operator=`(4ce4dd0ee161fed). AddressRangecxx . . $ AddressRange#(*cxx . . $ std/optional#`operator*`(47e1a15210ec6306).start); |
| 404 | if (bp.typecxx . . $ Breakpoint#type. == Breakpointcxx . . $ Breakpoint#::BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT.) bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).endcxx . . $ AddressRange#end. =cxx . . $ std/optional#`operator=`(54ce5e60d9a2efe2). {cxx . . $ std/optional#optional(ced63f7c635d850d).}; |
| 405 | } else if (xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "regionEnd") { |
| 406 | // read symbol name |
| 407 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(bp.range); |
| 408 | bp.rangecxx . . $ Breakpoint#range.->cxx . . $ std/optional#`operator->`(258ee1c9e0a18a5c).endcxx . . $ AddressRange#end. =cxx . . $ std/optional#`operator=`(54ce5e60d9a2efe2). stringToValuecxx . . $ stringToValue(e8c2a6ba39be27fd).<uint16_tcxx . . $ uint16_t#>(xml.readElementTextcxx . . $ QXmlStreamReader#readElementText(626b7e7cde3661e7).()); |
| 409 | } else if (xml.namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).() ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "condition") { |
| 410 | bp.conditioncxx . . $ Breakpoint#condition. =cxx . . $ QString#`operator=`(4f35bf974e7f8568). xml.readElementTextcxx . . $ QXmlStreamReader#readElementText(626b7e7cde3661e7).().trimmedcxx . . $ QString#trimmed(30b3b70527b1c61a).(); |
| 411 | } |
| 412 | } |
| 413 | } |
| 414 | } |