Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for selected_thread (0.17 sec)

  1. src/runtime/runtime-gdb.py

    		return None, None
    	for thr in gdb.selected_inferior().threads():
    		if thr.ptid[1] == m['procid']:
    			break
    	else:
    		return None, None
    	# Get scheduler state from the G's OS thread state.
    	curthr = gdb.selected_thread()
    	try:
    		thr.switch()
    		pc = gdb.parse_and_eval('$pc')
    		sp = gdb.parse_and_eval('$sp')
    	finally:
    		curthr.switch()
    	return pc.cast(vp), sp.cast(vp)
    
    
    class GoroutineCmd(gdb.Command):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top