linux-user/mips64: set EF_MIPS_ABI2 in mipsn32 core dumps
mipsn32 core files had e_flags 0, so gdb took them for o32, found no general-purpose registers and failed with an internal error in frame_unwind_find_by_frame. Linux sets e_flags to EF_MIPS_ABI2 for n32 cores (user_mipsn32_view in arch/mips/kernel/ptrace.c). Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
1 parent
7fc447ef3d
commit
b508dd9c65
1 file changed
+2
@@ -16,6 +16,8 @@
|
||||
|
||||
#ifdef TARGET_ABI_MIPSN32
|
||||
#define elf_check_abi(x) ((x) & EF_MIPS_ABI2)
|
||||
/* See linux kernel: arch/mips/kernel/ptrace.c, user_mipsn32_view. */
|
||||
#define elf_core_eflags(info) EF_MIPS_ABI2
|
||||
#else
|
||||
#define elf_check_abi(x) (!((x) & EF_MIPS_ABI2))
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user