-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/proc: add support for interface watchpoints (#3922)
Adds support for setting a watchpoint on an interface by setting the watchpoint on the data pointer in the eface/iface runtime structs representing the interface.
- Loading branch information
1 parent
6badfa1
commit 2880422
Showing
4 changed files
with
83 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main | ||
|
||
import ( | ||
"errors" | ||
"fmt" | ||
"runtime" | ||
) | ||
|
||
func main() { | ||
var err error = errors.New("test error") | ||
fmt.Println("Error created:", err) | ||
err = errors.New("modified error") | ||
fmt.Println("Error modified:", err) | ||
runtime.Breakpoint() | ||
} |
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