gcc

package
v0.0.0-...-3c72c70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package gcc provides a compiler and debugger implementation that uses the installed GCC toolchain on the host system.

It registers the g++ compiler and the gdb debugger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Compiler is an instance of a g++ compiler.

func NewCompiler

func NewCompiler(nameOrPath string) (*Compiler, error)

NewCompiler initializes a g++ compiler. It looks up an executable using the provided name or uses the executable at the given path, if a path is specified.

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, input io.Reader, outputPath string, opts *toolchain.CompileOptions) error

func (*Compiler) Info

func (c *Compiler) Info() toolchain.CompilerInfo

type Debugger

type Debugger struct {
	// contains filtered or unexported fields
}

Debugger is a GDB debugger.

func NewDebugger

func NewDebugger(nameOrPath string) (*Debugger, error)

NewDebugger creates a gdb debugger instance. It looks up an executable using the provided name or uses the executable at the given path, if a path is specified.

func (*Debugger) Debug

func (d *Debugger) Debug(ctx context.Context, executablePath string, streams *toolchain.DebuggerStreams) error

func (*Debugger) Info

func (d *Debugger) Info() toolchain.DebuggerInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL