go-breakpoint.c 379 B

123456789101112131415161718
  1. /* go-breakpoint.c -- the runtime.Breakpoint function.
  2. Copyright 2009 The Go Authors. All rights reserved.
  3. Use of this source code is governed by a BSD-style
  4. license that can be found in the LICENSE file. */
  5. #include <sched.h>
  6. #include "runtime.h"
  7. void Breakpoint (void) __asm__ (GOSYM_PREFIX "runtime.Breakpoint");
  8. void
  9. Breakpoint (void)
  10. {
  11. __builtin_trap ();
  12. }