Tim Mooney wrote:
>
> "S. Joshua Stein" wrote:
> >
> > I would like to set a (global) debugging variable which is part of my device
> > support running on a solaris IOC (3.14b2). In the vxWorks world, I would just
> > type:
> >
> > >deviceDebugVar=1
> >
> > This, however, won't work with iocsh. Does anyone know if/how I can gain access
> > to these variables?
>
> How about connecting an AO record to the global symbol, using devAoSymb
> device support?
> Then you could set the variable from any CA client.
That relies on someone having converted the vxWorks symbol support to use
the R3.14 symbol registration routines (which I don't believe has been
done yet, but I might be wrong there), and Josh would still have to
register the address of his debug variable with the registration
facility. It should be possible to do that within a device support
initialization routine rather than having to write the C++ static
initializer routine that Eric was describing, but Eric's solution is
probably simpler overall until vxSymb gets properly converted to R3.14.
- Andrew
--
Edsger W. Dijkstra, 1930-2002: "The use of COBOL cripples the mind;
its teaching should, therefore, be regarded as a criminal offence."
- References:
- Access to device support debugging vars via iocsh (3.14b2) S. Joshua Stein
- Re: Access to device support debugging vars via iocsh (3.14b2) Tim Mooney
- Navigate by Date:
- Prev:
Re: Access to device support debugging vars via iocsh (3.14b2) Tim Mooney
- Next:
Re: Access to device support debugging vars via iocsh (3.14b2) Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Access to device support debugging vars via iocsh (3.14b2) Tim Mooney
- Next:
Re: Access to device support debugging vars via iocsh (3.14b2) Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|