[Krafton Jungle] PintOS 2.0.0
크래프톤 정글 PintOS
 
Loading...
Searching...
No Matches
debug.c File Reference
#include <debug.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <syscall.h>
Include dependency graph for debug.c:

Functions

void debug_panic (const char *file, int line, const char *function, const char *message,...)
 

Function Documentation

◆ debug_panic()

void debug_panic ( const char *  file,
int  line,
const char *  function,
const char *  message,
  ... 
)
11 {
12 va_list args;
13
14 printf ("User process ABORT at %s:%d in %s(): ", file, line, function);
15
16 va_start (args, message);
17 vprintf (message, args);
18 printf ("\n");
19 va_end (args);
20
22
23 exit (1);
24}
void debug_backtrace(void)
Definition: debug.c:13
void exit(int status) NO_RETURN
현재 프로세스를 종료시키는 시스템 콜
Definition: syscall.c:173
#define va_end(LIST)
Definition: stdarg.h:10
#define va_start(LIST, ARG)
Definition: stdarg.h:9
__builtin_va_list va_list
Definition: stdarg.h:7
int int int vprintf(const char *, va_list) PRINTF_FORMAT(1
int printf(const char *,...) PRINTF_FORMAT(1
Definition: file.c:7
Here is the call graph for this function: