From dfff7d55711e4f83a9b4f513550f0aa39e5f9514 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 19 Dec 2016 14:21:40 +0000 Subject: [PATCH] Remove getarg_ll 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 | 1 - util.c | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/defs.h b/defs.h index 8232d3cf..f5d0ecbe 100644 --- 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 d7d7c047..4137e9ee 100644 --- 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) {