diff options
author | Gary Benson <gbenson@redhat.com> | 2015-03-24 14:05:43 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-03-24 14:05:43 +0000 |
commit | 70a0bb6b590bcfe304fe082d421feb52e0a0d4dc (patch) | |
tree | 37aa654b17be58f52482f8c8c99092201478f690 /gdb/x86-nat.h | |
parent | 7b6690874fa3a8afacd731b70a461d55a5b1311c (diff) | |
download | gdb-70a0bb6b590bcfe304fe082d421feb52e0a0d4dc.zip gdb-70a0bb6b590bcfe304fe082d421feb52e0a0d4dc.tar.gz gdb-70a0bb6b590bcfe304fe082d421feb52e0a0d4dc.tar.bz2 |
Add x86_debug_reg_state to gdbserver
This commit introduces a new function, x86_debug_reg_state, that
shared x86 code can use to access the local mirror of a process's
debug registers. This function already existed in GDB and was
in use by GDB's x86_linux_prepare_to_resume. An equivalent was
written for gdbserver and gdbserver's x86_linux_prepare_to_resume
was modified to use it.
gdb/ChangeLog:
* x86-nat.h (x86_debug_reg_state): Move declaration to...
* nat/x86-dregs.h (x86_debug_reg_state): New declaration.
gdb/gdbserver/ChangeLog:
* linux-x86-low.c (x86_debug_reg_state): New function.
(x86_linux_prepare_to_resume): Use the above.
Diffstat (limited to 'gdb/x86-nat.h')
-rw-r--r-- | gdb/x86-nat.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/x86-nat.h b/gdb/x86-nat.h index c8ebd74..dcfef36 100644 --- a/gdb/x86-nat.h +++ b/gdb/x86-nat.h @@ -44,11 +44,6 @@ extern void x86_set_debug_register_length (int len); extern void x86_cleanup_dregs (void); -/* Return a pointer to the local mirror of the debug registers of - process PID. */ - -extern struct x86_debug_reg_state *x86_debug_reg_state (pid_t pid); - /* Called whenever GDB is no longer debugging process PID. It deletes data structures that keep track of debug register state. */ |