From: John Baldwin <jhb@FreeBSD.org>
To: Pedro Alves <pedro@palves.net>,
Andrew Burgess <aburgess@redhat.com>,
gdb-patches@sourceware.org
Subject: Re: [PATCH 0/3] Fix thread exited messages for remote targets
Date: Tue, 22 Aug 2023 09:54:51 -0700 [thread overview]
Message-ID: <21142ce3-d74b-dce3-0734-842a8a34db21@FreeBSD.org> (raw)
In-Reply-To: <b656fe74-6941-ab87-b52c-97622238d773@palves.net>
On 8/22/23 6:07 AM, Pedro Alves wrote:
> On 2023-08-21 17:10, John Baldwin wrote:
>
>> One question I have is why is the optional metadata specifically a
>> ULONGEST exit code rather than just a std::string suffix? If it were
>> a string then windows-nat.c could use something like:
>>
>> std::string info = string_printf ("with code %u", (unsigned) exit_code).
>> delete_thread_with_info (to_del, info, silent);
>>
>
> The idea was that if other targets want to print something, it'll probably
> be the thread exit code as well, so keeping the text formatting centralized
> ensures any such target prints it in the same way. For example, the remote
> target's "thread exit" stop reply is "wNN", but we're not printing that thread
> exit code today. Remote debugging with Windows gdbserver ideally would want
> to print it, I think. On Linux, we also have access to the lwp's exit code,
> though I think that in practice it's always 0.
Ok, fair enough.
--
John Baldwin
next prev parent reply other threads:[~2023-08-22 16:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-21 9:31 Andrew Burgess
2023-08-21 9:31 ` [PATCH 1/3] gdb: make inferior::clear_thread_list always silent Andrew Burgess
2023-08-21 9:31 ` [PATCH 2/3] gdb: remove the silent parameter from exit_inferior_1 and cleanup Andrew Burgess
2023-08-21 9:31 ` [PATCH 3/3] gdb: centralize "[Thread ...exited]" notifications Andrew Burgess
2023-08-21 16:10 ` [PATCH 0/3] Fix thread exited messages for remote targets John Baldwin
2023-08-22 13:07 ` Pedro Alves
2023-08-22 16:54 ` John Baldwin [this message]
2023-08-22 13:02 ` Pedro Alves
2023-08-23 9:12 ` Andrew Burgess
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=21142ce3-d74b-dce3-0734-842a8a34db21@FreeBSD.org \
--to=jhb@freebsd.org \
--cc=aburgess@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@palves.net \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).