Originally posted by Gary Atkinson
Originally posted by Robert Milfajt
global HciConnName
####################################################################### get_pname - get the process name that contains the specified thread## Args: thread = the thread name## Returns: process = the process that contains the specified thd#proc get_pname { thread } { set conndata [exec hciconndump $thread] set lines [split $conndata n] set thdinfo [lindex $lines 3] set pname [lindex $thdinfo 0] if {"$pname" == ""} {error "Thread not found: $thread"} return $pname}
set processName [file tail [pwd]]
Originally posted by Chris Williams
proc getProcessForThread {threadName} { set pname {} set netconfig [file join $HciSiteDir NetConfig] nfLoad $netconfig processData hostData xlateData NetFilePrologue set kl [lindex [array get hostData [string tolower $threadName]] 1] keylget kl PROCESSNAME pname return $pname}
Originally posted by Bob Richardson