Results 1 to 2 of 2

Thread: How to display common block contents using CLI

  1. #1
    Junior Member
    Join Date
    Oct 2007
    Posts
    1

    How to display common block contents using CLI

    I have a common block declared like this:
    COMMON /a/ a

    I think I must be seeing the address of the common block instead of the contents of the variable when I say
    dprint a

    How can I reference the variable 'a' inside common block 'a' to see its value with dprint? Thanks.

  2. #2
    Senior Member
    Join Date
    Jun 2006
    Location
    Natick MA
    Posts
    145

    Re: [EdK] How to display common block contents using CLI

    It appears that 'dprint a' is showing you one word, as an unsigned integer, starting at the base address of the common block a. If you have halted your program in a location where the variable a is in scope, I believe this to be a bug. Looking up, 'a', should find the variable not the common block.

    That being said you should be able to workaround this by using 'dprint a#a' which will print the value of 'a' scoped within '/a/'.

    The other thing that is worth mentioning is that if you are using the GUI, totalview, instead of the CLI, totalviewcli, you can 'dive' on a common block to display all the variables in the common block, or dive on individual variables to display their values.

    I hope this helps.
    Josh Carlson

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •