mirror of
https://github.com/go-delve/delve.git
synced 2025-10-29 17:56:45 +08:00
misc: comment cleanup
This commit is contained in:
@ -9,7 +9,6 @@ import (
|
|||||||
"github.com/derekparker/delve/proc"
|
"github.com/derekparker/delve/proc"
|
||||||
)
|
)
|
||||||
|
|
||||||
// convertBreakpoint converts an internal breakpoint to an API Breakpoint.
|
|
||||||
func ConvertBreakpoint(bp *proc.Breakpoint) *Breakpoint {
|
func ConvertBreakpoint(bp *proc.Breakpoint) *Breakpoint {
|
||||||
b := &Breakpoint{
|
b := &Breakpoint{
|
||||||
ID: bp.ID,
|
ID: bp.ID,
|
||||||
@ -32,7 +31,6 @@ func ConvertBreakpoint(bp *proc.Breakpoint) *Breakpoint {
|
|||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
// convertThread converts an internal thread to an API Thread.
|
|
||||||
func ConvertThread(th *proc.Thread) *Thread {
|
func ConvertThread(th *proc.Thread) *Thread {
|
||||||
var (
|
var (
|
||||||
function *Function
|
function *Function
|
||||||
@ -58,7 +56,6 @@ func ConvertThread(th *proc.Thread) *Thread {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// convertVar converts an internal variable to an API Variable.
|
|
||||||
func ConvertVar(v *proc.Variable) *Variable {
|
func ConvertVar(v *proc.Variable) *Variable {
|
||||||
r := Variable{
|
r := Variable{
|
||||||
Addr: v.Addr,
|
Addr: v.Addr,
|
||||||
@ -117,7 +114,6 @@ func ConvertFunction(fn *gosym.Func) *Function {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// convertGoroutine converts an internal Goroutine to an API Goroutine.
|
|
||||||
func ConvertGoroutine(g *proc.G) *Goroutine {
|
func ConvertGoroutine(g *proc.G) *Goroutine {
|
||||||
return &Goroutine{
|
return &Goroutine{
|
||||||
ID: g.Id,
|
ID: g.Id,
|
||||||
|
|||||||
Reference in New Issue
Block a user