From: "Schimpe, Christina" <christina.schimpe@intel.com>
To: Hannes Domani <ssbssa@yahoo.de>,
"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: Tom Tromey <tom@tromey.com>
Subject: RE: [PATCH v2 08/11] Move software breakpoint recognition code into x86-windows-nat.c
Date: Mon, 19 Jan 2026 12:51:48 +0000 [thread overview]
Message-ID: <SN7PR11MB76384047ED97E34F1E09B125F988A@SN7PR11MB7638.namprd11.prod.outlook.com> (raw)
In-Reply-To: <20260117134052.2660009-8-ssbssa@yahoo.de>
> -----Original Message-----
> From: Hannes Domani <ssbssa@yahoo.de>
> Sent: Samstag, 17. Januar 2026 14:36
> To: gdb-patches@sourceware.org
> Cc: Tom Tromey <tom@tromey.com>
> Subject: [PATCH v2 08/11] Move software breakpoint recognition code into
> x86-windows-nat.c
>
> Approved-By: Tom Tromey <tom@tromey.com>
> ---
> Changes in v2:
> - changed EXCEPTION_RECORD to ER in comment
> ---
> gdb/windows-nat.c | 11 +++--------
> gdb/windows-nat.h | 3 +++
> gdb/x86-windows-nat.c | 11 +++++++++++
> 3 files changed, 17 insertions(+), 8 deletions(-)
>
> diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index
> f9d07336cca..3ed34087bf9 100644
> --- a/gdb/windows-nat.c
> +++ b/gdb/windows-nat.c
> @@ -1147,10 +1147,7 @@
> windows_nat_target::get_windows_debug_event
> thread_id, windows_process->desired_stop_thread_id);
>
> if (current_event->dwDebugEventCode == EXCEPTION_DEBUG_EVENT
> - && ((current_event->u.Exception.ExceptionRecord.ExceptionCode
> - == EXCEPTION_BREAKPOINT)
> - || (current_event->u.Exception.ExceptionRecord.ExceptionCode
> - == STATUS_WX86_BREAKPOINT))
> + && is_sw_breakpoint (¤t_event-
> >u.Exception.ExceptionRecord)
> && windows_process->windows_initialization_done)
> {
> ptid_t ptid = ptid_t (current_event->dwProcessId, thread_id, 0); @@
> -1201,10 +1198,8 @@ windows_nat_target::wait (ptid_t ptid, struct
> target_waitstatus *ourstatus,
> th->stopped_at_software_breakpoint = false;
> if (windows_process->current_event.dwDebugEventCode
> == EXCEPTION_DEBUG_EVENT
> - && ((windows_process-
> >current_event.u.Exception.ExceptionRecord.ExceptionCode
> - == EXCEPTION_BREAKPOINT)
> - || (windows_process-
> >current_event.u.Exception.ExceptionRecord.ExceptionCode
> - == STATUS_WX86_BREAKPOINT))
> + && is_sw_breakpoint (&windows_process->current_event
> + .u.Exception.ExceptionRecord)
> && windows_process->windows_initialization_done)
> {
> th->stopped_at_software_breakpoint = true; diff --git
> a/gdb/windows-nat.h b/gdb/windows-nat.h index
> df872907535..9257211dfd2 100644
> --- a/gdb/windows-nat.h
> +++ b/gdb/windows-nat.h
> @@ -215,6 +215,9 @@ struct windows_nat_target : public inf_child_target
> virtual void store_one_register (const struct regcache *regcache,
> windows_thread_info *th, int r) = 0;
>
> + /* Determine if ER contains a software-breakpoint. */ virtual bool
> + is_sw_breakpoint (EXCEPTION_RECORD *er) = 0;
Nit: Shouldn't this better be "const EXCEPTION_RECORD *er" ?
Otherwise, this LGTM.
Reviewed-By: Christina Schimpe <christina.schimpe@intel.com>
Christina
Intel Deutschland GmbH
Registered Address: Dornacher Straße 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht München HRB 186928
next prev parent reply other threads:[~2026-01-19 12:52 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260117134052.2660009-1-ssbssa.ref@yahoo.de>
2026-01-17 13:36 ` [PATCH v2 01/11] Remove duplicate code from windows_nat_target::resume Hannes Domani
2026-01-17 13:36 ` [PATCH v2 02/11] Simplify windows_nat_target::resume Hannes Domani
2026-01-19 13:55 ` Schimpe, Christina
2026-01-21 15:42 ` Tom Tromey
2026-01-23 19:11 ` Hannes Domani
2026-01-17 13:36 ` [PATCH v2 03/11] Move struct declarations into windows-nat.h Hannes Domani
2026-01-17 13:36 ` [PATCH v2 04/11] Create x86-windows-nat.c Hannes Domani
2026-01-21 15:38 ` Tom Tromey
2026-01-17 13:36 ` [PATCH v2 05/11] Move x86 debug registers and related code into x86-windows-nat.c Hannes Domani
2026-01-19 12:49 ` Schimpe, Christina
2026-01-20 15:49 ` Hannes Domani
2026-01-21 8:06 ` Schimpe, Christina
2026-01-23 13:17 ` [PATCH v3] " Hannes Domani
2026-01-23 18:50 ` Tom Tromey
2026-01-23 19:20 ` Hannes Domani
2026-01-23 19:56 ` Tom Tromey
2026-01-17 13:36 ` [PATCH v2 06/11] Move x86 register " Hannes Domani
2026-01-19 12:50 ` Schimpe, Christina
2026-01-17 13:36 ` [PATCH v2 07/11] Move x86 selector " Hannes Domani
2026-01-19 13:56 ` Schimpe, Christina
2026-01-17 13:36 ` [PATCH v2 08/11] Move software breakpoint recognition " Hannes Domani
2026-01-19 12:51 ` Schimpe, Christina [this message]
2026-01-21 15:43 ` Tom Tromey
2026-01-23 19:12 ` Hannes Domani
2026-01-17 13:36 ` [PATCH v2 09/11] Move auto_wide_charset gdbarch method to windows-tdep Hannes Domani
2026-01-17 13:36 ` [PATCH v2 10/11] Move setting size of long " Hannes Domani
2026-01-21 15:47 ` Tom Tromey
2026-01-17 13:54 ` [PATCH v2 04/11] Create x86-windows-nat.c Hannes Domani
2026-01-17 14:01 ` Hannes Domani
2026-01-17 14:14 ` Hannes Domani
2026-01-17 15:04 ` Simon Marchi
2026-01-17 15:15 ` Hannes Domani
2026-01-17 13:54 ` [PATCH v2 05/11] Move x86 debug registers and related code into x86-windows-nat.c Hannes Domani
2026-01-17 13:54 ` [PATCH v2 06/11] Move x86 register " Hannes Domani
2026-01-21 16:08 ` Tom Tromey
2026-01-17 13:54 ` [PATCH v2 09/11] Move auto_wide_charset gdbarch method to windows-tdep Hannes Domani
2026-01-21 15:48 ` Tom Tromey
2026-01-23 19:13 ` Hannes Domani
2026-01-17 13:54 ` [PATCH v2 10/11] Move setting size of long " Hannes Domani
2026-01-21 15:59 ` Tom Tromey
2026-01-17 13:54 ` [PATCH v2 11/11] Add aarch64-windows support Hannes Domani
2026-01-17 16:04 ` Eli Zaretskii
2026-01-21 16:18 ` Tom Tromey
2026-01-23 19:14 ` Hannes Domani
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=SN7PR11MB76384047ED97E34F1E09B125F988A@SN7PR11MB7638.namprd11.prod.outlook.com \
--to=christina.schimpe@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=ssbssa@yahoo.de \
--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