Changeset df6cc9d for tools/gdb/utils-gdb.py
- Timestamp:
- Oct 19, 2022, 4:43:26 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 1a45263
- Parents:
- 9cd5bd2 (diff), 135143ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gdb/utils-gdb.py
r9cd5bd2 rdf6cc9d 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['_X4linkS5dlink_S9processor__1']['_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 … … 346 355 )) 347 356 tls = tls_for_proc( processor ) 348 thrd = t ls['_X11this_threadVPS7thread$_1']357 thrd = thread_for_proc( processor ) 349 358 if thrd != 0x0: 350 359 tname = '{} {}'.format(thrd['self_cor']['name'].string(), str(thrd))
Note:
See TracChangeset
for help on using the changeset viewer.