]> granicus.if.org Git - strace/commit
Introduce current_klongsize in addition to current_wordsize
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 11 Dec 2016 13:30:30 +0000 (16:30 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 14:39:48 +0000 (14:39 +0000)
commit1fe5d9bed56009091dcdec69e0054921de602687
tree3103cbd4fdbed8bb62dc732720895f58c479c25e
parent6452c4deebc14e7000f9349424ddcf9cb9ed799c
Introduce current_klongsize in addition to current_wordsize

Subsequent commits are going to use current_klongsize
as the tracee's size of kernel_ulong_t type.

* defs.h (PERSONALITY0_KLONGSIZE): New macro.
[X86_64] (PERSONALITY2_KLONGSIZE): Likewise.
[SUPPORTED_PERSONALITIES > 1] (PERSONALITY1_KLONGSIZE): Likewise.
[SUPPORTED_PERSONALITIES == 1] (current_klongsize): Likewise.
[SUPPORTED_PERSONALITIES == 2 && PERSONALITY0_KLONGSIZE ==
PERSONALITY1_KLONGSIZE] (current_klongsize): Likewise.
[SUPPORTED_PERSONALITIES != 1 && (SUPPORTED_PERSONALITIES != 2 ||
PERSONALITY0_KLONGSIZE != PERSONALITY1_KLONGSIZE)] (current_klongsize):
New variable prototype.
* syscall.c [!current_klongsize] (current_klongsize): New variable.
[!current_klongsize] (personality_klongsize): New array.
(set_personality) [!current_klongsize]: Update current_klongsize
with the appropriate value from personality_klongsize.
defs.h
syscall.c