X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=gdb%2Fnat%2Fx86-dregs.h;h=dd6242eda9591972d08072f026f9d983d15f973c;hb=72f53f22dfc1bb79ae0141a91b8f9786e1964f41;hp=a2b992607e25fb2d67261c3aff61a95fa751989f;hpb=2f56f7c302c8d4012cc47d8bd261b151b2ddfa22;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/nat/x86-dregs.h b/gdb/nat/x86-dregs.h index a2b992607e..dd6242eda9 100644 --- a/gdb/nat/x86-dregs.h +++ b/gdb/nat/x86-dregs.h @@ -1,6 +1,6 @@ /* Debug register code for x86 (i386 and x86-64). - Copyright (C) 2009-2015 Free Software Foundation, Inc. + Copyright (C) 2009-2018 Free Software Foundation, Inc. This file is part of GDB. @@ -92,6 +92,11 @@ struct x86_debug_reg_state #define ALL_DEBUG_ADDRESS_REGISTERS(i) \ for (i = DR_FIRSTADDR; i <= DR_LASTADDR; i++) +/* Return a pointer to the local mirror of the debug registers of + process PID. This function must be provided by the client + if required. */ +extern struct x86_debug_reg_state *x86_debug_reg_state (pid_t pid); + /* Insert a watchpoint to watch a memory region which starts at address ADDR and whose length is LEN bytes. Watch memory accesses of the type TYPE. Return 0 on success, -1 on failure. */