[SOLVED] Referenced data not displayed

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Referenced data not displayed

    I am trying to debug some data that is held within a reference on the stack. However, I am not able to see the content of it in ozone. In my production project I get "<outofscope>" in the location. In the minimal example shown below I get the correct address, size and type; however I don't get any values displayed:


    OS: Windows 10 1909
    Compiler: ARMCC 6.6.3 with -O0
    Target: LPC1768
    Ozone Version: 3.22e

    The example code:

    C Source Code: Main.cpp

    1. //disable heap
    2. __asm(".global __use_no_heap\n\t");
    3. //disable argv handling with ARMCC6 with -O0
    4. __asm(".global __ARM_use_no_argv\n\t");
    5. struct Foo
    6. {
    7. int MyInt;
    8. bool MyBool;
    9. Foo() : MyInt(0), MyBool(false) {}
    10. };
    11. class Bar
    12. {
    13. public:
    14. void doSomething()
    15. {
    16. auto& currentData = myContainer[0];
    17. currentData.MyBool = !currentData.MyBool;
    18. currentData.MyInt++;
    19. }
    20. private:
    21. Foo myContainer[2];
    22. };
    23. extern "C" int main(void)
    24. {
    25. Bar bar;
    26. while(true)
    27. {
    28. bar.doSomething();
    29. }
    30. return 0;
    31. }
    Display All
  • I also see a similar issue from time to time in version 3.22e on Linux x64.

    A global struct in my code that is not out of scope (address of fields are shown) shows empty values.

    I do not know yet the exact steps to reproduce this, but I have seen it very often.
  • Hello,

    Thank you for the reproducer.
    With it the issue is reproducible for us. It is indeed a display error in Ozone and will be fixed.
    To get notified when new Ozone version appear including their release notes you can subscribe here:
    segger.com/notification/subscribe.php?prodid=178,7

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.