GDB (xrefs)

Macros | Typedefs | Functions
/tmp/gdb-8.1/gdb/proc-utils.h File Reference

Go to the source code of this file.

## Macros
#define | PROCFS_NOTE(X) procfs_note (X, __FILE__, __LINE__)
#define | PROC_PRETTYFPRINT_STATUS(X, Y, Z, T) proc_prettyfprint_status (X, Y, Z, T)

## Typedefs
typedef long | procfs_ctl_t

## Functions
void | proc_prettyprint_why (unsigned long why, unsigned long what, int verbose)
void | proc_prettyprint_syscalls (sysset_t *sysset, int verbose)
void | proc_prettyprint_syscall (int num, int verbose)
void | proc_prettyprint_signalset (sigset_t *sigset, int verbose)
void | proc_prettyprint_signal (int signo, int verbose)
void | proc_prettyprint_faultset (fltset_t *fltset, int verbose)
void | proc_prettyprint_fault (int faultno, int verbose)
void | proc_prettyprint_actionset (struct sigaction *actions, int verbose)
void | proc_prettyfprint_signalset (FILE *file, sigset_t *sigset, int verbose)
void | proc_prettyfprint_faultset (FILE *file, fltset_t *fltset, int verbose)
void | proc_prettyfprint_syscall (FILE *file, int num, int verbose)
void | proc_prettyfprint_signal (FILE *file, int signo, int verbose)
void | proc_prettyfprint_flags (FILE *file, unsigned long flags, int verbose)
void | proc_prettyfprint_why (FILE *file, unsigned long why, unsigned long what, int verbose)
void | proc_prettyfprint_fault (FILE *file, int faultno, int verbose)
void | proc_prettyfprint_syscalls (FILE *file, sysset_t *sysset, int verbose)
void | proc_prettyfprint_status (long, int, int, int)
void | proc_prettyprint_flags (unsigned long flags, int verbose)
int | write_with_trace (int, void *, size_t, char *, int)
off_t | lseek_with_trace (int, off_t, int, char *, int)
int | ioctl_with_trace (int, long, void *, char *, int)
pid_t | wait_with_trace (int *, char *, int)
int | open_with_trace (char *, int, char *, int)
int | close_with_trace (int, char *, int)
void | procfs_note (const char *, const char *, int)

## Macro Definition Documentation

## ◆ PROC_PRETTYFPRINT_STATUS

#define PROC_PRETTYFPRINT_STATUS | ( |  | X,
|  |  | Y,
|  |  | Z,
|  |  | T
| ) |  | proc_prettyfprint_status (X, Y, Z, T)

Definition at line 110 of file proc-utils.h.

Referenced by proc_get_status().

## ◆ PROCFS_NOTE

#define PROCFS_NOTE | ( |  | X | ) | procfs_note (X, __FILE__, __LINE__)

Definition at line 109 of file proc-utils.h.

Referenced by procfs_xfer_memory().

## Typedef Documentation

## ◆ procfs_ctl_t

typedef long procfs_ctl_t

Definition at line 118 of file proc-utils.h.

## Function Documentation

## ◆ close_with_trace()

int close_with_trace | ( | int | ,
|  | char * | ,
|  | int |
| ) |  |

Definition at line 323 of file proc-api.c.

References info_verbose, prepare_to_trace(), procfs_file, procfs_trace, and safe_strerror().

## ◆ ioctl_with_trace()

int ioctl_with_trace | ( | int | ,
|  | long | ,
|  | void * | ,
|  | char * | ,
|  | int |
| ) |  |

## ◆ lseek_with_trace()

off_t lseek_with_trace | ( | int | ,
|  | off_t | ,
|  | int | ,
|  | char * | ,
|  | int |
| ) |  |

Definition at line 261 of file proc-api.c.

References lseek_offset, offset, prepare_to_trace(), procfs_file, procfs_trace, and safe_strerror().

## ◆ open_with_trace()

int open_with_trace | ( | char * | ,
|  | int | ,
|  | char * | ,
|  | int |
| ) |  |

Definition at line 282 of file proc-api.c.

References info_verbose, prepare_to_trace(), procfs_file, procfs_trace, and safe_strerror().

## ◆ 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_flags()

void proc_prettyfprint_flags | ( | FILE * | file,
|  | unsigned long | flags,
|  | int | verbose
| ) |  |

Definition at line 94 of file proc-flags.c.

References trans::desc, flags, name, and pr_flag_table.

Referenced by proc_prettyfprint_status(), and proc_prettyprint_flags().

## ◆ 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_status()

void proc_prettyfprint_status | ( | long | ,
|  | int | ,
|  | int | ,
|  | int |
| ) |  |

Definition at line 399 of file proc-api.c.

References flags, prepare_to_trace(), proc_prettyfprint_flags(), proc_prettyfprint_why(), procfs_file, and procfs_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_prettyfprint_why()

void proc_prettyfprint_why | ( | FILE * | file,
|  | unsigned long | why,
|  | unsigned long | what,
|  | int | verbose
| ) |  |

Definition at line 63 of file proc-why.c.

References trans::desc, name, pr_why_table, proc_prettyfprint_fault(), proc_prettyfprint_signal(), and proc_prettyfprint_syscall().

Referenced by proc_prettyfprint_status(), and proc_prettyprint_why().

## ◆ 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_flags()

void proc_prettyprint_flags | ( | unsigned long | flags,
|  | int | verbose
| ) |  |

Definition at line 110 of file proc-flags.c.

References flags, and proc_prettyfprint_flags().

Referenced by procfs_info_proc(), and procfs_wait().

## ◆ 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().

## ◆ proc_prettyprint_why()

void proc_prettyprint_why | ( | unsigned long | why,
|  | unsigned long | what,
|  | int | verbose
| ) |  |

Definition at line 111 of file proc-why.c.

References proc_prettyfprint_why().

Referenced by do_attach(), procfs_info_proc(), and procfs_wait().

## ◆ procfs_note()

void procfs_note | ( | const char * | ,
|  | const char * | ,
|  | int |
| ) |  |

Definition at line 384 of file proc-api.c.

References info_verbose, prepare_to_trace(), procfs_file, and procfs_trace.

## ◆ wait_with_trace()

pid_t wait_with_trace | ( | int * | ,
|  | char * | ,
|  | int |
| ) |  |

Definition at line 349 of file proc-api.c.

References info_verbose, prepare_to_trace(), procfs_file, procfs_trace, and safe_strerror().

## ◆ write_with_trace()

int write_with_trace | ( | int | ,
|  | void * | ,
|  | size_t | ,
|  | char * | ,
|  | int |
| ) |  |

Definition at line 121 of file proc-api.c.

References trans::desc, info_verbose, lseek_offset, trans::name, name, prepare_to_trace(), proc_prettyfprint_faultset(), proc_prettyfprint_signal(), proc_prettyfprint_signalset(), proc_prettyfprint_syscalls(), procfs_file, procfs_trace, rw_table, and safe_strerror().