support

Forum Replies Created

Viewing 15 posts - 3,196 through 3,210 (of 7,854 total)
  • Author
    Posts
  • in reply to: CubeMX and DSP Library #24594
    support
    Keymaster

    The easiest way to do that would be to simply add the file (or the related sources) to the project via Add->Existing Items. If you are adding source files, please ensure that the directories with the header files are listed in the VisualGDB Project Properties -> Build Settings -> Include Directories.

    in reply to: Code Folding ? #24593
    support
    Keymaster

    If the problem can be reproduced on a specific file, please send it to our support email (or post it here) along with a screenshot demonstrating the problem and the exact steps we could follow on our side to reproduce it. Once we can reproduce the problem, we should be able to fix it or suggest a workaround.

    support
    Keymaster

    Sorry, it looks like you are still using the pre-built Python executable instead of the one you built (that should be installed to /usr/local/bin) and it still fails to evaluate the ‘f’ variable that contains the frame info:

    gdb --interpreter mi --args "python" "/tmp/com_sysprogs_PythonDebugWrapper.py" "/tmp/com_sysprogs_PythonBreakpointModule.so" /tmp/VisualGDB/c/Local/PRO/DT777/Tests/MSML_PyExt/../Scripts/Test_ApiGeneral.py

    Below is the relevant snippet from the log:

    -var-create --frame 13 --thread 1 - * "(void *)f"
    ^done,name="var5",numchild="0",value="0x0",type="void *",thread-id="1",has_more="0"
    -data-evaluate-expression --frame 13 --thread 1 "\(void\ \*\)\(\(PyFrameObject\ \*\)0x0\)->f_localsplus\[0]"
    ^error,msg="Cannot access memory at address 0x178"

    Please double-check that you have selected the newly built Python executable in the wizard (see step 11 in the tutorial). If it still doesn’t work, please try using the regular debugging techniques to ensure that the ‘f’ variable is accessible (declaring it volatile should normally work). Without being able to evaluate the frame context, VisualGDB will not be able to decode the state of the Python interpreter.

    in reply to: Clang IntelliSense C++ #24589
    support
    Keymaster

    Good to know it works. The keywords are indeed standard, however Clang itself has a fairly complex logic for suggesting different keywords based on context, that changes from version to version. And since it is maintained by the Clang team, we want to avoid making major changes to it, hence we added a very thin layer on top that unconditionally adds the keywords specified in the settings in case Clang does not suggest them yet (we do check for duplicates, so no worries about that).

    in reply to: Functions of class not recognized #24582
    support
    Keymaster

    This looks correct. Based on your screenshot, there are no non-static fields or methods in the class, so code completion has nothing to show.

    support
    Keymaster

    No problem. BTW, the “bin” prefix should normally be discarded automatically. Feel free to share your CodeModel.json file and we will update VisualGDB to compute the target ID fully automatically.

    in reply to: Clang IntelliSense C++ #24577
    support
    Keymaster

    Hi,

    No problem, we will clarify. This update simply adds a list of pre-defined keywords like static_cast to the suggestion lists shown by VisualGDB. Pressing ctrl-space inside static_cast<> will still show preprocessor macros, typedefs, classes and many other object types. You can limit the display to a specific type using the filter buttons at the bottom of the suggestion list.

    in reply to: Functions of class not recognized #24576
    support
    Keymaster

    No problem, we have fixed it in this build: VisualGDB-5.4.104.3059.msi

    in reply to: VisualGDB Python file import problems when debug #24566
    support
    Keymaster

    Hi,

    Please try setting the PYTHONPATH variable to point to the directory on the board where the Python scripts are uploaded. You can set it via VisualGDB Project Properties ->Debug Settings -> Common Settings -> Debug Mode -> Additional Environment. This should ensure Python can find import all the necessary modules.

    support
    Keymaster

    Thanks for the log file. It looks like the Python debugging is not working because the variables used by VisualGDB to analyze the Python context got optimized away.

    Please follow the instructions in this tutorial to build a modified Python executable that will have the necessary variables available.

    support
    Keymaster

    No problem, we can help you get it to work.

    First of all, please ensure you have the OpenOCD package installed (you can use Tools->VisualGDB->Manage VisualGDB Packages to double-check).

    Then check the %LOCALAPPDATA%\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd\edp.xml file.
    The GNUTargetFilter element defines the toolchains that are considered compatible with this package:

    <GNUTargetFilter>^arm-.*</GNUTargetFilter>

    For Arduino projects, the GNU target is automatically derived from the name of the gcc executable reported by the Arduino build logic. E.g. for arm-none-eabi-gcc.exe it would be arm-none-eabi. You can find out the GCC path by checking the CodeModel.json file inside the build directory of your project. Simply updating the GNUTargetFilter in edp.xml to match it and re-opening the VisualGDB Package Manager to have VisualGDB reload the package definitions should get it to work. If not, please let us know the gcc executable name reported via CodeModel.json and we will investigate this further.

     

    in reply to: Clang IntelliSense C++ #24560
    support
    Keymaster

    OK, we have added a setting for this: Tools->Options->Text Editor->C/C++ (VisualGDB)->Advanced->Code Completion->Additional suggested C++ keywords.

    Please try this build: VisualGDB-5.4.104.3057.msi

    in reply to: misplaced make files?? #24559
    support
    Keymaster

    Sorry, there is no other place other than the .mak files in the project’s directory where ADDITIONAL_MAKE_FILES would be set.

    If you are still getting strange errors, please try creating another project from scratch – it should rule out any accidental Makefile modifications that could be causing this.

    in reply to: Arduino : multiple lib versions managment #24558
    support
    Keymaster

    No problem, please try this build: VisualGDB-5.4.104.3057.msi

    We have added an option under VisualGDB Project Properties -> Arduino to ignore the default library paths.

    in reply to: Functions of class not recognized #24557
    support
    Keymaster

    Thanks for sending us the repro project. We have fixed the issue in this build: VisualGDB-5.4.104.3057.msi

Viewing 15 posts - 3,196 through 3,210 (of 7,854 total)