public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* x86_64-windows GDB crash due to fs_base/gs_base registers
@ 2018-06-25 18:55 Joel Brobecker
  2018-06-25 18:55 ` [PATCH 1/2] Minor reorganization of fetch_registers/store_registers in windows-nat.c Joel Brobecker
  2018-06-25 18:55 ` [PATCH 2/2] x86_64-windows GDB crash due to fs_base/gs_base registers Joel Brobecker
  0 siblings, 2 replies; 10+ messages in thread
From: Joel Brobecker @ 2018-06-25 18:55 UTC (permalink / raw)
  To: gdb-patches

Hello,

Here are two patches aimed at fixing a crash in GDB when debugging
on native windows targets. The crash only occurs when trying to access
the fs_base/gs_base register, but is fairly easy to trigger, as any
function call will cause that. "info reg" will also trigger it.

When I saw this failure, it made me realize that I found the current
code to be quite fragile, and I wasn't surprised once I understood
the situation that it eventually lead to this crash. As a result,
I decided to implement the register fetch/store code a bit differently.
As such, I did the work in two steps, hence the two patches.

    [PATCH 1/2] Minor reorganization of fetch_registers/store_registers
    [PATCH 2/2] x86_64-windows GDB crash due to fs_base/gs_base registers

Both patches were tested on x86-windows and x86_64-windows, using
AdaCore's testsuite.

Let me know what you think of the approach and choices taken in those
two patches.

Thanks!
-- 
Joel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-06-29 22:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25 18:55 x86_64-windows GDB crash due to fs_base/gs_base registers Joel Brobecker
2018-06-25 18:55 ` [PATCH 1/2] Minor reorganization of fetch_registers/store_registers in windows-nat.c Joel Brobecker
2018-06-26 16:03   ` Pedro Alves
2018-06-26 21:41     ` Joel Brobecker
2018-06-25 18:55 ` [PATCH 2/2] x86_64-windows GDB crash due to fs_base/gs_base registers Joel Brobecker
2018-06-26 16:00   ` Pedro Alves
2018-06-26 21:53     ` Joel Brobecker
2018-06-29 12:32       ` Pedro Alves
2018-06-29 22:08         ` Joel Brobecker
2018-06-29 12:32       ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).