Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
2f082a07
Commit
2f082a07
authored
1 year ago
by
Loïc Correnson
Committed by
Allan Blanchard
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[ivette] fix invalid marker when getting callee
parent
f37e9968
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ivette/src/frama-c/kernel/ASTview.tsx
+1
-1
1 addition, 1 deletion
ivette/src/frama-c/kernel/ASTview.tsx
src/plugins/server/kernel_ast.ml
+3
-1
3 additions, 1 deletion
src/plugins/server/kernel_ast.ml
with
4 additions
and
2 deletions
ivette/src/frama-c/kernel/ASTview.tsx
+
1
−
1
View file @
2f082a07
...
@@ -688,7 +688,7 @@ function useFctCallers(fct: Fct): Eva.CallSite[] {
...
@@ -688,7 +688,7 @@ function useFctCallers(fct: Fct): Eva.CallSite[] {
// Server request handler returning the given function's callers.
// Server request handler returning the given function's callers.
function useCallees(marker: Marker): Fct[]
{
function useCallees(marker: Marker): Fct[]
{
return
States
.
useRequest
(
Eva
.
getCallees
,
marker
)
??
[];
return
States
.
useRequest
(
Eva
.
getCallees
,
marker
||
undefined
)
??
[];
}
}
// Server request handler returning the tainted lvalues.
// Server request handler returning the tainted lvalues.
...
...
This diff is collapsed.
Click to expand it.
src/plugins/server/kernel_ast.ml
+
3
−
1
View file @
2f082a07
...
@@ -205,7 +205,8 @@ struct
...
@@ -205,7 +205,8 @@ struct
let
to_json
loc
=
`String
(
tag
loc
)
let
to_json
loc
=
`String
(
tag
loc
)
let
of_json
js
=
let
of_json
js
=
try
find
(
Js
.
to_string
js
)
try
find
(
Js
.
to_string
js
)
with
Not_found
->
Data
.
failure
"not a localizable marker"
with
Not_found
->
Data
.
failure
"invalid marker (%a)"
Json
.
pp_dump
js
end
end
...
@@ -466,6 +467,7 @@ let () = Request.register ~package
...
@@ -466,6 +467,7 @@ let () = Request.register ~package
let
()
=
Request
.
register
~
package
let
()
=
Request
.
register
~
package
~
kind
:
`GET
~
name
:
"printFunction"
~
kind
:
`GET
~
name
:
"printFunction"
~
descr
:
(
Md
.
plain
"Print the AST of a function"
)
~
descr
:
(
Md
.
plain
"Print the AST of a function"
)
~
signals
:
[
changed_signal
]
~
input
:
(
module
Function
)
~
output
:
(
module
Jtext
)
~
input
:
(
module
Function
)
~
output
:
(
module
Jtext
)
begin
fun
kf
->
begin
fun
kf
->
let
libc
=
Kernel
.
PrintLibc
.
get
()
in
let
libc
=
Kernel
.
PrintLibc
.
get
()
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment