projects
/
strace
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
850ba4b
)
umoven_or_printaddr: do not fetch data if not in verbose mode
author
Dmitry V. Levin
<ldv@altlinux.org>
Tue, 14 Jul 2015 22:03:55 +0000
(22:03 +0000)
committer
Dmitry V. Levin
<ldv@altlinux.org>
Tue, 14 Jul 2015 22:07:35 +0000
(22:07 +0000)
After this change, umoven_or_printaddr and its callers, including
printnum_* and printpair_*, will not fetch data in !verbose mode.
* util.c (umoven_or_printaddr): Do not call umoven if !verbose.
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index a7d2bd8569f7e7ebc8e443881825fac9cad00e2c..04cf413a6d578a12b16e05fdae32c46525294d01 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-1102,7
+1102,7
@@
umoven_or_printaddr(struct tcb *tcp, const long addr, const unsigned int len,
tprints("NULL");
return -1;
}
- if ((exiting(tcp) && syserror(tcp)) ||
+ if (
!verbose(tcp) ||
(exiting(tcp) && syserror(tcp)) ||
umoven(tcp, addr, len, our_addr) < 0) {
tprintf("%#lx", addr);
return -1;