Forum Replies Created
-
AuthorPosts
-
support
KeymasterHi,
Thanks for the suggestion. VisualGDB handles the coverage reports on a per-project level (not per-solution), hence merging coverage information from multiple projects behind the scenes could cause weird results (e.g. coverage for subsequent reports belonging to the same project would differ based on the other tests executed during the same session an also the function invocation numbers would be off).
You can somewhat work around it by configuring VisualGDB to keep the raw coverage reports and then running the VisualGDB coverage report generator to build the aggregated report.
Please check the VisualGDB Diagnostics Console for command lines running valgrind2sprof64.exe. Each command line will reference one job file that has the following format:
>[base source directory #1] [full paths to gcov files] >[base source directory #2] [full paths to gcov files]
Please try concatenating multiple job files into one and running valgrind2sprof64.exe on the combined job file. This should produce an aggregated coverage report that can be placed into your project’s coverage report directory in order for VisualGDB to show it.
support
KeymasterSorry, unfortunately the output you mentioned did not get attached. We also rechecked everything on a clean machine and unfortunately could not reproduce the problem.
In case the VISUALGDB_SHOW_DIAGNOSTIC_OUTPUT variable is not being handled correctly in your setup, we have added a new /diag switch to this build.
Please run it as shown below:
"%VISUALGDB_DIR%\visualgdb" /runtests VisualGDB\Debug\CrossCoverageTest.vgdbtestcontainer /vsoutput:testresult.trx /diag > run.log
The output should contain lines like these:
Downloading coverage files... Received X11 channel request. Trying localhost:6000... Directory set #1 Build-time directory: c:\projects\temp\CrossCoverageTest\VisualGDB\Debug Runtime directory: /tmp/cov Starting coverage report converter: C:\Program Files (x86)\Sysprogs\VisualGDB\valgrind2sprof64.exe --gcov "c:\projects\temp\CrossCoverageTest\CoverageReports\2_6_2019_11_19_00_AM\job.txt" "c:\projects\temp\CrossCoverageTest\CoverageReports\2_6_2019_11_19_00_AM.scovreport"Please attach the updated output. It should explain what is going on inside the coverage report logic.
support
KeymasterThanks for sending us the repro. Turns out the project included its own modified versions of the system headers and the Keil IDE included them before the regular headers, while VisualGDB included them after.
We have updated VisualGDB to match the Keil behavior in this build: http://sysprogs.com/files/tmp/VisualGDB-5.4.100.2788.msi
Please import the project again.
support
KeymasterHi,
Sorry about that. Please try the following procedure to narrow down the problem:
- At the beginning of the source file declare a simple function and check that its name is highlighted: void testfunc();
- Once you confirm that the name is shown in a different color, move the declaration to the place where IntelliSense doesn’t work. Save the file and confirm that the colors is now not shown.
- Move the declaration around the source file to find the location after which the highlighting breaks (most likely it will be caused by some special characters that are treated differently by VS and Clang in one of the comments).
- To fix the problem, simply remove the special character. You can also send us the file causing the problem (just one .c/.cpp file is sufficient) and we will add an automatic workaround for this.
You can convert the encoding for multiple files in the same project using a simple C# program (ensure you backup your sources before):
foreach (var fn in Directory.GetFiles(@"<dir>", "*.c", SearchOption.AllDirectories)) { var text = File.ReadAllText(fn, Encoding.GetEncoding(<CODEPAGE>)); File.WriteAllText(fn, text, Encoding.UTF8); }support
KeymasterHi,
Thanks for renewing your license. The timing report on your screenshot does not mean that VisualGDB is running – instead it shows the timing of the last operation.
The error you are describing might be caused by unsupported encoding (Clang IntelliSense only supports UTF-8). Please double-check the encoding used to save the files and ensure they are saved as UTF-8.
support
KeymasterHi,
Please try disassembling the file by running arm-eabi-objdump -D [ELF file] > disasm.txt, then search for the address shown in the error message.
support
KeymasterHi,
If the project builds successfully from command line, please try importing it into VisualGDB using the import wizard and then compare the manual build command line against the command line issued by VisualGDB (you can find it in the View -> Output -> Build Output window). Once you identify the part of the command line that breaks the build, we can help you configure VisualGDB to ensure it uses the correct command line as well.
support
KeymasterHi,
Sorry, we cannot provide much help troubleshooting 3rd-party libraries and components as a part of our product support. Our best advice would be to try searching the codebase for the definitions of the missing symbol and ensuring that the corresponding source or library file (.a) is included in the project. You may also find this tutorial useful – it explains the difference between C++ declarations and definitions and shows some tricks for finding symbol definitions in object files.
support
KeymasterHi,
Good to know it works. If you encounter further issues, please don’t hesitate to get back to us and we will be happy to help.
support
KeymasterHi,
Unfortunately, it is impossible to narrow down the problem based on the limited description you provided. If you could reproduce the problem on a smaller project and attach it here, we should be able to investigate what is going on.
support
KeymasterHi,
Sorry, we are not sure what you meant. The project should normally import correctly as long as the original Keil project has the correct include paths.
Please try locating a specific header that is not being found and ensure that its location is listed in the Include Directories field in VisualGDB Project Properties.
Alternatively please try reproducing the problem on a smaller Keil project (that builds with Keil, but doesn’t build after being imported) and attach it here so that we could investigate.
support
KeymasterHi,
Sorry, we don’t have a tutorial specifically for GTK+. Please try following the generic Linux project import tutorial.
support
KeymasterHi,
Please try changing any settings on the Embedded Frameworks page to resolve the debugger_check problem.
In order to fix the REL32 problem, we would need to be able to reproduce the issue on our side (please check the function located at the address shown in the error and see if you can share the source code for that function or a simplified version of it that still reproduces the problem).
The last error looks like you are trying to validate stack usage without actually specifying the stack size. Please reference the “fixed stack/heap” framework to set the stack and heap sizes explicitly.
support
KeymasterHi,
Great to hear you found VisualGDB useful. There are indeed several ways to build VisualGDB projects on the build server without installing VisualGDB there.
Once way would be to create a CMake-based or Makefile-based project. For these type of projects the build is managed by the external Makefile (or CMakeLists.txt file) and hence they can be built by running Make/CMake manually.
If you would like to use MSBuild, please check the .rsp files generated in the build directory on your Windows machine. Each RSP file contains the exact command line used by VisualGDB to compile or link that file (VisualGDB would simply run <gcc executable> @<relative path to the RSP file> from the main source directory). You could then create a very basic script that will enumerate the rsp files and reconstruct the build script for the build server (you will need to replace the paths in the .rsp files via some basic pattern matching though).
Let us know if you have further questions and we will be happy to help.
support
KeymasterHi,
Thanks for reporting this. We have fixed it in the following build: http://sysprogs.com/files/tmp/VisualGDB-5.4.100.2784.msi
-
AuthorPosts