GDB (xrefs)

Macros | Typedefs | Enumerations | Functions | Variables
/tmp/gdb-8.1/gdb/mips-linux-tdep.h File Reference

Go to the source code of this file.

## Macros
#define | ELF_NGREG 45
#define | ELF_NFPREG 33
#define | FPR_BASE 32
#define | PC 64
#define | CAUSE 65
#define | BADVADDR 66
#define | MMHI 67
#define | MMLO 68
#define | FPC_CSR 69
#define | FPC_EIR 70
#define | DSP_BASE 71
#define | DSP_CONTROL 77
#define | EF_REG0 6
#define | EF_REG31 37
#define | EF_LO 38
#define | EF_HI 39
#define | EF_CP0_EPC 40
#define | EF_CP0_BADVADDR 41
#define | EF_CP0_STATUS 42
#define | EF_CP0_CAUSE 43
#define | EF_SIZE 180
#define | MIPS64_ELF_NGREG 45
#define | MIPS64_ELF_NFPREG 33
#define | MIPS64_FPR_BASE 32
#define | MIPS64_PC 64
#define | MIPS64_CAUSE 65
#define | MIPS64_BADVADDR 66
#define | MIPS64_MMHI 67
#define | MIPS64_MMLO 68
#define | MIPS64_FPC_CSR 69
#define | MIPS64_FPC_EIR 70
#define | MIPS64_EF_REG0 0
#define | MIPS64_EF_REG31 31
#define | MIPS64_EF_LO 32
#define | MIPS64_EF_HI 33
#define | MIPS64_EF_CP0_EPC 34
#define | MIPS64_EF_CP0_BADVADDR 35
#define | MIPS64_EF_CP0_STATUS 36
#define | MIPS64_EF_CP0_CAUSE 37
#define | MIPS64_EF_SIZE 304

## Typedefs
typedef unsigned char | mips_elf_greg_t[4]
typedef mips_elf_greg_t | mips_elf_gregset_t[ELF_NGREG]
typedef unsigned char | mips_elf_fpreg_t[8]
typedef mips_elf_fpreg_t | mips_elf_fpregset_t[ELF_NFPREG]
typedef unsigned char | mips64_elf_greg_t[8]
typedef mips64_elf_greg_t | mips64_elf_gregset_t[MIPS64_ELF_NGREG]
typedef unsigned char | mips64_elf_fpreg_t[8]
typedef mips64_elf_fpreg_t | mips64_elf_fpregset_t[MIPS64_ELF_NFPREG]

## Enumerations
enum | { MIPS_RESTART_REGNUM = 79 }

## Functions
void | mips_supply_gregset (struct regcache *, const mips_elf_gregset_t *)
void | mips_fill_gregset (const struct regcache *, mips_elf_gregset_t *, int)
void | mips_supply_fpregset (struct regcache *, const mips_elf_fpregset_t *)
void | mips_fill_fpregset (const struct regcache *, mips_elf_fpregset_t *, int)
void | mips64_supply_gregset (struct regcache *, const mips64_elf_gregset_t *)
void | mips64_fill_gregset (const struct regcache *, mips64_elf_gregset_t *, int)
void | mips64_supply_fpregset (struct regcache *, const mips64_elf_fpregset_t *)
void | mips64_fill_fpregset (const struct regcache *, mips64_elf_fpregset_t *, int)
int | mips_linux_restart_reg_p (struct gdbarch *gdbarch)

## Variables
struct target_desc * | tdesc_mips_linux
struct target_desc * | tdesc_mips64_linux
struct target_desc * | tdesc_mips_dsp_linux
struct target_desc * | tdesc_mips64_dsp_linux

## Macro Definition Documentation

## ◆ BADVADDR

#define BADVADDR 66

Definition at line 34 of file mips-linux-tdep.h.

Referenced by mips_linux_register_addr().

## ◆ CAUSE

#define CAUSE 65

Definition at line 33 of file mips-linux-tdep.h.

Referenced by mips_linux_register_addr().

## ◆ DSP_BASE

#define DSP_BASE 71

Definition at line 39 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr(), and mips_linux_register_addr().

## ◆ DSP_CONTROL

#define DSP_CONTROL 77

Definition at line 40 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr(), mips_linux_read_description(), and mips_linux_register_addr().

