From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eli Zaretskii" To: Ulrich Weigand Cc: gdb-patches@sources.redhat.com, orjan.friberg@axis.com, kettenis@chello.nl, drow@false.org Subject: Re: [PATCH] Fix watchpoints on s390 Date: Tue, 11 May 2004 06:27:00 -0000 Message-id: <3405-Tue11May2004092418+0300-eliz@gnu.org> References: <200405101738.TAA07374@faui1d.informatik.uni-erlangen.de> X-SW-Source: 2004-05/msg00328.html > From: Ulrich Weigand > Date: Mon, 10 May 2004 19:38:29 +0200 (CEST) > > this is the second attempt to fix watchpoints on s390 by using > STOPPED_BY_WATCHPOINT instead of target_stopped_data_address > in bpstat_stop_status to find out whether the target stopped > due to a hardware watchpoint. > > As STOPPED_BY_WATCHPOINT requires an argument not available > in breakpoint.c, and furthermore some targets define this > macro so as to access other local variables not even passed > as arguments, calling this macro from anywhere else is not > trivial. > > Thus, this patch simply remembers the return value of > STOPPED_BY_WATCHPOINT in handle_inferior_event, and passes > *that* as argument to bpstat_stop_status. This should > work on all targets ... This patch is fine with me. Thanks.