This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFAv3 2/6] Improve process exit status macros on MinGW
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Pedro Alves <palves at redhat dot com>
- Cc: philippe dot waroquiers at skynet dot be, gdb-patches at sourceware dot org
- Date: Mon, 06 Jan 2020 18:17:52 +0200
- Subject: Re: [RFAv3 2/6] Improve process exit status macros on MinGW
- References: <20190504161753.15530-1-philippe.waroquiers@skynet.be> <20190504161753.15530-3-philippe.waroquiers@skynet.be> <a8d1a153-4d17-9a3c-82bb-389d44d073d4@redhat.com> <835zie51mf.fsf@gnu.org> <52c4ca33-ffc4-8e1e-fe08-a92123ef02aa@redhat.com> <83o8w536l6.fsf@gnu.org> <3aacf88f-212e-f11f-0688-4f8219dab4c3@redhat.com> <83k16t32no.fsf@gnu.org> <83fth8v1nu.fsf@gnu.org> <52408aa9-5a86-2ade-ec23-c8293eff130d@redhat.com> <83r20ggtxw.fsf@gnu.org> <1fc3ac32-3349-b328-d868-8ed22dcaeeed@redhat.com>
> Cc: philippe.waroquiers@skynet.be, gdb-patches@sourceware.org
> From: Pedro Alves <palves@redhat.com>
> Date: Mon, 6 Jan 2020 11:57:42 +0000
>
> >> I think this should have a NEWS entry, BTW.
> >
> > It's a kind of a bugfix, so I didn't think it was NEWS-worthy.
>
> My thinking is that users that might have been scripting
> around $_exitcode may need to adjust to look at $_exitsignal.
Fair enough. How about the below?
diff --git a/gdb/NEWS b/gdb/NEWS
index f51a989..11e4221 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,9 @@
*** Changes since GDB 9
+* Debugging MS-Windows processes now sets $_exitsignal when the
+ inferior is terminated by a signal, instead of setting $_exitcode.
+
* Multithreaded symbol loading has now been enabled by default on systems
that support it (see entry for GDB 9, below), providing faster
performance for programs with many symbols.