## ◆ EF_CP0_BADVADDR

#define EF_CP0_BADVADDR 41

Definition at line 47 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_CP0_CAUSE

#define EF_CP0_CAUSE 43

Definition at line 49 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_CP0_EPC

#define EF_CP0_EPC 40

Definition at line 46 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_CP0_STATUS

#define EF_CP0_STATUS 42

Definition at line 48 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_HI

#define EF_HI 39

Definition at line 45 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_LO

#define EF_LO 38

Definition at line 44 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_REG0

#define EF_REG0 6

Definition at line 42 of file mips-linux-tdep.h.

Referenced by mips_fill_gregset(), and mips_supply_gregset().

## ◆ EF_REG31

#define EF_REG31 37

Definition at line 43 of file mips-linux-tdep.h.

Referenced by mips_supply_gregset().

## ◆ EF_SIZE

#define EF_SIZE 180

Definition at line 51 of file mips-linux-tdep.h.

## ◆ ELF_NFPREG

#define ELF_NFPREG 33

Definition at line 22 of file mips-linux-tdep.h.

## ◆ ELF_NGREG

#define ELF_NGREG 45

Definition at line 21 of file mips-linux-tdep.h.

Referenced by ps_get_thread_area().

## ◆ FPC_CSR

#define FPC_CSR 69

Definition at line 37 of file mips-linux-tdep.h.

Referenced by mips_linux_register_addr().

## ◆ FPC_EIR

#define FPC_EIR 70

Definition at line 38 of file mips-linux-tdep.h.

Referenced by mips_linux_register_addr().

## ◆ FPR_BASE

#define FPR_BASE 32

Definition at line 31 of file mips-linux-tdep.h.

Referenced by alpha_linux_register_u_offset(), and mips_linux_register_addr().

## ◆ MIPS64_BADVADDR

#define MIPS64_BADVADDR 66

Definition at line 74 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_CAUSE

#define MIPS64_CAUSE 65

Definition at line 73 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_EF_CP0_BADVADDR

#define MIPS64_EF_CP0_BADVADDR 35

Definition at line 85 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_CP0_CAUSE

#define MIPS64_EF_CP0_CAUSE 37

Definition at line 87 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_CP0_EPC

#define MIPS64_EF_CP0_EPC 34

Definition at line 84 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_CP0_STATUS

#define MIPS64_EF_CP0_STATUS 36

Definition at line 86 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_HI

#define MIPS64_EF_HI 33

Definition at line 83 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_LO

#define MIPS64_EF_LO 32

Definition at line 82 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_REG0

#define MIPS64_EF_REG0 0

Definition at line 80 of file mips-linux-tdep.h.

Referenced by mips64_fill_gregset(), and mips64_supply_gregset().

## ◆ MIPS64_EF_REG31

#define MIPS64_EF_REG31 31

Definition at line 81 of file mips-linux-tdep.h.

Referenced by mips64_supply_gregset().

## ◆ MIPS64_EF_SIZE

#define MIPS64_EF_SIZE 304

Definition at line 89 of file mips-linux-tdep.h.

## ◆ MIPS64_ELF_NFPREG

#define MIPS64_ELF_NFPREG 33

Definition at line 62 of file mips-linux-tdep.h.

## ◆ MIPS64_ELF_NGREG

#define MIPS64_ELF_NGREG 45

Definition at line 61 of file mips-linux-tdep.h.

## ◆ MIPS64_FPC_CSR

#define MIPS64_FPC_CSR 69

Definition at line 77 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_FPC_EIR

#define MIPS64_FPC_EIR 70

Definition at line 78 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_FPR_BASE

#define MIPS64_FPR_BASE 32

Definition at line 71 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_MMHI

#define MIPS64_MMHI 67

Definition at line 75 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_MMLO

#define MIPS64_MMLO 68

Definition at line 76 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MIPS64_PC

#define MIPS64_PC 64

Definition at line 72 of file mips-linux-tdep.h.

Referenced by mips64_linux_register_addr().

## ◆ MMHI

#define MMHI 67

Definition at line 35 of file mips-linux-tdep.h.

Referenced by mips_linux_register_addr().

## ◆ MMLO

#define MMLO 68

Definition at line 36 of file mips-linux-tdep.h.

Referenced by mips_linux_register_addr().

## ◆ PC

#define PC 64

