Live Variables exception

Sysprogs forums Forums VisualGDB Live Variables exception

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22548
    sidprice
    Participant

    In my STM32F401 program I have a file-static variable “batteryInput”, there are no other variables with that name in the project. When I try to add “batteryInput” to the Live Variables view I get a VisualGDB message box that says “Parsing expression address resulted in a value that cannot be parsed as an address”.

    In the GDB Session window I see the following as the var create succeeds:

    -var-create – * “&(batteryInput)”
    ^done,name=”var9″,numchild=”1″,value=””,type=”uint32_t *”,has_more=”0″
    -var-evaluate-expression “var9″
    ^done,value=””
    -exec-continue
    ^running
    *running,thread-id=”all”

    But notice that GDB returns a empty string for the evaluation.

    I thought GDB should be able to work with this?

    Sid

    #22550
    support
    Keymaster

    Hi,

    Sorry, if gdb is not able to return the address of the variable, VisualGDB won’t be able to use it in live variables. Please consider experimenting with other variables in your program to see what triggers the address issue and then update the batteryInput variable to avoid it.

    #22552
    sidprice
    Participant

    I had to remove the “static” qualifier, strange because GDB is supposed to be able to handle that, thnaks

    Sid

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.