Debian Codegraph @

src/DebuggerData.h

raw symbols SCIP
1 #cxx . . $ `<file>/src/DebuggerData.h`/ifndef DEBUGGERDATA_H
2 #define DEBUGGERDATA_Hcxx . . $ `src/DebuggerData.h:2:9`!
3
4 #include <QString>
5 #include <QXmlStreamReader>
6 #include <QXmlStreamWriter>
7 #include <optional>
8 #include <vector>
9
10 struct MemoryLayoutcxx . . $ MemoryLayout#
11 {
12 MemoryLayoutcxx . . $ MemoryLayout#MemoryLayout(49f6e7a06ebc5aa8).();
13
14 int primarySlotcxx . . $ MemoryLayout#primarySlot.[4];
15 int secondarySlotcxx . . $ MemoryLayout#secondarySlot.[4];
16 int mapperSegmentcxx . . $ MemoryLayout#mapperSegment.[4];
17 int romBlockcxx . . $ MemoryLayout#romBlock.[8];
18
19 bool isSubslottedcxx . . $ MemoryLayout#isSubslotted.[4];
20 int mapperSizecxx . . $ MemoryLayout#mapperSize.[4][4];
21 };
22
23 struct AddressRangecxx . . $ AddressRange# {
24 explicit AddressRangecxx . . $ AddressRange#AddressRange(ed53e3bbd3fa2f69).(uint16_tcxx . . $ uint16_t# addr) : startcxx . . $ AddressRange#start.(addr) {}
25 AddressRangecxx . . $ AddressRange#AddressRange(6cfffdd62fe0d6da).(uint16_tcxx . . $ uint16_t# b, stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint16_tcxx . . $ uint16_t#> e) : startcxx . . $ AddressRange#start.(b), endcxx . . $ AddressRange#end.(e) {}
26
27 uint16_tcxx . . $ uint16_t# startcxx . . $ AddressRange#start.; // a single address when end is not used
28 stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint16_tcxx . . $ uint16_t#> endcxx . . $ AddressRange#end.; // end point is inclusive
29
30 [[nodiscard]] bool containscxx . . $ AddressRange#contains(897f8267d825a106).(uint16_tcxx . . $ uint16_t# addr) const {
31 if (!endcxx . . $ AddressRange#end.) return startcxx . . $ AddressRange#start. == addr;
32 return startcxx . . $ AddressRange#start. <= addr && addr <= *cxx . . $ std/optional#`operator*`(a104ceb4a760916d).endcxx . . $ AddressRange#end.;
33 }
34
35 constexpr bool operatorcxx . . $ AddressRange#`operator==`(3794b266c782c33).==(const AddressRangecxx . . $ AddressRange# &other) const
36 {
37 if (startcxx . . $ AddressRange#start. != other.startcxx . . $ AddressRange#start.) return false;
38 if (endcxx . . $ AddressRange#end. !=cxx . . $ std/`operator!=`(bfff6fe36055af71). other.endcxx . . $ AddressRange#end.) return false;
39 return true;
40 }
41 };
42
43 struct Slotcxx . . $ Slot# {
44 stdcxx . . $ std/::optionalcxx . . $ std/optional#<int8_t> pscxx . . $ Slot#ps.; // primary slot, always 0..3 or empty if it is a mask
45 stdcxx . . $ std/::optionalcxx . . $ std/optional#<int8_t> sscxx . . $ Slot#ss.; // secundary slot, 0..3 or empty when the primary slot is not expanded
46 };
47
48 struct Breakpointcxx . . $ Breakpoint# {
49 enum Typecxx . . $ Breakpoint#Type# { BREAKPOINTcxx . . $ Breakpoint#BREAKPOINT., WATCHPOINT_MEMREADcxx . . $ Breakpoint#WATCHPOINT_MEMREAD., WATCHPOINT_MEMWRITEcxx . . $ Breakpoint#WATCHPOINT_MEMWRITE.,
50 WATCHPOINT_IOREADcxx . . $ Breakpoint#WATCHPOINT_IOREAD., WATCHPOINT_IOWRITEcxx . . $ Breakpoint#WATCHPOINT_IOWRITE., CONDITIONcxx . . $ Breakpoint#CONDITION. };
51 Typecxx . . $ Breakpoint#Type# typecxx . . $ Breakpoint#type.;
52 QStringcxx . . $ QString# idcxx . . $ Breakpoint#id.;
53 stdcxx . . $ std/::optionalcxx . . $ std/optional#<AddressRangecxx . . $ AddressRange#> rangecxx . . $ Breakpoint#range.;
54 // GUI specific condition variables
55 Slotcxx . . $ Slot# slotcxx . . $ Breakpoint#slot.;
56 stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint8_tcxx . . $ uint8_t#> segmentcxx . . $ Breakpoint#segment.;
57 // general condition
58 QStringcxx . . $ QString# conditioncxx . . $ Breakpoint#condition.;
59 // compare content
60 bool operatorcxx . . $ Breakpoint#`operator==`(b5006d53b93f316).==(const Breakpointcxx . . $ Breakpoint# &bp) const;
61
62 void setAddresscxx . . $ Breakpoint#setAddress(6cfffdd62fe0d6da).(uint16_tcxx . . $ uint16_t# start, stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint16_tcxx . . $ uint16_t#> rangeEnd =cxx . . $ std/optional#optional(ced63f7c635d850d). {}) {
63 rangecxx . . $ Breakpoint#range. =cxx . . $ std/optional#`operator=`(4ce4dd0ee161fed). AddressRangecxx . . $ AddressRange#AddressRange(6cfffdd62fe0d6da).(start, rangeEnd);
64 }
65 };
66
67 class Breakpointscxx . . $ Breakpoints#
68 {
69 public:
70 void clearcxx . . $ Breakpoints#clear(49f6e7a06ebc5aa8).();
71
72 void setMemoryLayoutcxx . . $ Breakpoints#setMemoryLayout(64b27f19295a45ce).(MemoryLayoutcxx . . $ MemoryLayout#* ml);
73 void setBreakpointscxx . . $ Breakpoints#setBreakpoints(3520e46b33348bf6).(const QStringcxx . . $ QString#& str);
74 QStringcxx . . $ QString# mergeBreakpointscxx . . $ Breakpoints#mergeBreakpoints(fd988a2ab94d906b).(const QStringcxx . . $ QString#& str);
75 int breakpointCountcxx . . $ Breakpoints#breakpointCount(b126dc7c1de90089).();
76 bool isBreakpointcxx . . $ Breakpoints#isBreakpoint(921e847d993b8ffc).(uint16_tcxx . . $ uint16_t# addr, QStringcxx . . $ QString# *id = nullptr, bool checkSlot = true);
77 bool isWatchpointcxx . . $ Breakpoints#isWatchpoint(921e847d993b8ffc).(uint16_tcxx . . $ uint16_t# addr, QStringcxx . . $ QString# *id = nullptr, bool checkSlot = true);
78
79 /* xml session file functions */
80 void saveBreakpointscxx . . $ Breakpoints#saveBreakpoints(b6139443264d70c1).(QXmlStreamWritercxx . . $ QXmlStreamWriter#& xml);
81 void loadBreakpointscxx . . $ Breakpoints#loadBreakpoints(e225a1e01f50193c).(QXmlStreamReadercxx . . $ QXmlStreamReader#& xml);
82
83 stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint16_tcxx . . $ uint16_t#> findBreakpointcxx . . $ Breakpoints#findBreakpoint(68cee70113e4f788).(uint16_tcxx . . $ uint16_t# addr);
84
85 static QStringcxx . . $ QString# createSetCommandcxx . . $ Breakpoints#createSetCommand(c597a5e9ff31d2bf).(Breakpointcxx . . $ Breakpoint#::Typecxx . . $ Breakpoint#Type# type, stdcxx . . $ std/::optionalcxx . . $ std/optional#<AddressRangecxx . . $ AddressRange#> range =cxx . . $ std/optional#optional(ced63f7c635d850d). {},
86 Slotcxx . . $ Slot# slot = {}, stdcxx . . $ std/::optionalcxx . . $ std/optional#<uint8_tcxx . . $ uint8_t#> segment =cxx . . $ std/optional#optional(ced63f7c635d850d). {},
87 QStringcxx . . $ QString# condition =cxx . . $ QString#QString(ced63f7c635d850d). {});
88 static QStringcxx . . $ QString# createRemoveCommandcxx . . $ Breakpoints#createRemoveCommand(fd988a2ab94d906b).(const QStringcxx . . $ QString#& id);
89
90 const Breakpointcxx . . $ Breakpoint#& getBreakpointcxx . . $ Breakpoints#getBreakpoint(54c1ece35cd38175).(int index);
91 bool inCurrentSlotcxx . . $ Breakpoints#inCurrentSlot(189cf40d1fe71fa0).(const Breakpointcxx . . $ Breakpoint#& bp);
92 private:
93
94 stdcxx . . $ std/::vectorcxx . . $ std/vector#<Breakpointcxx . . $ Breakpoint#> breakpointscxx . . $ Breakpoints#breakpoints.;
95 MemoryLayoutcxx . . $ MemoryLayout#* memLayoutcxx . . $ Breakpoints#memLayout. = nullptr;
96
97 void parseConditioncxx . . $ Breakpoints#parseCondition(c0daef8b83b645df).(Breakpointcxx . . $ Breakpoint#& bp);
98 void insertBreakpointcxx . . $ Breakpoints#insertBreakpoint(c0daef8b83b645df).(Breakpointcxx . . $ Breakpoint#& bp);
99 };
100
101 #endif // DEBUGGERDATA_H