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