| | 1977 | | switch (t) { |
| | 1978 | | |
| | 1979 | | case DM_SLCONF_EP:
|
| | 1980 | | if (pvmdebmask & (PDMTASK|PDMSTARTUP)) {
|
| | 1981 | | pvmlogprintf("dm_slconf() ep<%s>\n", s); |
| | 1982 | | } |
| | 1983 | | epaths = colonsep(varsub(s)); |
| | 1984 | | PVM_FREE(s);
|
| | 1985 | | break; |
| | 1986 | | |
| | 1987 | | case DM_SLCONF_BP:
|
| | 1988 | | if (pvmdebmask & PDMSTARTUP) {
|
| | 1989 | | pvmlogprintf("dm_slconf() bp<%s>\n", s); |
| | 1990 | | } |
| | 1991 | | debugger = varsub(s); |
| | 1992 | | PVM_FREE(s);
|
| | 1993 | | break; |
| | 1994 | | |
| | 1995 | | case DM_SLCONF_WD:
|
| | 1996 | | if (pvmdebmask & (PDMTASK|PDMSTARTUP)) {
|
| | 1997 | | pvmlogprintf("dm_slconf() wd<%s>\n", s); |
| | 1998 | | } |
| | 1999 | | s2 = varsub(s); |
| | 2000 | | if (chdir(s2) == -1) |
| | 2001 | | pvmlogperror(s2); |
| | 2002 | | PVM_FREE(s);
|
| | 2003 | | PVM_FREE(s2);
|
| | 2004 | | break; |
| | 2005 | | |
| | 2006 | | case DM_SLCONF_SCHED:
|
| | 2007 | | if (pvmdebmask & (PDMSCHED|PDMSTARTUP)) {
|
| | 2008 | | pvmlogprintf("dm_slconf() sched<t%x>\n", pvmschedtid); |
| | 2009 | | } |
| | 2010 | | pvmschedtid = pvmxtoi(s); |
| | 2011 | | break; |
| | 2012 | | |
| | 2013 | | case DM_SLCONF_TRACE: {
|
| | 2014 | | Pvmtmask tmask; |
| | 2015 | | int ttid, tctx, ttag, otid, octx, otag, tbuf, topt; |
| | 2016 | | if (pvmdebmask & (PDMTRACE|PDMSTARTUP)) {
|
| | 2017 | | pvmlogprintf("dm_slconf() tracer<t%x>\n", |
| | 2018 | | pvmtracer.trctid); |
| | 2019 | | } |
| | 2020 | | if (sscanf(s, "%x %d %d %x %d %d %d %d %s", |
| | 2021 | | &ttid, &tctx, &ttag, &otid, &octx, &otag, |
| s <= 4095 | 2022 | | &tbuf, &topt, tmask) != 9) { |
| | 2023 | | pvmlogprintf("dm_slconf() bogus string<%s>\n", s); |
| | 2024 | | } |
| | 2025 | | else { |
| | 2026 | | pvmtracer.trctid = ttid; |
| | 2027 | | pvmtracer.trcctx = tctx; |
| | 2028 | | pvmtracer.trctag = ttag; |
| | 2029 | | pvmtracer.outtid = otid; |
| | 2030 | | pvmtracer.outctx = octx; |
| | 2031 | | pvmtracer.outtag = otag; |
| | 2032 | | pvmtracer.trcbuf = tbuf; |
| | 2033 | | pvmtracer.trcopt = topt; |
| | 2034 | | BCOPY(tmask,pvmtracer.tmask,TEV_MASK_LENGTH);
|
| | 2035 | | } |
| | 2036 | | break; |
| | 2037 | | } |
| | 2038 | | |
| | 2039 | | default: |
| | 2040 | | pvmlogprintf("dm_slconf() ? type %d val <%s>\n", t, s); |
| | 2041 | | PVM_FREE(s);
|
| | 2042 | | break; |