File: deferstack.go

package info (click to toggle)
delve 1.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,136 kB
  • sloc: ansic: 111,947; sh: 194; asm: 147; makefile: 43; python: 23
file content (32 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package main

import "runtime"

func f1() {
}

func f2(a int8, b int32) {
}

func f3() {
}

func call1() {
	defer f2(1, -1)
	defer f1()
	call2()
}

func call2() {
	defer f3()
	defer f2(42, 61)
	call3()
}

func call3() {
	runtime.Breakpoint()
}

func main() {
	call1()
}