|
|
8d9cfe |
diff -rup a/sysdeps/linux-gnu/aarch64/fetch.c b/sysdeps/linux-gnu/aarch64/fetch.c
|
|
|
8d9cfe |
--- a/sysdeps/linux-gnu/aarch64/fetch.c 2018-07-05 16:06:10.066626252 -0400
|
|
|
8d9cfe |
+++ b/sysdeps/linux-gnu/aarch64/fetch.c 2018-07-05 16:17:17.659748481 -0400
|
|
|
8d9cfe |
@@ -308,12 +308,9 @@ arch_fetch_arg_init(enum tof type, struc
|
|
|
8d9cfe |
struct fetch_script how = pass_arg(context, proc, ret_info);
|
|
|
8d9cfe |
if (how.c == CVT_ERR)
|
|
|
8d9cfe |
goto fail;
|
|
|
8d9cfe |
- if (how.c == CVT_NOP && how.f == FETCH_STACK) {
|
|
|
8d9cfe |
+ if (how.c == CVT_BYREF && how.f == FETCH_GPR) {
|
|
|
8d9cfe |
/* XXX double cast. */
|
|
|
8d9cfe |
context->x8 = (arch_addr_t) (uintptr_t) context->gregs.regs[8];
|
|
|
8d9cfe |
- /* See the comment above about the assert. */
|
|
|
8d9cfe |
- assert(! "Unexpected: first argument passed on stack.");
|
|
|
8d9cfe |
- abort();
|
|
|
8d9cfe |
}
|
|
|
8d9cfe |
|
|
|
8d9cfe |
return context;
|
|
|
8d9cfe |
diff -rup a/testsuite/ltrace.main/system_call_params.exp b/testsuite/ltrace.main/system_call_params.exp
|
|
|
8d9cfe |
--- a/testsuite/ltrace.main/system_call_params.exp 2018-07-05 16:06:10.516624926 -0400
|
|
|
8d9cfe |
+++ b/testsuite/ltrace.main/system_call_params.exp 2018-07-05 16:58:01.549830643 -0400
|
|
|
8d9cfe |
@@ -61,13 +61,13 @@ set conf [ltraceNamedSource "$dir/syscal
|
|
|
8d9cfe |
# doesn't list readdir, that would be taken from somelib.conf with a
|
|
|
8d9cfe |
# wrong prototype.
|
|
|
8d9cfe |
|
|
|
8d9cfe |
-ltraceMatch1 [ltraceRun -L -S -F $conf -- $bin] {^open@SYS\("/some/path"} == 0
|
|
|
8d9cfe |
+ltraceMatch1 [ltraceRun -L -S -F $conf -- $bin] {^open@SYS\("/some/path", 0\)} == 0
|
|
|
8d9cfe |
|
|
|
8d9cfe |
# On the other hand, if -F somedir/ is given, we want to accept
|
|
|
8d9cfe |
# syscalls.conf found there.
|
|
|
8d9cfe |
|
|
|
8d9cfe |
ltraceMatch [ltraceRun -L -S -F $dir -- $bin] {
|
|
|
8d9cfe |
- {{^open@SYS\("/some/path"} == 1}
|
|
|
8d9cfe |
+ {{^open@SYS\("/some/path", 0\)} == 1}
|
|
|
8d9cfe |
{{^write@SYS\(1, "something", 10\)} == 1}
|
|
|
8d9cfe |
{{^mount@SYS\("source", "target", "filesystemtype"} == 1}
|
|
|
8d9cfe |
}
|
|
|
8d9cfe |
Only in b/testsuite/ltrace.main: system_call_params.exp~
|