Pass environment variable to GDB server

Sysprogs forums Forums VisualGDB Pass environment variable to GDB server

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #612
    Anonymous
    Participant

    I have custom project for debugging avr using avarice as gdb-server.
    GDB server options looks like:

    command: avarice
    arguments: --part $(MCU)  --jtag /dev/ttyS2 :4242 

    where MCU is global MSVS variable defined in project property settings. Howewer its not recognized. How to pass it to gdb server?

    #2547
    ket
    Participant

    Hi,

    Please use user variables defined in VisualGDB Project Properties instead. The VisualGDB user variables feature was added in version 4.0.
    You can define your MCU variable there similarly to MSVS variables and use it throughout VisualGDB Project Properties as $(MCU).

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