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