Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] testsuite: Introduce gdb_watchdog (avoid unistd.h/alarm)
Date: Tue, 12 Aug 2025 19:57:13 +0100	[thread overview]
Message-ID: <2e78248c-2838-4655-9420-600c4f3e1868@palves.net> (raw)
In-Reply-To: <87tt2cob4h.fsf@tromey.com>

On 2025-08-12 15:41, Tom Tromey wrote:
>>>>>> "Pedro" == Pedro Alves <pedro@palves.net> writes:
> 
> Pedro> Handle this by adding a new testsuite/lib/gdb_watchdog.h header that
> Pedro> defines a new gdb_watchdog function, which wraps alarm on Unix-like
> Pedro> systems, and uses a timer on Windows.
> 
> It seems like this would need some special work to handle the remote
> host testing case.
> 
> Pedro> +#include "../lib/gdb_watchdog.h"
>  
> ... at least, I assume this isn't automatically copied to the remote.
> 

Hmm.  Yeah, I forget it's also possible to compile on the host side.

I see that for example lib/attributes.h is handled with lappend_include_file
and include_file.  I'll take a better look.

  reply	other threads:[~2025-08-12 18:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-08 22:50 Pedro Alves
2025-08-10  3:28 ` Kevin Buettner
2025-08-11 11:48   ` Pedro Alves
2025-08-12 14:41 ` Tom Tromey
2025-08-12 18:57   ` Pedro Alves [this message]
2025-08-13  0:51     ` [PATCH v2] " Pedro Alves
2025-08-22 19:08       ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e78248c-2838-4655-9420-600c4f3e1868@palves.net \
    --to=pedro@palves.net \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox