-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrong unmarshaling of function pointers in debugger mode (#10709)
In debugger mode, closures sent by the debuggee have their code pointer modified so that it points to the `function_placeholder` code in debugger/main.ml. This modification was performed incorrectly: the whole closure for `function_placeholder` was used as the code pointer for the unmarshalled closure. This commit implements the correct operation: the code pointer from `function_placeholder` is used as code pointer for the unmarshaled closure. Also: raise a more informative exception when custom printer invokes closure from debuggee. Fixes: #9214
- Loading branch information
1 parent
f442361
commit cc9ae80
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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 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