Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317124

Summary: xs startup scripts define lots of junk global variables
Product: [Technology] RTSC Reporter: Dave Russo <d-russo>
Component: ToolsAssignee: Sasha Slijepcevic <sascha>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.40

Description Dave Russo CLA 2010-06-16 18:24:22 EDT
flag
cname
spath
the following script should _only_ output names with $$ the globals specified by tconf:

    config
    prog
    utils
    report
    xdc

Instead the following additional variables are defined (but should not be):
    previousGroups
    simpleInput
    scan
    pkg
    _profile
    $om
    $externModFxn
    $addr
    $externPtr
    $externFxn
    Cap
    Trace
    i
    fname
    file
    save
    _pkgname
    pkgName
    tmp
    mod
Comment 1 Sasha Slijepcevic CLA 2010-08-19 15:42:08 EDT
I can't see 'i' in the list of globals, when using a debugger.
'_profile' is defined in tconfini.tcf and made global intentionally. I don't know what's its purpose.
'$om' is deprecated alias for xdc.om, but it's used in 3.20 target packages, and we should keep it for compatibility until we have some other reason to break compatibility with 3.20 and older packages.

'$externModFxn', '$addr', '$externPtr' and '$externFxn' are built-in XDCscript operators, which are used as such in BIOS and XDCtools code. I don't think we can remove them without breaking existing code.

The rest are temporary variables and should be removed.