GDB (xrefs)

Classes | Macros | Functions | Variables
/tmp/gdb-8.1/gdb/proc-events.c File Reference
`#include "defs.h"`
`#include <sys/types.h>`
`#include <sys/procfs.h>`
`#include <sys/syscall.h>`
`#include <sys/fault.h>`
`#include "proc-utils.h"`

Go to the source code of this file.

## Classes
struct | trans

## Macros
#define | _STRUCTURED_PROC 1
#define | MAX_SYSCALLS 262 /* Pretty arbitrary. */

## Functions
static void | init_syscall_table (void)
void | proc_prettyfprint_syscall (FILE *file, int num, int verbose)
void | proc_prettyprint_syscall (int num, int verbose)
void | proc_prettyfprint_syscalls (FILE *file, sysset_t *sysset, int verbose)
void | proc_prettyprint_syscalls (sysset_t *sysset, int verbose)
void | proc_prettyfprint_signal (FILE *file, int signo, int verbose)
void | proc_prettyprint_signal (int signo, int verbose)
void | proc_prettyfprint_signalset (FILE *file, sigset_t *sigset, int verbose)
void | proc_prettyprint_signalset (sigset_t *sigset, int verbose)
static void | prettyfprint_faulttable_entry (FILE *file, int i, int verbose)
void | proc_prettyfprint_fault (FILE *file, int faultno, int verbose)
void | proc_prettyprint_fault (int faultno, int verbose)
void | proc_prettyfprint_faultset (FILE *file, fltset_t *fltset, int verbose)
void | proc_prettyprint_faultset (fltset_t *fltset, int verbose)
void | proc_prettyprint_actionset (struct sigaction *actions, int verbose)
void | _initialize_proc_events (void)

## Variables
static const char * | syscall_table [MAX_SYSCALLS]
static struct trans | signal_table []
static struct trans | fault_table []

## Macro Definition Documentation

## ◆ _STRUCTURED_PROC

#define _STRUCTURED_PROC 1

Definition at line 33 of file proc-events.c.

## ◆ MAX_SYSCALLS

#define MAX_SYSCALLS 262 /* Pretty arbitrary. */

Definition at line 60 of file proc-events.c.

Referenced by proc_prettyfprint_syscalls().

## Function Documentation

## ◆ _initialize_proc_events()

void _initialize_proc_events | ( | void |  | ) |

Definition at line 764 of file proc-events.c.

References init_syscall_table().

## ◆ init_syscall_table()

static void init_syscall_table | ( | void |  | ) |
| static

Definition at line 64 of file proc-events.c.

References syscall_table.

Referenced by _initialize_proc_events().

## ◆ prettyfprint_faulttable_entry()

static void prettyfprint_faulttable_entry | ( | FILE * | file,
|  | int | i,
|  | int | verbose
| ) |  |
| static

Definition at line 698 of file proc-events.c.

References trans::desc, fault_table, and name.

Referenced by proc_prettyfprint_fault(), and proc_prettyfprint_faultset().

## ◆ proc_prettyfprint_fault()

void proc_prettyfprint_fault | ( | FILE * | file,
|  | int | faultno,
|  | int | verbose
| ) |  |

Definition at line 710 of file proc-events.c.

References fault_table, and prettyfprint_faulttable_entry().

Referenced by proc_prettyfprint_why(), and proc_prettyprint_fault().

## ◆ proc_prettyfprint_faultset()

void proc_prettyfprint_faultset | ( | FILE * | file,
|  | fltset_t * | fltset,
|  | int | verbose
| ) |  |

Definition at line 734 of file proc-events.c.

References fault_table, and prettyfprint_faulttable_entry().

Referenced by proc_prettyprint_faultset(), and write_with_trace().

## ◆ proc_prettyfprint_signal()

void proc_prettyfprint_signal | ( | FILE * | file,
|  | int | signo,
|  | int | verbose
| ) |  |

Definition at line 625 of file proc-events.c.

References trans::desc, name, and signal_table.

Referenced by proc_prettyfprint_signalset(), proc_prettyfprint_why(), proc_prettyprint_signal(), and write_with_trace().

## ◆ proc_prettyfprint_signalset()

