diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2016-08-10 19:22:45 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2016-08-10 19:22:45 +0100 |
commit | 24cdb46e9f0a694b4fbc11085e094857f08c0419 (patch) | |
tree | bcd2b884c7e5923934e0bec0fd26f97ab2aecca6 /gdb/NEWS | |
parent | f571390111e28717935ea1b6edd1afc902c5c61c (diff) | |
download | gdb-24cdb46e9f0a694b4fbc11085e094857f08c0419.zip gdb-24cdb46e9f0a694b4fbc11085e094857f08c0419.tar.gz gdb-24cdb46e9f0a694b4fbc11085e094857f08c0419.tar.bz2 |
Support setting thread names (MS-Windows)
This is done by catching an exception number 0x406d1388 (it has no
documented name, though MSDN dubs it "MS_VC_EXCEPTION" in one code
example), which is thrown by the program. The exception record
contains an ID of a thread and a name to give it.
This requires rolling back some changes in handle_exception(), which
now again returns more than two distinct values. The new
HANDLE_EXCEPTION_IGNORED value means that gdb should just continue,
without returning the thread ID up the stack (which would result in
further handling of the exception, which is not what we want).
gdb/ChangeLog:
2016-08-10 Руслан Ижбулатов <lrn1986@gmail.com>
Pedro Alves <palves@redhat.com>
* windows-nat.c (MS_VC_EXCEPTION): New define.
(handle_exception_result): New enum.
(windows_delete_thread): Free the thread's name.
(handle_exception): Handle MS_VC_EXCEPTION.
(get_windows_debug_event): Handle HANDLE_EXCEPTION_IGNORED.
(windows_thread_name): New function.
(windows_target): Install it as to_thread_name method.
* NEWS: Mention the thread naming support on MS-Windows.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,12 @@ *** Changes since GDB 7.12 +* Support for thread names on MS-Windows. + + GDB now catches and handles the special exception that programs + running on MS-Windows use to assign names to threads in the + debugger. + *** Changes in GDB 7.12 * GDB and GDBserver now build with a C++ compiler by default. |