Definition at line 32 of file mips-linux-tdep.h.

Referenced by alpha_linux_register_u_offset(), and mips_linux_register_addr().

## Typedef Documentation

## ◆ mips64_elf_fpreg_t

typedef unsigned char mips64_elf_fpreg_t[8]

Definition at line 67 of file mips-linux-tdep.h.

## ◆ mips64_elf_fpregset_t

typedef mips64_elf_fpreg_t mips64_elf_fpregset_t[MIPS64_ELF_NFPREG]

Definition at line 68 of file mips-linux-tdep.h.

## ◆ mips64_elf_greg_t

typedef unsigned char mips64_elf_greg_t[8]

Definition at line 64 of file mips-linux-tdep.h.

## ◆ mips64_elf_gregset_t

typedef mips64_elf_greg_t mips64_elf_gregset_t[MIPS64_ELF_NGREG]

Definition at line 65 of file mips-linux-tdep.h.

## ◆ mips_elf_fpreg_t

typedef unsigned char mips_elf_fpreg_t[8]

Definition at line 27 of file mips-linux-tdep.h.

## ◆ mips_elf_fpregset_t

typedef mips_elf_fpreg_t mips_elf_fpregset_t[ELF_NFPREG]

Definition at line 28 of file mips-linux-tdep.h.

## ◆ mips_elf_greg_t

typedef unsigned char mips_elf_greg_t[4]

Definition at line 24 of file mips-linux-tdep.h.

## ◆ mips_elf_gregset_t

typedef mips_elf_greg_t mips_elf_gregset_t[ELF_NGREG]

Definition at line 25 of file mips-linux-tdep.h.

## Enumeration Type Documentation

## ◆ anonymous enum

anonymous enum

Enumerator
MIPS_RESTART_REGNUM |

Definition at line 99 of file mips-linux-tdep.h.

## Function Documentation

## ◆ mips64_fill_fpregset()

void mips64_fill_fpregset | ( | const struct regcache * | ,
|  | mips64_elf_fpregset_t * | ,
|  | int |
| ) |  |

Definition at line 529 of file mips-linux-tdep.c.

References regcache::arch(), gdbarch_byte_order(), gdbarch_fp0_regnum(), mips64_fill_fpregset(), regcache::raw_collect_integer(), regcache_raw_collect(), and register_size().

Referenced by fill_fpregset(), mips64_fill_fpregset(), mips64_fill_fpregset_wrapper(), and mips64_linux_regsets_store_registers().

## ◆ mips64_fill_gregset()

void mips64_fill_gregset | ( | const struct regcache * | ,
|  | mips64_elf_gregset_t * | ,
|  | int |
| ) |  |

Definition at line 415 of file mips-linux-tdep.c.

References regcache::arch(), memset(), MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_CAUSE, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_STATUS, MIPS64_EF_HI, MIPS64_EF_LO, MIPS64_EF_REG0, mips64_fill_gregset(), mips_linux_restart_reg_p(), MIPS_PS_REGNUM, MIPS_RESTART_REGNUM, and regcache::raw_collect_integer().

Referenced by fill_gregset(), mips64_fill_gregset(), mips64_fill_gregset_wrapper(), and mips64_linux_regsets_store_registers().

## ◆ mips64_supply_fpregset()

void mips64_supply_fpregset | ( | struct regcache * | ,
|  | const mips64_elf_fpregset_t * |
| ) |  |

Definition at line 479 of file mips-linux-tdep.c.

References regcache::arch(), gdbarch_byte_order(), gdbarch_fp0_regnum(), regcache_raw_supply(), register_size(), and supply_32bit_reg().

Referenced by mips64_linux_regsets_fetch_registers(), mips64_supply_fpregset_wrapper(), and supply_fpregset().

## ◆ mips64_supply_gregset()

void mips64_supply_gregset | ( | struct regcache * | ,
|  | const mips64_elf_gregset_t * |
| ) |  |

Definition at line 369 of file mips-linux-tdep.c.

References regcache::arch(), MIPS64_EF_CP0_BADVADDR, MIPS64_EF_CP0_CAUSE, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_STATUS, MIPS64_EF_HI, MIPS64_EF_LO, MIPS64_EF_REG0, MIPS64_EF_REG31, mips_linux_restart_reg_p(), MIPS_PS_REGNUM, MIPS_RESTART_REGNUM, MIPS_ZERO_REGNUM, regcache::raw_supply_zeroed(), and supply_64bit_reg().

