]> granicus.if.org Git - strace/commit
Move SH-specific argument number calculation to getllval
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 20 Aug 2016 14:02:55 +0000 (17:02 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 21 Aug 2016 22:02:20 +0000 (22:02 +0000)
commit714a162048c8ef2330c0305c9275fd73eafc62e6
tree26f7b63597564bb4b57fe04425cdcaa1370062c9
parentae5feb49c2fe43965e4ddae8fd1cbbed41dc3ae6
Move SH-specific argument number calculation to getllval

This change prevents scattering of ll-related hacks and simplifies
pread/pwrite syscalls parsers' logic a bit.

* util.c (getllval): Add fixup for arg_no for SuperH when argument
number is equal to 3.
* io.c (PREAD_OFFSET_ARG): Remove.
(SYS_FUNC(pread)): Always use argument number 3 for "count" argument
printing.
(SYS_FUNC(pwrite)): Likewise.
io.c
util.c