Move duplicated Linux x86 code to nat/x86-linux.c
authorGary Benson <gbenson@redhat.com>
Tue, 24 Mar 2015 14:05:45 +0000 (14:05 +0000)
committerGary Benson <gbenson@redhat.com>
Tue, 24 Mar 2015 14:05:45 +0000 (14:05 +0000)
commit369f6daa21bf33a09ef67b002e4cec3595eddfe7
tree4da77bcb79beb7c74b77ef6666006ee89b870ffa
parent8e5d40700492597d103ebdb68eab733456b66fad
Move duplicated Linux x86 code to nat/x86-linux.c

This commit moves two identical functions from gdb/x86-linux-nat.c and
gdb/gdbserver/linux-x86-low.c into the shared file gdb/nat/x86-linux.c.

gdb/ChangeLog:

* nat/x86-linux.h (x86_linux_new_thread): New declaration.
(x86_linux_prepare_to_resume): Likewise.
* x86-linux-nat.c (x86_linux_new_thread):
Moved to nat/x86-linux.c.
(x86_linux_prepare_to_resume): Likewise.
* nat/x86-linux.c (x86_linux_new_thread): New function.
(x86_linux_prepare_to_resume): Likewise.

gdb/gdbserver/ChangeLog:

* linux-x86-low.c (x86_linux_new_thread): Moved to
nat/x86-linux.c.
(x86_linux_prepare_to_resume): Likewise.
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-x86-low.c
gdb/nat/x86-linux.c
gdb/nat/x86-linux.h
gdb/x86-linux-nat.c