]> granicus.if.org Git - strace/commit
Change printnum_* printers to honor syserror
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 13 Jul 2015 20:44:01 +0000 (20:44 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 14 Jul 2015 21:59:26 +0000 (21:59 +0000)
commit850ba4b1e92c182ba44dc542a92d23e747273a3e
treeeb2b78eca352bfdd9075663455403efdbf489718
parentfd3cdc04d89fde9792db823e3ded17071bcd045b
Change printnum_* printers to honor syserror

With this change, printnum_* printers will not attempt to fetch data
in case of exiting(tcp) && syserror(tcp).
All "at exiting" decoders that call these printers have been made
ready for this change in previous commits.

* util.c (DEF_PRINTNUM, DEF_PRINTPAIR): Use umove_or_printaddr.
* prctl.c (prctl_exit): Use printnum_int and printnum_long.
(sys_arch_prctl): Do not check for syserror.
prctl.c
util.c