Repository navigation
Declare Fjalar's two core functions locally instead of including pub_core headers #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
markro49
merged 5 commits into
codespecs:master
from
mernst:exempt-fjalar-core-includes
Oct 17, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
9f48624
Allow Fjalar's two pub_core includes in check_headers_and_includes
mernst 2a3b313
Declare Fjalar's two core functions locally instead of including pub_…
mernst 849fd30
Put Fjalar's core declarations in one header, checked at build time
mernst ba9567b
Run the fjalar_core_decls.h check whenever a fjalar program is built
mernst 5b880d3
Note in fjalar_core_decls.h which files use it
mernst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /* | ||
| This file is part of Fjalar, a dynamic analysis framework for C/C++ | ||
| programs. | ||
|
|
||
| Copyright (C) 2007-2026 University of Washington Computer Science & Engineering Department, | ||
| Programming Languages and Software Engineering Group | ||
|
|
||
| This program is free software; you can redistribute it and/or | ||
| modify it under the terms of the GNU General Public License as | ||
| published by the Free Software Foundation; either version 2 of the | ||
| License, or (at your option) any later version. | ||
| */ | ||
|
|
||
| /* fjalar_core_decls.h: | ||
|
|
||
| Declarations of the few Valgrind core (non-tool) entities that Fjalar | ||
| uses. Fjalar code (e.g., mc_main.c and typedata.c) includes this file | ||
| to call those entities. Tool files must not include coregrind/pub_core_*.h (see | ||
| tests/check_headers_and_includes), so these are copied here instead. | ||
| The build checks that the copies agree with the originals (see the | ||
| fjalar_core_decls.stamp rule in Makefile.am). | ||
|
|
||
| */ | ||
|
|
||
| #ifndef FJALAR_CORE_DECLS_H | ||
| #define FJALAR_CORE_DECLS_H | ||
|
|
||
| #include "pub_tool_basics.h" | ||
|
|
||
| // From coregrind/pub_core_aspacemgr.h. | ||
| // mc_check_readable uses this to accept readable memory that Valgrind | ||
| // owns, which VG_(am_is_valid_for_client) rejects. | ||
| extern Bool VG_(am_is_valid_for_valgrind)(Addr start, SizeT len, UInt prot); | ||
|
|
||
| // From coregrind/pub_core_mallocfree.h. | ||
| // Used to release the demanglers' results, which are allocated in the | ||
| // VG_AR_DEMANGLE arena. ArenaId is a typedef for Int. | ||
| extern void VG_(arena_free)(Int arena, void* ptr); | ||
| #define VG_AR_DEMANGLE 3 | ||
|
|
||
| #endif /* FJALAR_CORE_DECLS_H */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.