Forum Replies Created
-
AuthorPosts
-
support
KeymasterWe have received the logs via the support system.
It looks like VisualGDB running from the test agent still completely fails to launch the tests (it also doesn’t get the VISUALGDB_SHOW_DIAGNOSTIC_OUTPUT variable).
Please try adding the “/v” and “/diag” flags to the VisualGDB command line in TFS (ensure you use build 2789) and send us the updated logs.
support
KeymasterYes, we have just double-checked the attachment logic on our side and it appears to be working.
support
KeymasterSorry, it still did not work. We have just rechecked attachments on our side and they appear to be working, so the problem might be caused by your browser.
As a workaround, please try using a file hosting service like Dropbox, or simply send the attachments via our support form.
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.
-
AuthorPosts