forked from go-delve/delve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/proc: handle double inlined calls (go-delve#2880)
It's possible that an inlined function call also contains an inlined sunroutine. In this case we should also parse the children of inlined calls to ensure we don't lose this information.
- Loading branch information
1 parent
0005eb9
commit 8ddb64c
Showing
3 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"runtime" | ||
"strconv" | ||
) | ||
|
||
type Rectangle struct{} | ||
|
||
func (r *Rectangle) Height() int { | ||
h, _ := strconv.ParseInt("7", 10, 0) | ||
return int(h) | ||
} | ||
|
||
func (r *Rectangle) Width() int { | ||
return 6 | ||
} | ||
|
||
func (r *Rectangle) Area() int { return r.Height() * r.Width() } | ||
|
||
func main() { | ||
var r Rectangle | ||
runtime.Breakpoint() | ||
fmt.Println(r.Area()) | ||
} |
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