Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gcore, x86: follow renaming of fs/gs menbers of thread_struct on x86_64
The following commit renamed thread_struct's fs/gs members to fsbase and gsbase: $ git log -1 -p 296f781a commit 296f781a4b7801ad9c1c0219f9e87b6c25e196fe Author: Andy Lutomirski <[email protected]> Date: Tue Apr 26 12:23:29 2016 -0700 x86/asm/64: Rename thread_struct's fs and gs to fsbase and gsbase Unlike ds and es, these are base addresses, not selectors. Rename them so their meaning is more obvious. On x86_32, the field is still called fs. Fixing that could make sense as a future cleanup. This commit follows the renaming. Without this patch, gcore command on x86_64 fails during initialization phase as follows: crash> gcore -f 127 -v 0 16488 gcore: invalid structure member offset: thread_struct_fs FILE: libgcore/gcore_x86.c LINE: 1035 FUNCTION: restore_segment_registers() [../crash/crash] error trace: 7f290ad1d43c => 7f290ad1bb3e => 52b04a => 52afcc 52afcc: OFFSET_verify.part.28+92 52b04a: OFFSET_verify+58 gcore: invalid structure member offset: thread_struct_fs FILE: libgcore/gcore_x86.c LINE: 1035 FUNCTION: restore_segment_registers() Failed. Signed-off-by: HATAYAMA Daisuke <[email protected]>
- Loading branch information