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.
This commit is contained in:
Дмитрий Левин 2016-12-19 14:21:40 +00:00
parent fc346f1d91
commit dfff7d5571
2 changed files with 0 additions and 16 deletions

1
defs.h
View File

@ -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 *);

15
util.c
View File

@ -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)
{