Exemplo n.º 1
0
func fetchCurrentDebugState(gdb *gdbmi.GDB, fs map[string]filesystem.WorkspaceFS) debugger_state {
	var state debugger_state
	frames, err := gdb.Stack_list_allframes()
	if err == nil {
		sf := patchFrameSourceLocations(frames, fs)
		state.Frames = *sf
	}
	vars, err := gdb.Stack_list_variables(gdbmi.ListType_all_values)
	if err == nil {
		state.Variables = *vars
	}
	return state
}