mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
Use the real structure names explicitly. Note that this is mostly for
reading old a.out core files, which are totally 100% non-understandable to the gdb floating-point reader if you have SSE turned on. This should be the last of the world build breakers...
This commit is contained in:
parent
28f74b2003
commit
da81118c1b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79631
@ -136,7 +136,11 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
|
||||
error ("Register %s not found in core file.", gdb_register_names[bad_reg]);
|
||||
}
|
||||
|
||||
#if __FreeBSD_version >= 500022
|
||||
addr = offsetof (struct user, u_pcb) + offsetof (struct pcb, pcb_save);
|
||||
#else
|
||||
addr = offsetof (struct user, u_pcb) + offsetof (struct pcb, pcb_savefpu);
|
||||
#endif
|
||||
memcpy (&pcb_savefpu, core_reg_sect + addr, sizeof pcb_savefpu);
|
||||
}
|
||||
|
||||
@ -166,7 +170,11 @@ extern void print_387_control_word (); /* i387-tdep.h */
|
||||
extern void print_387_status_word ();
|
||||
|
||||
#define fpstate save87
|
||||
#if __FreeBSD_version >= 500022
|
||||
#define U_FPSTATE(u) u.u_pcb.pcb_save.sv_87
|
||||
#else
|
||||
#define U_FPSTATE(u) u.u_pcb.pcb_savefpu
|
||||
#endif
|
||||
|
||||
static void
|
||||
i387_to_double (from, to)
|
||||
|
Loading…
Reference in New Issue
Block a user