General Commands Reference Guide V

General Commands Reference Guide V

General Commands Reference Guide V TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents ...................................................................................................................... General Commands ...................................................................................................................... General Commands Reference Guide V .................................................................................. 1 History ...................................................................................................................................... 4 Var ............................................................................................................................................. 5 Var HLL variables and expressions 5 Overview Var 5 Symbol Prefix and Postfix 5 Symbol Paths 6 Search Paths 6 Mangled Names and C++ Classes 7 Function Return Values 7 Special Expressions 7 Calling Functions 10 Display Formats 11 Functions 22 Var.AddSticker Add variable sticker to source listing window 22 Var.AddWatch Add variable to Var.Watch window 23 Var.AddWatchPATtern Add variables to Var.Watch window using wildcards 23 Var.Assign Assignment to a variable 24 Var.Break Breakpoint on variable 25 Var.Break.Delete Delete breakpoint on variable 25 Var.Break.direct Set temporary breakpoint on HLL expression 27 Var.Break.Pass Define pass condition for breakpoint 28 Var.Break.Set Set breakpoint to HLL expression 29 Var.Call Call a new procedure 30 Var.CHAIN Display linked list 31 Var.DelWatch Delete variable from watch 32 Var.DRAW Graphical variable display 32 Var.DRAWXY Graphical variable display 36 Var.DUMP Memory dump 37 Var.Eval Evaluate high-level expression 38 Var.EXPORT Export variables in CSV format to file 38 Var.FixedCHAIN Display linked list 40 ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 1 Var.FixedTABle Display table 40 Var.Go Real-time emulation 42 Var.Go.Back Re-run program backwards until variable access (CTS) 42 Var.Go.Change Real-time emulation till expression changes 43 Var.Go.direct Real-time emulation with breakpoint 44 Var.Go.Till Real-time emulation till expression true 45 Var.IF PRACTICE conditional branching 46 Var.INFO View information about HLL variable or HLL expression 47 Var.Local Local variables 48 Var.LOG Log variables 49 Var.NEW Creates a TRACE32-internal variable 51 Var.NEWGLOBAL Creates a global TRACE32-internal variable 52 Var.NEWLOCAL Creates a local TRACE32-internal variable 53 Var.OBJECT Pretty printing for C++ objects 55 Var.PATtern Display variables allowing wildcards for symbol name and type 57 Var.PRINT Display variables 58 Var.PROfile Graphical display of variable 59 Var.Ref Referenced variables 60 Var.set Modify variable 61 Var.Step Step 64 Var.Step.BackChange Step back till expression changes 64 Var.Step.BackTill Step back till expression true 64 Var.Step.Change Step till expression changes 65 Var.Step.Till Step till expression true 65 Var.TABle Display table 66 Var.TREE Display variables in the form of a tree structure 67 Var.TYPE Display variable types 68 Var.View Display variables 69 Var.Watch Open Var.Watch window 70 Var.WHILE PRACTICE loop construction 71 Var.WRITE Write variables to file 72 VCO ........................................................................................................................................... 72 VCO Clock generator 73 VCO.BusFrequency Control bus clock 73 VCO.Down Frequency down 73 VCO.Frequency Control VCO clock 74 VCO.Rate VCO rate 74 VCO.RESet VCO reset 74 VCO.state State display 75 VCO.TimeBaseFrequency Set the time base clock 76 VCO.Up Frequency up 76 VCU ........................................................................................................................................... 78 VCU VCU registers (Vector Computational Unit) 78 ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 2 VCU.Init Initialize VCU registers 78 VCU.RESet Reset VCU registers 78 VCU.Set Set VCU register 79 VCU.view Display VCU registers 79 VE .............................................................................................................................................. 80 VE Virtual execution mode 80 VE.OFF Turn off virtual execution mode 80 VE.ON Turn on virtual execution mode 80 VPU ........................................................................................................................................... 81 VPU Vector Processing Unit (VPU) 81 VPU.Init Initialize ALTIVEC registers 81 VPU.Set Modify ALTIVEC registers 81 VPU.view Display ALTIVEC register window 82 ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 3 General Commands Reference Guide V Version 30-Apr-2021 History 08-May-20 Description for command Var.OBJECT. ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 4 Var Var HLL variables and expressions See also ■ Var.AddSticker ■ Var.AddWatch ■ Var.AddWatchPATtern ■ Var.Assign ■ Var.Break ■ Var.Call ■ Var.CHAIN ■ Var.DelWatch ■ Var.DRAW ■ Var.DRAWXY ■ Var.DUMP ■ Var.Eval ■ Var.EXPORT ■ Var.FixedCHAIN ■ Var.FixedTABle ■ Var.Go ■ Var.IF ■ Var.INFO ■ Var.Local ■ Var.LOG ■ Var.NEW ■ Var.NEWGLOBAL ■ Var.NEWLOCAL ■ Var.OBJECT ■ Var.PATter n ■ Var.PRINT ■ Var.PROfile ■ Var.Ref ■ Var.set ■ Var.Step ■ Var.TABle ■ Var.TREE ■ Var.TYPE ■ Var.View ■ Var.Watch ■ Var.WHILE ■ Var.WRITE ■ SETUP.Var ■ sYmbol.CASE ❏ Var.ADDRESS() ❏ Var.END() ❏ Var.RANGE() ❏ Var.SIZEOF() ❏ Var.STRing() ❏ Var.TYPEOF() ❏ Var.VALUE() ▲ ’Var Functions’ in ’General Function Reference’ ▲ ’Release Information’ in ’Release History’ Overview Var Lower and upper case letters are distinguished in symbol names. The command sYmbol.CASE switches off this differentiation. The length of symbol names is limited to 255 characters. The maximum number of symbols depends on the size of the system memory. Symbol Prefix and Postfix Most of the compilers add a special character (for example “.” or “_”) in front of or behind the users symbol names. The user does not need to enter this character. The symbol management automatically adds the character, if necessary. Example for the processing of prefix/postfix characters. Symbol Table Entry HLL-Windows Assembler windows _vfloat _vfloat or vfloat _vfloat vfloat ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 5 Symbol Paths There are two modes during entry a symbol name: entering a complete symbol path or solely a symbol name. If only a symbol name is used, the access will occur to the symbol valid for the used program part (if symbol names are used more than once, local symbols are preferred to symbols of higher blocks). By specifying a complete symbol path access to any symbol is possible. Each part of the symbol path is separated by a '\'. A complete path has to begin with a '\'. The following path versions are allowed: \modul\global … \modul\modul-local … \\program\modul … If the specified symbol represents a function, the access to local variables of this function and of nested functions will be possible: …\function\local …\function\function … If using PASCAL, as many functions as chosen will be nested. Line numbers can be specified in the following way: \linenumber \linenumber\columnnumber \module\linenumber \\program\module\linenumber ..\function\relative_linenumber The address of the high level language block containing the specified line number is returned by this operation. Search Paths If no complete path is entered, the symbol will be searched in the following sequence 1. Local symbols (interior block … exterior block) 2. Static symbols of block 3. Static symbols of module 4. Global symbols of current program 5. All other static symbols ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 6 Mangled Names and C++ Classes The class of a method can be left out, if this method exists only in one class and the names are ANSI mangled. The class is always required, if the constructor, destructor or an overloaded operator must be accessed. The quotation marks can help to allow special characters if the C++ name is used in the regular TRACE32 syntax. They are not required in the Var command group. However they can be used when specifying a local symbol. The command sYmbol.MATCH can control the behavior if an overloaded method is not specified with the prototype. List `class1::method1` List method1 //access to same method (ANSI // mangled) List `class1::class1` //creator of class class1 List `class1::~class1` //destructor of class class1 List `class1::operator++` //overloaded operator List `class1::operator+(int)` //overloaded operator with // prototype Var.set `class1::operator+(int)\i` //local variable of function Function Return Values The return value of a function is entered in the symbol list as a local variable of the function. It has always the name 'return'. Special Expressions The expression interpreter accept some extensions to the language. All type checks and range checks are handled as free as possible. Accessing data beyond the array limits is allowed. A dereference of a plain number will assume that it is a pointer to character: Var.set *0x2000 = 1 //set byte at location 2000 (decimal) All labels (typeless symbols) can be used in expressions. They are taken as variables of the type void. They can be cast directly to the wanted type. Var.set __HEAP //displays nothing (if __HEAP is a label) Var.set *__HEAP //assumes __HEAP as a pointer to character Var.set (long)__HEAP //takes __HEAP as a 'long' variable ©1989-2021 Lauterbach GmbH General Commands Reference Guide V 7 Function

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    82 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us