mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
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.
This commit is contained in:
@ -35,4 +35,12 @@ extern void lwp_set_debug_registers_changed (struct lwp_info *lwp,
|
||||
|
||||
extern int lwp_debug_registers_changed (struct lwp_info *lwp);
|
||||
|
||||
/* Function to call when a new thread is detected. */
|
||||
|
||||
extern void x86_linux_new_thread (struct lwp_info *lwp);
|
||||
|
||||
/* Function to call prior to resuming a thread. */
|
||||
|
||||
extern void x86_linux_prepare_to_resume (struct lwp_info *lwp);
|
||||
|
||||
#endif /* X86_LINUX_H */
|
||||
|
Reference in New Issue
Block a user