| Summary: | mcinfcallWSRU gdbserver_test fails on ppc64 | ||
|---|---|---|---|
| Product: | [Developer tools] valgrind | Reporter: | Alexandra Hajkova <ahajkova> |
| Component: | general | Assignee: | Julian Seward <jseward> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | mark |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | patch | ||
|
Description
Alexandra Hajkova
2019-04-15 10:22:05 UTC
ppc64 uses "function descriptors", their names starts with a dot "." prefix, the current regexp filters out only names without the "." prefix which makes mcinfcallWSRU gdb output different from what is expected https://www.ibm.com/developerworks/community/blogs/5894415f-be62-4bc0-81c5-3956e82276f3/entry/deeply_understand_64_bit_powerpc_elf_abi_function_descriptors?lang=en perl tests/vg_regtest gdbserver_tests/mcinfcallWSRU.vgtest diff: --- mcinfcallWSRU.stderrB.exp 2019-04-14 16:37:51.920314033 -0400 +++ mcinfcallWSRU.stderrB.out 2019-04-15 06:03:15.547369429 -0400 @@ -21,7 +21,7 @@ 41 for (i = 0; i < burn; i++) loopnr++; $1 = void [Switching to thread 2 (Thread ....)] -#0 0x........ in syscall ... +#0 0x........ in .__select () at ../sysdeps/unix/syscall-template.S:81 Could not write register "xxx"; remote failure reply 'E. ERROR changing register xxx regno y gdb commands changing registers (pc, sp, ...) (e.g. 'jump', @@ -30,7 +30,7 @@ Thread status is VgTs_WaitSys ' [Switching to thread 3 (Thread ....)] -#0 0x........ in syscall ... +#0 0x........ in .__select () at ../sysdeps/unix/syscall-template.S:81 Could not write register "xxx"; remote failure reply 'E. ERROR changing register xxx regno y gdb commands changing registers (pc, sp, ...) (e.g. 'jump', @@ -39,7 +39,7 @@ Thread status is VgTs_WaitSys ' [Switching to thread 4 (Thread ....)] -#0 0x........ in syscall ... +#0 0x........ in .__select () at ../sysdeps/unix/syscall-template.S:81 Could not write register "xxx"; remote failure reply 'E. ERROR changing register xxx regno y gdb commands changing registers (pc, sp, ...) (e.g. 'jump', Created attachment 119421 [details]
patch
Looks correct. Thanks. commit b1cc37ddb660afc536131227a9fb452ac9328972 Author: Alexandra Hájková <ahajkova@redhat.com> Date: Mon Apr 15 15:34:12 2019 +0200 filter_gdb: add regexp to filter out names which starts with a "." such names are used for "function descriptors" on ppc64 https://bugs.kde.org/show_bug.cgi?id=406561 |