Skip to content

Fix loading of C files in Gobview#993

Merged
stilscher merged 9 commits intomasterfrom
fix-gobview
Mar 3, 2023
Merged

Fix loading of C files in Gobview#993
stilscher merged 9 commits intomasterfrom
fix-gobview

Conversation

@stilscher
Copy link
Copy Markdown
Member

@stilscher stilscher commented Feb 17, 2023

This PR contains changes that were made on the Goblint side to fix issue goblint/gobview#2 and the timing statistics displayed in Gobview:

  • When Goblint is run with gobview enabled, all C source files (from warning locations) will be copied to the directory served by Gobview. The files receive a unique name to avoid any clashes between files from different directories. The mapping from the filename used in CIL-locations to this unique file name is marshalled additionally such that it can be accessed by Gobview. This way, the files can be displayed in Gobview without accessing any other parts of the filesystem. I tested this fix for C files located within the Goblint directory as well as for files outside. However, I am assuming, that one might need to extend this solution for it to work with the compilation database setup as well.

  • Furthermore, this PR fixes the timing statistics displayed in Gobview. Instead of marshaling incomplete timings within analyze, where the overall analysis time has not been calculated yet, they are now only marshaled after finishing the analysis.

TODO

@stilscher stilscher marked this pull request as ready for review February 17, 2023 14:04
@sim642 sim642 added the bug label Feb 17, 2023
@sim642 sim642 added the pr-dependency Depends or builds on another PR, which should be merged before label Feb 20, 2023
Copy link
Copy Markdown
Member

@sim642 sim642 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once goblint/gobview#19 is merged, this also needs to update the git submodule.

@sim642 sim642 self-requested a review March 1, 2023 14:58
@sim642 sim642 removed the pr-dependency Depends or builds on another PR, which should be merged before label Mar 2, 2023
@stilscher stilscher merged commit eab4630 into master Mar 3, 2023
@stilscher stilscher deleted the fix-gobview branch March 3, 2023 09:09
@sim642 sim642 added this to the v2.2.0 milestone Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants