Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Øyvind Harboe
On Sun, Jul 13, 2008 at 8:29 PM, Duane Ellis <[EMAIL PROTECTED]> wrote: > Charles> This is either a documentation fix so people know the scope of the > Charles> configuration files and explicitly global the variables or a code > fix > Charles> to get the config files sourced at level 0. > > If I pu

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Duane Ellis
Charles> This is either a documentation fix so people know the scope of the Charles> configuration files and explicitly global the variables or a code fix Charles> to get the config files sourced at level 0. If I purposely want to define things in an initialization file - i would expect them to

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Charles Hardin
On Sun, Jul 13, 2008 at 10:33 AM, Øyvind Harboe <[EMAIL PROTECTED]> wrote: >> (not commenting on the correctness of the patch, but the 'globalness' issue) >> >> Which I think they should be ... for example the "configure" script might >> bring in >> some target specific varibles - ie: address of sp

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Øyvind Harboe
> (not commenting on the correctness of the patch, but the 'globalness' issue) > > Which I think they should be ... for example the "configure" script might > bring in > some target specific varibles - ie: address of specific chip registers (ie: > UART > status register) or target specific function

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Duane Ellis
Charles> Doing a command line similar to charles> openocd -f openocd.cfg charles> Has the "set" commands inside of openocd.cfg running a level 1 charles> instead of level 0. I am a little confused as to why this is happening. charles> I did one hack locally to try and play a little [snip] charle

Re: [Openocd-development] Configuration scripts running at wrong level?

2008-07-13 Thread Øyvind Harboe
On Sun, Jul 13, 2008 at 3:41 AM, Charles Hardin <[EMAIL PROTECTED]> wrote: > Doing a command line similar to > > openocd -f openocd.cfg > > Has the "set" commands inside of openocd.cfg running a level 1 > instead of level 0. I am a little confused as to why this is happening. > > I did one hack loc

[Openocd-development] Configuration scripts running at wrong level?

2008-07-12 Thread Charles Hardin
Doing a command line similar to openocd -f openocd.cfg Has the "set" commands inside of openocd.cfg running a level 1 instead of level 0. I am a little confused as to why this is happening. I did one hack locally to try and play a little in src/helper/options.c @@ -110,7 +110,7 @@