diff options
Diffstat (limited to 'gdb/posix-hdep.c')
-rw-r--r-- | gdb/posix-hdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index a0d5c58..0f9d9d0 100644 --- a/gdb/posix-hdep.c +++ b/gdb/posix-hdep.c @@ -1,6 +1,6 @@ /* Host support routines for MinGW, for GDB, the GNU debugger. - Copyright (C) 2006-2024 Free Software Foundation, Inc. + Copyright (C) 2006-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -64,6 +64,7 @@ static c_c_handler_ftype *current_handler; static void handler_wrapper (int num) { + scoped_restore restore_errno = make_scoped_restore (&errno); signal (num, handler_wrapper); if (current_handler != SIG_IGN) current_handler (num); |