Code Search for Developers
 
 
  

_kill.c from Gdb at Krugle


Show _kill.c syntax highlighted

#include <_ansi.h>
#include <signal.h>
#include "swi.h"

int _kill _PARAMS ((int, int));

int
_kill (int pid, int sig)
{
  (void) pid; (void) sig;
#ifdef ARM_RDI_MONITOR
  /* Note: The pid argument is thrown away.  */
  switch (sig)
    {
    case SIGABRT:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_RunTimeError);
    default:
      return do_AngelSWI (AngelSWI_Reason_ReportException,
			  (void *) ADP_Stopped_ApplicationExit);
    }
#else
  asm ("swi %a0" :: "i" (SWI_Exit));
#endif
}




See more files for this project here

Gdb

GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.

Project homepage: http://sources.redhat.com/gdb/
Programming language(s): Assembly,C,C++,Expect
License: other

  Makefile.in
  _exit.c
  _kill.c
  aclocal.m4
  coff-iq80310.specs
  coff-pid.specs
  coff-rdimon.specs
  coff-rdpmon.specs
  coff-redboot.ld
  coff-redboot.specs
  configure
  configure.in
  crt0.S
  elf-iq80310.specs
  elf-linux.specs
  elf-pid.specs
  elf-rdimon.specs
  elf-rdpmon.specs
  elf-redboot.ld
  elf-redboot.specs
  libcfunc.c
  linux-crt0.c
  linux-syscall.h
  linux-syscalls0.S
  linux-syscalls1.c
  redboot-crt0.S
  redboot-syscalls.c
  swi.h
  syscall.h
  syscalls.c
  trap.S