Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cyrus-and/gdb
/ functions
Functions
42 in github.com/cyrus-and/gdb
⨍
Functions
42
◇
Types & classes
10
↓ 30 callers
Function
checkParseRecord
(t *testing.T, input, expected string)
parser_test.go:9
↓ 11 callers
Method
Send
Send issues a command to GDB. Operation is the name of the MI2 command to execute without the leading "-" (this means that it is impossible send a CLI
commands.go:23
↓ 7 callers
Function
bind
(id, action)
web/example/static/script.js:47
↓ 6 callers
Function
yyTokname
(c int)
grammar.go:205
↓ 5 callers
Function
die
(err error, w http.ResponseWriter)
web/handler.go:20
↓ 4 callers
Function
New
New creates and starts a new GDB instance. onNotification if not nil is the callback used to deliver to the client the asynchronous notifications sent
gdb.go:35
↓ 4 callers
Method
Write
Write writes a number of bytes to the target program's input.
gdb.go:111
↓ 4 callers
Function
newClassResult
avoid DRY due to a poor lexer
grammar.go:19
↓ 3 callers
Method
Exit
Exit sends the exit command to GDB and waits for the process to exit.
gdb.go:122
↓ 3 callers
Method
Read
Read reads a number of bytes from the target program's output.
gdb.go:106
↓ 3 callers
Function
yyStatname
(s int)
grammar.go:214
↓ 2 callers
Method
Interrupt
Interrupt sends a signal (SIGINT) to GDB so it can stop the target program and resume the processing of commands.
gdb.go:117
↓ 2 callers
Function
parseRecord
(data string)
lexer.go:117
↓ 2 callers
Function
yylex1
(lex yyLexer, lval *yySymType)
grammar.go:287
↓ 1 callers
Method
Error
(s string)
grammar.go:181
↓ 1 callers
Method
Lex
(lval *yySymType)
grammar.go:180
↓ 1 callers
Function
NewCmd
NewCmd creates a new GDB instance like New, but allows explicitely passing the gdb command to run (including all arguments). cmd is passed as-is to ex
gdb.go:69
↓ 1 callers
Function
NewCustom
Like New, but allows to specify the GDB executable path and arguments.
gdb.go:40
↓ 1 callers
Function
NewHandler
NewHandler returns a new http.ServeMux which automatically spawn a new instance of GDB and offers HTTP mount points to interact with. It is assumed th
web/handler.go:28
↓ 1 callers
Method
Parse
(yyLexer)
grammar.go:185
↓ 1 callers
Function
lexer
(input string)
lexer.go:22
↓ 1 callers
Function
onNotification
(t *testing.T, notification map[string]interface{})
commands_test.go:10
↓ 1 callers
Function
onNotification
(object)
web/example/static/script.js:52
↓ 1 callers
Function
onOutput
(data)
web/example/static/script.js:96
↓ 1 callers
Method
recordReader
()
commands.go:83
↓ 1 callers
Function
yyErrorMessage
(state, lookAhead int)
grammar.go:223
↓ 1 callers
Function
yyNewParser
()
grammar.go:199
↓ 1 callers
Function
yyParse
(yylex yyLexer)
grammar.go:322
Method
CheckedSend
CheckedSend works like Send, except that if the result returned by gdb has class=error, CheckedSend returns a non-nil error value (containing the gdb
commands.go:62
Function
Client
(host, onNotification, onOutput)
web/example/static/script.js:1
Method
Error
(err string)
lexer.go:112
Method
Lex
(lval *yySymType)
lexer.go:100
Method
Lookahead
()
grammar.go:186
Method
Lookahead
()
grammar.go:195
Method
Parse
(yylex yyLexer)
grammar.go:326
Function
TestIO
(t *testing.T)
io_test.go:8
Function
TestInterrupt
(t *testing.T)
interrupt_test.go:8
Function
TestParseRecord
(t *testing.T)
parser_test.go:20
Function
TestSend
(t *testing.T)
commands_test.go:16
Function
dumpResult
(object)
web/example/static/script.js:102
Function
main
()
web/example/main.go:10
Function
main
web/example/test/dummy.c:3