From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Atv/DH3T/Gl6sx8AWB0awg (envelope-from ) for ; Thu, 07 May 2026 14:01:33 -0400 Received: by simark.ca (Postfix, from userid 112) id 2319B1E0BA; Thu, 07 May 2026 14:01:33 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 688321E067 for ; Thu, 07 May 2026 14:01:32 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B9E7A4BA23E3 for ; Thu, 7 May 2026 18:01:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9E7A4BA23E3 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by sourceware.org (Postfix) with ESMTPS id B0FAB4BA23CA for ; Thu, 7 May 2026 17:59:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B0FAB4BA23CA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B0FAB4BA23CA Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778176779; cv=none; b=NGIp84gYsklMFbNAKMP94AIwlDwB/FyThf1oGk65+PBgh8A/FDJw1GbbYKFGOBmdLkdgY3spxac8I992ScY9kixY0OS2ChyO6X71N65JnIjKA6l9BrVVfyTsNHm6pXWJ/RS8JabGXftMCI+lh0MxwNL787WlTjHQ1z57CbXnyPE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778176779; c=relaxed/simple; bh=ftfF5HBPxicC5VM+TOOmqCFviXbx5Jt9ClpFcmOa2I4=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=Z0uD/EaYLVP/5/58pzXpjlpc4dHYWnnU3/KTjzRTOmN2EOKyyghAYb2aJVcbiUmO6dKQU4xb2+6lHx96Nmk9NF3RtUg0H6YJ48bzzpO84bGnr/qGzWgAb9pIie6+LUa/LbuGX02mrYZ4OyiQhv78yTvT+m/ZsVW+Iywg8D+CToU= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B0FAB4BA23CA Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4893940bb5eso7404515e9.3 for ; Thu, 07 May 2026 10:59:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778176779; x=1778781579; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ydF0ipOJlHiawzfZCQoBz+AFC159Wm8dwj6dKprvKZg=; b=kzAWzJfuSVl1gjhs7/Myr6pvm8j2ftph1lqE3GK1h8syq3UusOJcz7JNbLJEk4UUEa Co6HE7ttutArv+8War33keX5kT5Kizr1xp7SMqvA9CUUeXL0HsQQd8cBlnaM75TWz7SH WkXjhbG0LtSBufD79pGWgYng5xE+RNCaJgi1sCRPYbVggTsJyojR9GyLqfHDLv0oZNwT 5RClVeP1g3E7bpe6tAkHQXj8cAT5l/KfFESW9mAmfwqYqHXPiwDVu64Fhu9TvZ698BjP 83y/4y8swUsbw+ev6IJqutXCN2zeazkD7atB7DMxznNlrNwGOUJHsD+UmLWqcvithbl4 Pn9g== X-Gm-Message-State: AOJu0YxcLF8u66dZxsCKhJNWOVNTa/bO0fevXNY/kAHg9khNrp9MV1C6 NGy/+Wtco1q4c8CnIDsLFGH8UhfyzCGoEoeiQOrN3Q7xjOQ05ta8hVdpTS+ELw== X-Gm-Gg: AeBDiev4BGEyEL+FyKuzzu5nCLt+F1kXc4robfbSLXUlnKcvyFwKWvKmpbP+pBEBIlV 7xQEn0eRuhwuX2sBtZp3J4CIQo4uFcaxTULL7I9TCr3WTx13aUMesNwZXiFoOUK+KIBefcechq1 2blexSZ/EYirz8VcuGkHl7+TWdoB3ofqBK7VrGF4BpeCp02DdQ/f/lM7yXO/apdG2KMhB5WAEMR h6i0GzhIzcHFl3dM3V8guM6rxttF2s6LAj4ngFCWQN8MMZI3yrkwzJfT+uP03AKi8ehFGXMycc/ GGBh8njlgLjlOankRlbcy3M4jtNn8FJevILZ1wzWkMU6NPsew2sd564D8c2cmx+IToybuLOC+TO /GV5gwlZDPEEvdd1U6CaSuVS/9r5vgMTM1NiRK/WgHzpHOvZEiHzS9Z0aJXlye3XabVqBy7JY9f sATjlYjvO5taCd+ygDBdF9SrU0obXIY215X5E049SoOYQjiPhTO5WoN4cNB3LIUGw= X-Received: by 2002:a05:600c:3b17:b0:483:8062:b2f with SMTP id 5b1f17b1804b1-48e51f18561mr139785495e9.6.1778176778455; Thu, 07 May 2026 10:59:38 -0700 (PDT) Received: from ?IPV6:2001:8a0:facb:a800:4a00:4ee0:fe55:363? ([2001:8a0:facb:a800:4a00:4ee0:fe55:363]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48e538d2878sm223300685e9.15.2026.05.07.10.59.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 May 2026 10:59:37 -0700 (PDT) Message-ID: Date: Thu, 7 May 2026 18:59:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] Windows gdb: Document "info threads" Windows specifics To: Eli Zaretskii Cc: gdb-patches@sourceware.org References: <20260504173344.1278735-1-pedro@palves.net> <20260504173344.1278735-4-pedro@palves.net> <865x53c7hf.fsf@gnu.org> From: Pedro Alves Content-Language: en-US In-Reply-To: <865x53c7hf.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi Eli, On 2026-05-04 20:14, Eli Zaretskii wrote: >> From: Pedro Alves >> +@smallexample >> +(@value{GDBP}) info threads >> + Id Target Id Frame >> + 1 Thread 15648.0x4338 main () at example.c:5 >> + 2 Thread 15648.0x3d58 (in syscall) 0x00007ffde37057b4 in ntdll!ZwWaitForWorkViaWorkerFactory () from C:/WINDOWS/SYSTEM32/ntdll.dll >> +* 3 Thread 15648.0x12d4 (in exception) 0x00007ffde00aa464 in KERNELBASE!CtrlRoutine () from C:/WINDOWS/System32/KERNELBASE.dll >> +@end smallexample > > Aren't these lines too long even for @smallexample? Did you try > generating PDF, and if so, did you get "overlong" warnings from TeX? Indeed, I hadn't looked at the PDF. I don't get "overlong" warnings, but the example does not fit on a PDF page, and is cut on the right hand side. I'd now trimmed as much as I could and wrapped the text in the "Frame" column. Let me know if this looks OK to you this way. > > Otherwise, this is okay. > > Reviewed-By: Eli Zaretskii > >From 8855c2fee69ce081cfc5efd3b5b8556a2b3a1317 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 4 May 2026 17:58:49 +0100 Subject: [PATCH 3/3] Windows gdb: Document "info threads" Windows specifics Document "info threads" Windows specifics in the Windows debugging features section. Change-Id: I2123899bb8482381657ffbb4f0cc99f196526623 commit-id: 856225ce --- gdb/doc/gdb.texinfo | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index f132b8fee21..90f142335c3 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -25908,6 +25908,27 @@ supports @kbd{C-@key{BREAK}} as an alternative interrupt key sequence, which can be used to interrupt the debuggee even if it ignores @kbd{C-c}. +The @code{info threads} command displays whether a thread stopped due +to an exception or whether it stopped while running a system call. +For example: + +@smallexample +(@value{GDBP}) info threads + Id Target Id Frame + 1 Thread 123.0x338 main () at example.c:5 + 2 Thread 123.0xd58 (in syscall) 0x00007ffde37057b4 in + ntdll!ZwWaitForWorkViaWorkerFactory () + from C:/WINDOWS/SYSTEM32/ntdll.dll +* 3 Thread 123.0x2d4 (in exception) 0x00007ffde00aa464 in + KERNELBASE!CtrlRoutine () + from C:/WINDOWS/System32/KERNELBASE.dll +@end smallexample + +Above we see that thread 2 is blocked inside a system call, thread 3 +stopped for an exception, and thread 1 simply stopped while running +user space code. Debug events such as breakpoint traps, single-steps, +and @samp{Ctrl-C} interruptions are considered exceptions. + There are various additional Windows-specific commands, described in this section. Working with DLLs that have no debugging symbols is described in @ref{Non-debug DLL Symbols}. base-commit: 8c0ac471835ec86a67c5b42713d9f138f31e4014 prerequisite-patch-id: 9cbfcc1f25d6c22749699faeb50c2f3ca4632c07 prerequisite-patch-id: 248f41871a76de97d95de3538d27298cdc9b68ce -- 2.53.0