]> granicus.if.org Git - strace/commitdiff
Remove getarg_ll
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 14:21:40 +0000 (14:21 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 19 Dec 2016 14:21:40 +0000 (14:21 +0000)
This function has never been used in the code, and in perspective
the whole ext_arg thing will go away.

* defs.h (getarg_ll): Remove prototype.
* util.c (getarg_ll): Remove.

defs.h
util.c

diff --git a/defs.h b/defs.h
index 8232d3cf8ae5b02b7e1f6ecf11f149542e8f732f..f5d0ecbe757c32d4310a9f4eb0107a068ffe2131 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -575,7 +575,6 @@ extern int printxval_searchn(const struct xlat *xlat, size_t xlat_size,
        uint64_t val, const char *dflt);
 #define printxval_search(xlat__, val__, dflt__) \
        printxval_searchn(xlat__, ARRAY_SIZE(xlat__), val__, dflt__)
-extern long long getarg_ll(struct tcb *tcp, int argn);
 extern unsigned long long getarg_ull(struct tcb *tcp, int argn);
 extern int printargs(struct tcb *);
 extern int printargs_u(struct tcb *);
diff --git a/util.c b/util.c
index d7d7c0472b35c1a3b81f80becec9e8b07b7d9e0b..4137e9ee9344ac3f01929c23f91b55eb586ebc78 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1490,21 +1490,6 @@ print_array(struct tcb *tcp,
        return cur >= end_addr;
 }
 
-long long
-getarg_ll(struct tcb *tcp, int argn)
-{
-#if HAVE_STRUCT_TCB_EXT_ARG
-# if SUPPORTED_PERSONALITIES > 1
-       if (current_personality == 1)
-               return (long) tcp->u_arg[argn];
-       else
-# endif
-       return (long long) tcp->ext_arg[argn];
-#else
-       return (long) tcp->u_arg[argn];
-#endif
-}
-
 unsigned long long
 getarg_ull(struct tcb *tcp, int argn)
 {