Re: [hurd,commited] tst-backtrace5: Fix on hurd

Adhemerval Zanella Netto <[email protected]>
Newsgroups gmane.os.hurd.cvs,gmane.comp.lib.glibc.alpha
Organization Linaro
Message-ID <[email protected]>

On 30/08/26 19:47, Samuel Thibault wrote:
> hurd has intermediate io_read and read_nocancel functions, skip them down to
> the actual read call from the test.
> ---
>  debug/tst-backtrace5.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/debug/tst-backtrace5.c b/debug/tst-backtrace5.c
> index 6538da9ab5..75a018670a 100644
> --- a/debug/tst-backtrace5.c
> +++ b/debug/tst-backtrace5.c
> @@ -77,9 +77,9 @@ handle_signal (int signum)
>  
>    /* Skip the signal trampoline and any cancellable syscall wrapper frames
>       (__syscall_cancel*) and require the read syscall wrapper to be
> -     present.  */
> +     present (but skip intermediates).  */
>    for (i = 1; i < n; i++)
> -    if (match (symbols[i], "read"))
> +    if (match (symbols[i], "read") && !match (symbols[i], "read_nocancel") && !match (symbols[i], "io_read"))

I think this line is too long, otherwise looks ok.

>        break;
>    if (i == n)
>      {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.