forked from Imagelibrary/binutils-gdb
gdbserver: turn target op 'supports_z_point_type' into a method
gdbserver/ChangeLog: 2020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> Turn process_stratum_target's supports_z_point_type op into a method of process_target. * target.h (struct process_stratum_target): Remove the target op. (class process_target): Add the target op. * target.cc (process_target::supports_z_point_type): Define. Update the derived classes and callers below. * mem-break.cc (z_type_supported): Update. * linux-low.cc (linux_target_ops): Update. (linux_supports_z_point_type): Turn into ... (linux_process_target::supports_z_point_type): ... this. * linux-low.h (class linux_process_target): Update. * lynx-low.cc (lynx_target_ops): Update. * nto-low.cc (nto_target_ops): Update. (nto_supports_z_point_type): Turn into ... (nto_process_target::supports_z_point_type): ... this. * nto-low.h (class nto_process_target): Update. * win32-low.cc (win32_target_ops): Update. (win32_supports_z_point_type): Turn into ... (win32_process_target::supports_z_point_type): ... this. * win32-low.h (class win32_process_target): Update.
This commit is contained in:
@@ -70,16 +70,6 @@ class process_target;
|
||||
shared code. */
|
||||
struct process_stratum_target
|
||||
{
|
||||
/* Returns true if GDB Z breakpoint type TYPE is supported, false
|
||||
otherwise. The type is coded as follows:
|
||||
'0' - software-breakpoint
|
||||
'1' - hardware-breakpoint
|
||||
'2' - write watchpoint
|
||||
'3' - read watchpoint
|
||||
'4' - access watchpoint
|
||||
*/
|
||||
int (*supports_z_point_type) (char z_type);
|
||||
|
||||
/* Insert and remove a break or watchpoint.
|
||||
Returns 0 on success, -1 on failure and 1 on unsupported. */
|
||||
|
||||
@@ -476,6 +466,16 @@ public:
|
||||
Read LEN bytes at OFFSET into a buffer at MYADDR. */
|
||||
virtual int read_auxv (CORE_ADDR offset, unsigned char *myaddr,
|
||||
unsigned int len);
|
||||
|
||||
/* Returns true if GDB Z breakpoint type TYPE is supported, false
|
||||
otherwise. The type is coded as follows:
|
||||
'0' - software-breakpoint
|
||||
'1' - hardware-breakpoint
|
||||
'2' - write watchpoint
|
||||
'3' - read watchpoint
|
||||
'4' - access watchpoint
|
||||
*/
|
||||
virtual bool supports_z_point_type (char z_type);
|
||||
};
|
||||
|
||||
extern process_stratum_target *the_target;
|
||||
|
||||
Reference in New Issue
Block a user