Environment variables in c++ via remote debug

Sysprogs forums Forums VisualGDB Environment variables in c++ via remote debug

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #779
    Lonko
    Participant

    Hi,

    we are building app on build machine and deploying to target arm box.

    We need TZ environment variable set, so that all times in c++ are set correctly. But here comes a catch that i need a bit of help 🙂

    If i start the compiled program directly in shell on target box and the program executes:

    getenv("TZ") // returns  "MET-1MEDT,M3.5.0,M10.5.0/03:00" which is correct 

    But when i do remote debugging

    getenv("TZ") // it always returns NULL! 

    Any idea how to solve this? Why in remote debugging the env variables are not set?

    Best regards,
    Lonko

    #3039
    support
    Keymaster

    Hi,

    It’s a known bug that will be fixed in the next maintenance release. As a workaround, please switch the GDB mode to “Custom mode”, then click “customize” in the gdbserver command editor and specify your variables there.

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