diff options
Diffstat (limited to 'libgo/runtime/go-breakpoint.c')
-rw-r--r-- | libgo/runtime/go-breakpoint.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libgo/runtime/go-breakpoint.c b/libgo/runtime/go-breakpoint.c new file mode 100644 index 00000000000..bb6eddc36fc --- /dev/null +++ b/libgo/runtime/go-breakpoint.c @@ -0,0 +1,15 @@ +/* go-breakpoint.c -- the runtime.Breakpoint function. + + 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. */ + +#include <sched.h> + +void Breakpoint (void) asm ("libgo_runtime.runtime.Breakpoint"); + +void +Breakpoint (void) +{ + __builtin_trap (); +} |