mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-25 16:36:51 +08:00
gdbserver/s390: Advertise Z0 packet support.
This is necessary for upcoming tracepoint support - otherwise, setting a tracepoint and a breakpoint on the same address will fail, since gdbserver won't know about gdb's breakpoint. Tested on s390x-ibm-linux-gnu and s390-ibm-linux-gnu, RHEL 7.2. gdb/gdbserver/ChangeLog: * linux-s390-low.c (s390_supports_z_point_type): New function. (struct linux_target_ops): Wire s390_supports_z_point_type in.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
|
||||||
|
|
||||||
|
* linux-s390-low.c (s390_supports_z_point_type): New function.
|
||||||
|
(struct linux_target_ops): Wire s390_supports_z_point_type in.
|
||||||
|
|
||||||
2016-02-16 Yao Qi <yao.qi@linaro.org>
|
2016-02-16 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
|
* linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
|
||||||
|
@ -609,6 +609,22 @@ s390_breakpoint_at (CORE_ADDR pc)
|
|||||||
return memcmp (c, s390_breakpoint, s390_breakpoint_len) == 0;
|
return memcmp (c, s390_breakpoint, s390_breakpoint_len) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Breakpoint/Watchpoint support. */
|
||||||
|
|
||||||
|
/* The "supports_z_point_type" linux_target_ops method. */
|
||||||
|
|
||||||
|
static int
|
||||||
|
s390_supports_z_point_type (char z_type)
|
||||||
|
{
|
||||||
|
switch (z_type)
|
||||||
|
{
|
||||||
|
case Z_PACKET_SW_BP:
|
||||||
|
return 1;
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Support for hardware single step. */
|
/* Support for hardware single step. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -687,7 +703,7 @@ struct linux_target_ops the_low_target = {
|
|||||||
NULL,
|
NULL,
|
||||||
s390_breakpoint_len,
|
s390_breakpoint_len,
|
||||||
s390_breakpoint_at,
|
s390_breakpoint_at,
|
||||||
NULL, /* supports_z_point_type */
|
s390_supports_z_point_type,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
Reference in New Issue
Block a user