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