Referenced by mips64_linux_regsets_fetch_registers(), mips64_supply_gregset_wrapper(), and supply_gregset().

## ◆ mips_fill_fpregset()

void mips_fill_fpregset | ( | const struct regcache * | ,
|  | mips_elf_fpregset_t * | ,
|  | int |
| ) |  |

Definition at line 273 of file mips-linux-tdep.c.

References regcache::arch(), gdbarch_fp0_regnum(), mips_fill_fpregset(), and regcache_raw_collect().

Referenced by fill_fpregset(), mips_fill_fpregset(), and mips_fill_fpregset_wrapper().

## ◆ mips_fill_gregset()

void mips_fill_gregset | ( | const struct regcache * | ,
|  | mips_elf_gregset_t * | ,
|  | int |
| ) |  |

Definition at line 171 of file mips-linux-tdep.c.

References regcache::arch(), EF_CP0_BADVADDR, EF_CP0_CAUSE, EF_CP0_EPC, EF_CP0_STATUS, EF_HI, EF_LO, EF_REG0, memset(), mips_fill_gregset(), mips_linux_restart_reg_p(), MIPS_PS_REGNUM, MIPS_RESTART_REGNUM, and regcache_raw_collect().

Referenced by fill_gregset(), mips_fill_gregset(), and mips_fill_gregset_wrapper().

## ◆ mips_linux_restart_reg_p()

int mips_linux_restart_reg_p | ( | struct gdbarch * | gdbarch | ) |

Definition at line 1366 of file mips-linux-tdep.c.

References gdbarch_target_desc(), MIPS_RESTART_REGNUM, register_size(), and tdesc_has_registers().

Referenced by mips64_fill_gregset(), mips64_linux_register_addr(), mips64_supply_gregset(), mips_fill_gregset(), mips_linux_n32n64_sigframe_init(), mips_linux_o32_sigframe_init(), mips_linux_register_addr(), mips_linux_write_pc(), and mips_supply_gregset().

## ◆ mips_supply_fpregset()

void mips_supply_fpregset | ( | struct regcache * | ,
|  | const mips_elf_fpregset_t * |
| ) |  |

Definition at line 239 of file mips-linux-tdep.c.

References regcache::arch(), gdbarch_fp0_regnum(), regcache::raw_supply_zeroed(), and regcache_raw_supply().

Referenced by mips_supply_fpregset_wrapper(), and supply_fpregset().

## ◆ mips_supply_gregset()

void mips_supply_gregset | ( | struct regcache * | ,
|  | const mips_elf_gregset_t * |
| ) |  |

Definition at line 130 of file mips-linux-tdep.c.

References regcache::arch(), EF_CP0_BADVADDR, EF_CP0_CAUSE, EF_CP0_EPC, EF_CP0_STATUS, EF_HI, EF_LO, EF_REG0, EF_REG31, mips_linux_restart_reg_p(), MIPS_PS_REGNUM, MIPS_RESTART_REGNUM, MIPS_ZERO_REGNUM, regcache::raw_supply_zeroed(), and supply_32bit_reg().

Referenced by mips_supply_gregset_wrapper(), and supply_gregset().

## Variable Documentation

## ◆ tdesc_mips64_dsp_linux

struct target_desc* tdesc_mips64_dsp_linux

Definition at line 8 of file mips64-dsp-linux.c.

Referenced by initialize_tdesc_mips64_dsp_linux(), and mips_linux_read_description().

## ◆ tdesc_mips64_linux

struct target_desc* tdesc_mips64_linux

Definition at line 8 of file mips64-linux.c.

Referenced by initialize_tdesc_mips64_linux(), and mips_linux_read_description().

## ◆ tdesc_mips_dsp_linux

struct target_desc* tdesc_mips_dsp_linux

Definition at line 8 of file mips-dsp-linux.c.

Referenced by initialize_tdesc_mips_dsp_linux(), and mips_linux_read_description().

## ◆ tdesc_mips_linux

struct target_desc* tdesc_mips_linux

Definition at line 8 of file mips-linux.c.

Referenced by initialize_tdesc_mips_linux(), and mips_linux_read_description().