void proc_prettyfprint_signalset | ( | FILE * | file,
|  | sigset_t * | sigset,
|  | int | verbose
| ) |  |

Definition at line 651 of file proc-events.c.

References proc_prettyfprint_signal().

Referenced by proc_prettyprint_signalset(), and write_with_trace().

## ◆ proc_prettyfprint_syscall()

void proc_prettyfprint_syscall | ( | FILE * | file,
|  | int | num,
|  | int | verbose
| ) |  |

Definition at line 526 of file proc-events.c.

References syscall_table.

Referenced by proc_prettyfprint_syscalls(), proc_prettyfprint_why(), and proc_prettyprint_syscall().

## ◆ proc_prettyfprint_syscalls()

void proc_prettyfprint_syscalls | ( | FILE * | file,
|  | sysset_t * | sysset,
|  | int | verbose
| ) |  |

Definition at line 543 of file proc-events.c.

References MAX_SYSCALLS, and proc_prettyfprint_syscall().

Referenced by proc_prettyprint_syscalls(), and write_with_trace().

## ◆ proc_prettyprint_actionset()

void proc_prettyprint_actionset | ( | struct sigaction * | actions,
|  | int | verbose
| ) |  |

Definition at line 759 of file proc-events.c.

## ◆ proc_prettyprint_fault()

void proc_prettyprint_fault | ( | int | faultno,
|  | int | verbose
| ) |  |

Definition at line 726 of file proc-events.c.

References proc_prettyfprint_fault().

## ◆ proc_prettyprint_faultset()

void proc_prettyprint_faultset | ( | fltset_t * | fltset,
|  | int | verbose
| ) |  |

Definition at line 751 of file proc-events.c.

References proc_prettyfprint_faultset().

## ◆ proc_prettyprint_signal()

void proc_prettyprint_signal | ( | int | signo,
|  | int | verbose
| ) |  |

Definition at line 643 of file proc-events.c.

References proc_prettyfprint_signal().

## ◆ proc_prettyprint_signalset()

void proc_prettyprint_signalset | ( | sigset_t * | sigset,
|  | int | verbose
| ) |  |

Definition at line 668 of file proc-events.c.

References proc_prettyfprint_signalset().

## ◆ proc_prettyprint_syscall()

void proc_prettyprint_syscall | ( | int | num,
|  | int | verbose
| ) |  |

Definition at line 535 of file proc-events.c.

References proc_prettyfprint_syscall().

Referenced by procfs_wait().

## ◆ proc_prettyprint_syscalls()

void proc_prettyprint_syscalls | ( | sysset_t * | sysset,
|  | int | verbose
| ) |  |

Definition at line 556 of file proc-events.c.

References proc_prettyfprint_syscalls().

## Variable Documentation

## ◆ fault_table

struct trans fault_table[]
| static

Initial value:
=
{
{ FLTILL, "FLTILL", "Illegal instruction" },
{ FLTPRIV, "FLTPRIV", "Privileged instruction" },
{ FLTBPT, "FLTBPT", "Breakpoint trap" },
{ FLTTRACE, "FLTTRACE", "Trace trap" },
{ FLTACCESS, "FLTACCESS", "Memory access fault" },
{ FLTBOUNDS, "FLTBOUNDS", "Memory bounds violation" },
{ FLTIOVF, "FLTIOVF", "Integer overflow" },
{ FLTIZDIV, "FLTIZDIV", "Integer zero divide" },
{ FLTFPE, "FLTFPE", "Floating-point exception" },
{ FLTSTACK, "FLTSTACK", "Unrecoverable stack fault" },
{ FLTPAGE, "FLTPAGE", "Recoverable page fault" },
{ FLTWATCH, "FLTWATCH", "User watchpoint" },
}

Definition at line 678 of file proc-events.c.

Referenced by prettyfprint_faulttable_entry(), proc_prettyfprint_fault(), and proc_prettyfprint_faultset().

## ◆ signal_table

struct trans signal_table[]
| static

Definition at line 567 of file proc-events.c.

Referenced by proc_prettyfprint_signal().

## ◆ syscall_table

const char* syscall_table[MAX_SYSCALLS]
| static

Definition at line 61 of file proc-events.c.

Referenced by init_syscall_table(), and proc_prettyfprint_syscall().