Segment register reading on Windows targets.
authorJoel Brobecker <brobecker@gnat.com>
Fri, 4 May 2012 18:36:30 +0000 (18:36 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 4 May 2012 18:36:30 +0000 (18:36 +0000)
commitd40dc7a8d850464cac07725c257f662e81f894a4
treeff7318456968c7e10a38a0782539d8e4063f563c
parentae5c1c7b1d58e52f5526facbb7dac5567a665874
Segment register reading on Windows targets.

This patch makes sure that the value of segment registers are
read properly as 16bit values on Windows.

gdb/ChangeLog:

        * windows-nat.h (segment_register_p_ftype): New typedef.
        (windows_set_segment_register_p): Add declaration.
        * windows-nat.c (segment_register_p): New static global.
        (windows_set_segment_register_p): New function.
        (do_windows_fetch_inferior_registers): Add special handling
        for segment registers.
        * amd64-windows-nat.c: #include "amd64-tdep.h".
        (amd64_windows_segment_register_p): New function.
        (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
        * i386-windows-nat.c: #include "i386-tdep.h".
        (i386_windows_segment_register_p): New function.
        (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
gdb/ChangeLog
gdb/amd64-windows-nat.c
gdb/i386-windows-nat.c
gdb/windows-nat.c
gdb/windows-nat.h
This page took 0.028817 seconds and 4 git commands to generate.