#82 Cannot "Add Global Variables" in debug window

Next release
closed
None
5
2014-12-05
2014-02-10
No

plugin-version: GNU ARM C/C++ Cross Compiler Support 1.7.1.201401111229
eclipse-version: Eclipse IDE for C/C++ Developers 2.0.1.20130919-0803
os: windows xp 32 SP3
toolchain: GNU-Tools-ARM-Embedded-4-8-2013q4
Jlink SW (beside yours): Segger J-Link GDB Server V4.80c

I can compile the project, download it into a EFM32LG880F128 and run it, stepping works
looking at local vars works

I can do the gdb command (from the console)

info variables
and my global var shows up

but I cannot see my globals as a variable that can be added in the debug window

NOTE: I had to configure dwarf-3 as debug format to be able to "browse" the output binary file

How can I help to find out what is not working ?
Thanks

Discussion

  • Liviu Ionescu (ilg)

    • status: open --> open-accepted
    • assigned_to: Liviu Ionescu (ilg)
     
  • Liviu Ionescu (ilg)

    this sounds like a CDT limitation, in the j-link plug-in I changed only the code to start/stop the server/client, did not touch the actual session views.

    since the j-Link plug-in uses DSF, could you try to create a GDB Hardware DSF debug configuration and see if global variables are visible there? (I guess not).

     
  • Damiano Bolla

    Damiano Bolla - 2014-02-10

    ok, I have done as you say, see the attached log file
    Any useful hints there ?

     
  • Damiano Bolla

    Damiano Bolla - 2014-02-10

    Wait ! with the standard GDB debugger hardware it works !

     
  • Liviu Ionescu (ilg)

    than could you describe in more details the required steps and settings to reproduce the problem?

    I'd also prefer to use a STM32F103 or STM32407 board, with the existing templates.

    the goal is to produce a single build and two debug configurations, one working and one failing.

    please use the latest plug-in version available from updates-test.

     
  • Liviu Ionescu (ilg)

    I could not reproduce your problem. please try again with the latest version, released today, and let me know

     
  • Damiano Bolla

    Damiano Bolla - 2014-02-18

    Ok, tested now, after update
    Recreated config, I have to add that I do not start the server locally but use the "remote" version of it, maybe it matters
    I still cannot see global variables

     
  • Damiano Bolla

    Damiano Bolla - 2014-02-18

    Changed config to start the segger Jlink server, still I cannot see global vars
    What kind of log would you need to try to understand what is happening ?

     
  • Liviu Ionescu (ilg)

    You mean the menu you get on right click in the Variables tab has the 'Add global variables...' disabled?

    if so, please note that there are two debug infrastructure, the old one (standard) and the new one (DSF). according to our tests, with the 'standard' configuration the 'Add global variables...' is enabled, with DSF, it is not.

    the J-Link and the OpenOCD plug-ins use the new DSF infrastructure, which, apparently has a bug. I'm afraid there is not much I can do in the plug-ins to fix the Eclipse DSF bug...

    you can try to report the bug to CDT.

    as a workaround, you can use watch expressions, they work on DSF.

     
  • Damiano Bolla

    Damiano Bolla - 2014-02-19

    Ah, yes, it is exactly what happens

    What am I missing by using the "old" GDB Interface ?
    It seems to me that the only issue is that I have to write commands instead of selecting checkboxes, right ?

     
    • Liviu Ionescu (ilg)

      it is up to you.

      is there anything I can do to help you, or we can close the ticket?

       
  • Damiano Bolla

    Damiano Bolla - 2014-02-19

    Yes, it is not your problem, close the ticket

     
  • Liviu Ionescu (ilg)

    • status: open-accepted --> closed
     
  • Liviu Ionescu (ilg)

    ok, closed.

    I would appreciate if you could write a few words about the magic commands you give in the gdb console, to add them to a page in the documentation.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks