Changeset 160f1aa
- Timestamp:
- Sep 23, 2022, 3:41:22 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 996c8ed
- Parents:
- 43db35e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r43db35e r160f1aa 136 136 137 137 // Link lists fields 138 inline dlink(processor);138 dlink(processor) link; 139 139 140 140 // special init fields … … 158 158 #endif 159 159 }; 160 P9_EMBEDDED( processor, dlink(processor) ) 160 // P9_EMBEDDED( processor, dlink(processor) ) 161 static inline tytagref( dlink(processor), dlink(processor) ) ?`inner( processor & this ) { 162 dlink(processor) & b = this.link; 163 tytagref( dlink(processor), dlink(processor) ) result = { b }; 164 return result; 165 } 161 166 162 167 void ?{}(processor & this, const char name[], struct cluster & cltr); -
tools/gdb/utils-gdb.py
r43db35e r160f1aa 159 159 160 160 # if we already saw the root, then go forward 161 my_next = self.curr['_ _anonymous_object2225']['_X4nextPY13__tE_generic__1']161 my_next = self.curr['_X4link']['_X4nextPY13__tE_generic__1'] 162 162 self.curr = my_next.cast(cfa_t.processor_ptr) 163 163 … … 168 168 return self.curr 169 169 170 def start_from_dlist(dlist): 171 fs = dlist.type.fields() 172 if len(fs) != 1: 173 print("Error, can't understand dlist type for", dlist, dlist.name, dlist.type) 174 return None 175 176 return dlist[fs[0]] 177 170 178 def proc_list(cluster): 171 179 """ … … 174 182 cfa_t = get_cfa_types() 175 183 proclist = cluster['_X5procsS19__cluster_proc_list_1'] 176 idle = proclist['_X5idlesS5dlist_S9processorS5dlink_S9processor___1']['__anonymous_object2167']['_X4nextPY13__tE_generic__1'] 177 active = proclist['_X7activesS5dlist_S9processorS5dlink_S9processor___1']['__anonymous_object2167']['_X4nextPY13__tE_generic__1'] 184 185 idle = start_from_dlist(proclist['_X5idlesS5dlist_S9processorS5dlink_S9processor___1']) 186 active = start_from_dlist(proclist['_X7activesS5dlist_S9processorS5dlink_S9processor___1']) 178 187 return ProcIter(active.cast(cfa_t.processor_ptr)), ProcIter(idle.cast(cfa_t.processor_ptr)) 179 188
Note: See TracChangeset
for help on using the changeset viewer.