Skip to content

Commit

Permalink
Update GoSDK to: v0.1.46
Browse files Browse the repository at this point in the history
  • Loading branch information
sonariorobot committed Jul 30, 2023
1 parent 8fa244d commit cad8102
Show file tree
Hide file tree
Showing 73 changed files with 136 additions and 126 deletions.
2 changes: 2 additions & 0 deletions pkg/augs/breakpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type Function struct {
PatchedBytes []byte
Hooked bool
Prologue []byte
FunctionCopyStateID int
}

func NewFunction(entry uint64, end uint64, stackFrameSize int32, middleTrampolineAddress unsafe.Pointer, finalTrampolinePointer *uint64) *Function {
Expand All @@ -61,5 +62,6 @@ func NewFunction(entry uint64, end uint64, stackFrameSize int32, middleTrampolin
MiddleTrampolineAddress: middleTrampolineAddress,
FinalTrampolinePointer: finalTrampolinePointer,
Hooked: false,
FunctionCopyStateID: -1,
}
}
2 changes: 1 addition & 1 deletion pkg/information/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package information

import pb "github.com/Rookout/GoSDK/pkg/protobuf"

const VERSION = "0.1.45"
const VERSION = "0.1.46"

func collectVersion(info *AgentInformation) error {
info.Version = &pb.VersionInformation{
Expand Down
27 changes: 27 additions & 0 deletions pkg/services/assembler/LICENSE.assembler
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2009 The Go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
* Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/abi.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/abi_amd64.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/abi_arm64.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/abi_generic.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

//go:build !goexperiment.regabiargs && !amd64 && !arm64 && !ppc64 && !ppc64le && !riscv64
// +build !goexperiment.regabiargs,!amd64,!arm64,!ppc64,!ppc64le,!riscv64
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/compiletype.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/funcpc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/map.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/stack.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/symtab.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/type.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package abi

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/abi/unsafestring_go119.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.



Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/asm/arch/arch.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Package arch defines architecture-specific information and support functions.
package arch
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/asm/arch/arm.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// This file encapsulates some of the odd characteristics of the ARM
// instruction set, to minimize its interaction with the core of the
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/asm/arch/arm64.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// This file encapsulates some of the odd characteristics of the ARM64
// instruction set, to minimize its interaction with the core of the
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/bio/buf.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Package bio implements common I/O abstractions used within the Go toolchain.
package bio
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/bio/buf_mmap.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || (solaris && go1.20)
// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris,go1.20
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/bio/buf_nommap.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !(solaris && go1.20)
// +build !aix
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/bio/must.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package bio

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/buildcfg/cfg.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Package buildcfg provides access to the build configuration
// described by the current environment. It is for use by build tools
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/buildcfg/exp.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package buildcfg

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/dwarf/dwarf.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Package dwarf generates DWARF debugging information.
// DWARF generation is split between the compiler and the linker,
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/dwarf/dwarf_defs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package dwarf

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/goexperiment/flags.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Package goexperiment implements support for toolchain experiments.
//
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/goexperiment/mkconsts.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

//go:build ignore
// +build ignore
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/goobj/builtin.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package goobj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/goobj/funcinfo.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package goobj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/goobj/mkbuiltin.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

//go:build ignore
// +build ignore
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/goobj/objfile.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// This package defines the Go object file format, and provide "low-level" functions
// for reading and writing object files.
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/arm/anames5.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package arm

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/arm64/anames7.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package arm64

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/arm64/doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

/*
Package arm64 implements an ARM64 assembler. Go assembly syntax is different from GNU ARM64
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/dwarf.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Writes dwarf information to object files.

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/go.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package obj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/inl.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package obj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/line.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package obj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/objfile.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// Writing Go object files.

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/pcln.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package obj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/plist.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package obj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/stringer.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

//go:build ignore
// +build ignore
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/textflag.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

// This file defines flags attached to various functions
// and data objects. The compilers, assemblers, and linker must
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/util.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package obj

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/x86/evex.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package x86

Expand Down
2 changes: 1 addition & 1 deletion pkg/services/assembler/internal/obj/x86/seh.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE.assembler file.

package x86

Expand Down
Loading

0 comments on commit cad8102

Please sign in to comment.