github.com/llvm-mirror/llgo@v0.0.0-20190322182713-bf6f0a60fce1/third_party/gofrontend/libgo/runtime/go-breakpoint.c (about)

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