diff options
Diffstat (limited to 'gdb/mips-linux-tdep.h')
-rw-r--r-- | gdb/mips-linux-tdep.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/mips-linux-tdep.h b/gdb/mips-linux-tdep.h index 213a745..764208a 100644 --- a/gdb/mips-linux-tdep.h +++ b/gdb/mips-linux-tdep.h @@ -92,3 +92,13 @@ 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); + +enum { + /* The Linux kernel stores an error code from any interrupted + syscall in a "register" (in $0's save slot). */ + MIPS_RESTART_REGNUM = MIPS_LAST_EMBED_REGNUM + 1 +}; + +/* Return 1 if MIPS_RESTART_REGNUM is usable. */ + +int mips_linux_restart_reg_p (struct gdbarch *gdbarch); |