Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Re: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops
@ 2003-02-12 19:42 Kris Warkentin
  2003-02-14 18:49 ` Kris Warkentin
  0 siblings, 1 reply; 5+ messages in thread
From: Kris Warkentin @ 2003-02-12 19:42 UTC (permalink / raw)
  To: Kris Warkentin, Andrew Cagney; +Cc: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 3413 bytes --]

Here's take 2 on the patch.  I had a slight error in the definition of
HAVE_CONTINUABLE_WATCHPOINT in the first one.  I was worried about
initialization (since infrun.c wanted the default to be zero) but since
target_ops structures are always declared as global data, it will be fine.

cheers,

Kris

----- Original Message -----
From: "Kris Warkentin" <kewarken@qnx.com>
To: "Andrew Cagney" <ac131313@redhat.com>
Cc: "Mark Kettenis" <kettenis@chello.nl>; <gdb-patches@sources.redhat.com>
Sent: Tuesday, February 11, 2003 1:41 PM
Subject: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops


> Probably easier if I just give a diff for you to comment on.
>
> Changelog Entry:
>
> 2003-02-11    Kris Warkentin    kewarken@qnx.com
>
>     * target.h: Add to_have_continuable_watchpoint to struct target_ops.
>                     Initialize HAVE_CONTINUABLE_WATCHPOINT.
>     * target.c: update_current_target(): Add
to_have_continuable_watchpoint.
>     * infrun.c: remove initialization of HAVE_CONTINUABLE_WATCHPOINT.
>     * config/i386/nm-i386.h: Change HAVE_CONTINUABLE_WATCHPOINT defines to
> 1.
>     * config/i386/nm-i386sco5.h: ditto
>     * config/i386/nm-i386sol2.h: ditto
>     * config/s390/nm-linux.h: ditto
>     * config/sparc/nm-sun4sol2.h: ditto
>
> cheers,
>
> Kris
>
> ----- Original Message -----
> From: "Kris Warkentin" <kewarken@qnx.com>
> To: "Andrew Cagney" <ac131313@redhat.com>
> Cc: "Mark Kettenis" <kettenis@chello.nl>; <gdb-patches@sources.redhat.com>
> Sent: Tuesday, February 11, 2003 1:11 PM
> Subject: Re: patch to add QNX NTO i386 support
>
>
> > Hi Andrew,
> >
> > Sorry it took so long to reply - I took a couple days to do a port of a
> > vxworks lib for a BSP we're working on.
> >
> > Question: can I make any assumption about the initialization of the
> > target_ops vector?  It looks like infrun.c wants
> HAVE_CONTINUABLE_BREAKPOINT
> > to default to zero but I didn't see anywhere int target.[ch] that ops
were
> > being initialized.
> >
> > cheers,
> >
> > Kris
> >
> > > > /* After a watchpoint trap, the PC points to the instruction after
> > > >> >    the one that caused the trap.  Therefore we don't need to step
> > over
> > > >
> > > > it.
> > > >
> > > >> >    But we do need to reset the status register to avoid another
> trap.
> > > >
> > > > */
> > > >
> > > >> > #define HAVE_CONTINUABLE_WATCHPOINT
> > > >
> > > >>
> > > >> Hmm, this poses an interesting problem.  The other i386 targets
have
> > > >> this in their nm.h file, since they consider hardware watchpoints
as
> a
> > > >> native-only feature.  However, this isn't necessarily right since
we
> > > >> might support hardware breakpoints via the remote protocol.  If you
> > > >> can live with the native-only approach, please move this to your
nm.h
> > > >> file.  Otherwise we might need to multi-arch this definition.
> > > >
> > > >
> > > > Okay, file that under TODO along with the solib stuff.  We have
> hardware
> > > > breakpoints on all our remote targets that support them.
> > >
> > > Just FYI, this needs to be added to the target vector (target.h) and
not
> > > the architecture vector.
> > >
> > > For examples, see STOPPED_BY_WATCHPOINT et.al.  A bit of manipulation
of
> > > the existing nm-*.h files will be needed - have them define the value
as
> > 1.
> > >
> > > Can you please submit a separate patch that does just this.
> > >
> > > Andrew
> > >
> > >
> > >
> >
> >
>

[-- Attachment #2: contin2.diff --]
[-- Type: application/octet-stream, Size: 5708 bytes --]

Index: config/i386/nm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386.h,v
retrieving revision 1.3
diff -u -r1.3 nm-i386.h
--- config/i386/nm-i386.h	4 Jul 2002 12:32:29 -0000	1.3
+++ config/i386/nm-i386.h	12 Feb 2003 19:38:15 -0000
@@ -93,7 +93,7 @@
    one that caused the trap.  Therefore we don't need to step over it.
    But we do need to reset the status register to avoid another trap.  */
 
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 
 #define STOPPED_BY_WATCHPOINT(W)       (i386_stopped_data_address () != 0)
 
Index: config/i386/nm-i386sco5.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sco5.h,v
retrieving revision 1.3
diff -u -r1.3 nm-i386sco5.h
--- config/i386/nm-i386sco5.h	18 Aug 2002 22:23:32 -0000	1.3
+++ config/i386/nm-i386sco5.h	12 Feb 2003 19:38:15 -0000
@@ -63,7 +63,7 @@
 /* After a watchpoint trap, the PC points to the instruction which
    caused the trap.  But we can continue over it without disabling the
    trap.  */
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 #define HAVE_STEPPABLE_WATCHPOINT
 
 #define STOPPED_BY_WATCHPOINT(W)  \
Index: config/i386/nm-i386sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sol2.h,v
retrieving revision 1.7
diff -u -r1.7 nm-i386sol2.h
--- config/i386/nm-i386sol2.h	5 Jun 2002 19:18:19 -0000	1.7
+++ config/i386/nm-i386sol2.h	12 Feb 2003 19:38:15 -0000
@@ -32,7 +32,7 @@
 /* When a hardware watchpoint fires off the PC will be left at the
    instruction following the one which caused the watchpoint.  
    It will *NOT* be necessary for GDB to step over the watchpoint. */
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 
 /* Solaris x86 2.6 and 2.7 targets have a kernel bug when stepping
    over an instruction that causes a page fault without triggering
Index: config/s390/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/s390/nm-linux.h,v
retrieving revision 1.5
diff -u -r1.5 nm-linux.h
--- config/s390/nm-linux.h	24 Feb 2002 22:56:06 -0000	1.5
+++ config/s390/nm-linux.h	12 Feb 2003 19:38:15 -0000
@@ -51,7 +51,7 @@
 /* WATCHPOINT SPECIFIC STUFF */
 
 #define TARGET_HAS_HARDWARE_WATCHPOINTS
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 #define target_insert_watchpoint(addr, len, type)  \
   s390_insert_watchpoint (PIDGET (inferior_ptid), addr, len, type)
 
Index: config/sparc/nm-sun4sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/nm-sun4sol2.h,v
retrieving revision 1.9
diff -u -r1.9 nm-sun4sol2.h
--- config/sparc/nm-sun4sol2.h	14 Nov 2002 00:25:05 -0000	1.9
+++ config/sparc/nm-sun4sol2.h	12 Feb 2003 19:38:15 -0000
@@ -51,7 +51,7 @@
 /* When a hardware watchpoint fires off the PC will be left at the
    instruction following the one which caused the watchpoint.  
    It will *NOT* be necessary for GDB to step over the watchpoint. */
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 
 extern int procfs_stopped_by_watchpoint (ptid_t);
 #define STOPPED_BY_WATCHPOINT(W) \
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.96
diff -u -r1.96 infrun.c
--- infrun.c	31 Jan 2003 15:22:57 -0000	1.96
+++ infrun.c	12 Feb 2003 19:38:16 -0000
@@ -226,13 +226,6 @@
 #define HAVE_STEPPABLE_WATCHPOINT 1
 #endif
 
-#ifndef HAVE_CONTINUABLE_WATCHPOINT
-#define HAVE_CONTINUABLE_WATCHPOINT 0
-#else
-#undef  HAVE_CONTINUABLE_WATCHPOINT
-#define HAVE_CONTINUABLE_WATCHPOINT 1
-#endif
-
 #ifndef CANNOT_STEP_HW_WATCHPOINTS
 #define CANNOT_STEP_HW_WATCHPOINTS 0
 #else
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.49
diff -u -r1.49 target.c
--- target.c	19 Jan 2003 04:06:46 -0000	1.49
+++ target.c	12 Feb 2003 19:38:17 -0000
@@ -573,6 +573,7 @@
       INHERIT (to_remove_watchpoint, t);
       INHERIT (to_stopped_data_address, t);
       INHERIT (to_stopped_by_watchpoint, t);
+      INHERIT (to_have_continuable_watchpoint, t);
       INHERIT (to_region_size_ok_for_hw_watchpoint, t);
       INHERIT (to_terminal_init, t);
       INHERIT (to_terminal_inferior, t);
Index: target.h
===================================================================
RCS file: /cvs/src/src/gdb/target.h,v
retrieving revision 1.35
diff -u -r1.35 target.h
--- target.h	19 Jan 2003 04:06:46 -0000	1.35
+++ target.h	12 Feb 2003 19:38:17 -0000
@@ -256,6 +256,7 @@
     int (*to_remove_watchpoint) (CORE_ADDR, int, int);
     int (*to_insert_watchpoint) (CORE_ADDR, int, int);
     int (*to_stopped_by_watchpoint) (void);
+    int to_have_continuable_watchpoint;
     CORE_ADDR (*to_stopped_data_address) (void);
     int (*to_region_size_ok_for_hw_watchpoint) (int);
     void (*to_terminal_init) (void);
@@ -961,6 +962,13 @@
 #ifndef STOPPED_BY_WATCHPOINT
 #define STOPPED_BY_WATCHPOINT(w) \
    (*current_target.to_stopped_by_watchpoint) ()
+#endif
+
+/* Non-zero if we have continuable watchpoints  */
+
+#ifndef HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT \
+   (current_target.to_have_continuable_watchpoint)
 #endif
 
 /* HP-UX supplies these operations, which respectively disable and enable

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops
  2003-02-12 19:42 patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops Kris Warkentin
@ 2003-02-14 18:49 ` Kris Warkentin
  2003-02-20  0:41   ` Andrew Cagney
  0 siblings, 1 reply; 5+ messages in thread
From: Kris Warkentin @ 2003-02-14 18:49 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

Ping.

----- Original Message -----
From: "Kris Warkentin" <kewarken@qnx.com>
To: "Kris Warkentin" <kewarken@qnx.com>; "Andrew Cagney"
<ac131313@redhat.com>
Cc: <gdb-patches@sources.redhat.com>
Sent: Wednesday, February 12, 2003 2:42 PM
Subject: Re: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops


> Here's take 2 on the patch.  I had a slight error in the definition of
> HAVE_CONTINUABLE_WATCHPOINT in the first one.  I was worried about
> initialization (since infrun.c wanted the default to be zero) but since
> target_ops structures are always declared as global data, it will be fine.
>
> cheers,
>
> Kris
>
> ----- Original Message -----
> From: "Kris Warkentin" <kewarken@qnx.com>
> To: "Andrew Cagney" <ac131313@redhat.com>
> Cc: "Mark Kettenis" <kettenis@chello.nl>; <gdb-patches@sources.redhat.com>
> Sent: Tuesday, February 11, 2003 1:41 PM
> Subject: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops
>
>
> > Probably easier if I just give a diff for you to comment on.
> >
> > Changelog Entry:
> >
> > 2003-02-11    Kris Warkentin    kewarken@qnx.com
> >
> >     * target.h: Add to_have_continuable_watchpoint to struct target_ops.
> >                     Initialize HAVE_CONTINUABLE_WATCHPOINT.
> >     * target.c: update_current_target(): Add
> to_have_continuable_watchpoint.
> >     * infrun.c: remove initialization of HAVE_CONTINUABLE_WATCHPOINT.
> >     * config/i386/nm-i386.h: Change HAVE_CONTINUABLE_WATCHPOINT defines
to
> > 1.
> >     * config/i386/nm-i386sco5.h: ditto
> >     * config/i386/nm-i386sol2.h: ditto
> >     * config/s390/nm-linux.h: ditto
> >     * config/sparc/nm-sun4sol2.h: ditto
> >
> > cheers,
> >
> > Kris
> >
> > ----- Original Message -----
> > From: "Kris Warkentin" <kewarken@qnx.com>
> > To: "Andrew Cagney" <ac131313@redhat.com>
> > Cc: "Mark Kettenis" <kettenis@chello.nl>;
<gdb-patches@sources.redhat.com>
> > Sent: Tuesday, February 11, 2003 1:11 PM
> > Subject: Re: patch to add QNX NTO i386 support
> >
> >
> > > Hi Andrew,
> > >
> > > Sorry it took so long to reply - I took a couple days to do a port of
a
> > > vxworks lib for a BSP we're working on.
> > >
> > > Question: can I make any assumption about the initialization of the
> > > target_ops vector?  It looks like infrun.c wants
> > HAVE_CONTINUABLE_BREAKPOINT
> > > to default to zero but I didn't see anywhere int target.[ch] that ops
> were
> > > being initialized.
> > >
> > > cheers,
> > >
> > > Kris
> > >
> > > > > /* After a watchpoint trap, the PC points to the instruction after
> > > > >> >    the one that caused the trap.  Therefore we don't need to
step
> > > over
> > > > >
> > > > > it.
> > > > >
> > > > >> >    But we do need to reset the status register to avoid another
> > trap.
> > > > >
> > > > > */
> > > > >
> > > > >> > #define HAVE_CONTINUABLE_WATCHPOINT
> > > > >
> > > > >>
> > > > >> Hmm, this poses an interesting problem.  The other i386 targets
> have
> > > > >> this in their nm.h file, since they consider hardware watchpoints
> as
> > a
> > > > >> native-only feature.  However, this isn't necessarily right since
> we
> > > > >> might support hardware breakpoints via the remote protocol.  If
you
> > > > >> can live with the native-only approach, please move this to your
> nm.h
> > > > >> file.  Otherwise we might need to multi-arch this definition.
> > > > >
> > > > >
> > > > > Okay, file that under TODO along with the solib stuff.  We have
> > hardware
> > > > > breakpoints on all our remote targets that support them.
> > > >
> > > > Just FYI, this needs to be added to the target vector (target.h) and
> not
> > > > the architecture vector.
> > > >
> > > > For examples, see STOPPED_BY_WATCHPOINT et.al.  A bit of
manipulation
> of
> > > > the existing nm-*.h files will be needed - have them define the
value
> as
> > > 1.
> > > >
> > > > Can you please submit a separate patch that does just this.
> > > >
> > > > Andrew
> > > >
> > > >
> > > >
> > >
> > >
> >
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops
  2003-02-14 18:49 ` Kris Warkentin
@ 2003-02-20  0:41   ` Andrew Cagney
  2003-02-20  1:09     ` Kris Warkentin
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2003-02-20  0:41 UTC (permalink / raw)
  To: Kris Warkentin; +Cc: gdb-patches

Kris,

I remember asking a question about debug info (so that set debug target 
1) did something useful (or did I misremember?).

Andrew


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops
  2003-02-20  0:41   ` Andrew Cagney
@ 2003-02-20  1:09     ` Kris Warkentin
  0 siblings, 0 replies; 5+ messages in thread
From: Kris Warkentin @ 2003-02-20  1:09 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: gdb-patches

The original message pasted below.  You had asked me to submit a separate
patch.

cheers,

Kris

>> > #define HAVE_CONTINUABLE_WATCHPOINT
>
>>
>> Hmm, this poses an interesting problem.  The other i386 targets have
>> this in their nm.h file, since they consider hardware watchpoints as a
>> native-only feature.  However, this isn't necessarily right since we
>> might support hardware breakpoints via the remote protocol.  If you
>> can live with the native-only approach, please move this to your nm.h
>> file.  Otherwise we might need to multi-arch this definition.
>
>
> Okay, file that under TODO along with the solib stuff.  We have hardware
> breakpoints on all our remote targets that support them.

Just FYI, this needs to be added to the target vector (target.h) and not
the architecture vector.

For examples, see STOPPED_BY_WATCHPOINT et.al.  A bit of manipulation of
the existing nm-*.h files will be needed - have them define the value as 1.

Can you please submit a separate patch that does just this.

Andrew

----- Original Message -----
From: "Andrew Cagney" <ac131313@redhat.com>
To: "Kris Warkentin" <kewarken@qnx.com>
Cc: <gdb-patches@sources.redhat.com>
Sent: Wednesday, February 19, 2003 7:46 PM
Subject: Re: patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops


> Kris,
>
> I remember asking a question about debug info (so that set debug target
> 1) did something useful (or did I misremember?).
>
> Andrew
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops
  2003-02-11 18:11           ` Kris Warkentin
@ 2003-02-11 18:41             ` Kris Warkentin
  0 siblings, 0 replies; 5+ messages in thread
From: Kris Warkentin @ 2003-02-11 18:41 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: Mark Kettenis, gdb-patches

[-- Attachment #1: Type: text/plain, Size: 2651 bytes --]

Probably easier if I just give a diff for you to comment on.

Changelog Entry:

2003-02-11    Kris Warkentin    kewarken@qnx.com

    * target.h: Add to_have_continuable_watchpoint to struct target_ops.
                    Initialize HAVE_CONTINUABLE_WATCHPOINT.
    * target.c: update_current_target(): Add to_have_continuable_watchpoint.
    * infrun.c: remove initialization of HAVE_CONTINUABLE_WATCHPOINT.
    * config/i386/nm-i386.h: Change HAVE_CONTINUABLE_WATCHPOINT defines to
1.
    * config/i386/nm-i386sco5.h: ditto
    * config/i386/nm-i386sol2.h: ditto
    * config/s390/nm-linux.h: ditto
    * config/sparc/nm-sun4sol2.h: ditto

cheers,

Kris

----- Original Message -----
From: "Kris Warkentin" <kewarken@qnx.com>
To: "Andrew Cagney" <ac131313@redhat.com>
Cc: "Mark Kettenis" <kettenis@chello.nl>; <gdb-patches@sources.redhat.com>
Sent: Tuesday, February 11, 2003 1:11 PM
Subject: Re: patch to add QNX NTO i386 support


> Hi Andrew,
>
> Sorry it took so long to reply - I took a couple days to do a port of a
> vxworks lib for a BSP we're working on.
>
> Question: can I make any assumption about the initialization of the
> target_ops vector?  It looks like infrun.c wants
HAVE_CONTINUABLE_BREAKPOINT
> to default to zero but I didn't see anywhere int target.[ch] that ops were
> being initialized.
>
> cheers,
>
> Kris
>
> > > /* After a watchpoint trap, the PC points to the instruction after
> > >> >    the one that caused the trap.  Therefore we don't need to step
> over
> > >
> > > it.
> > >
> > >> >    But we do need to reset the status register to avoid another
trap.
> > >
> > > */
> > >
> > >> > #define HAVE_CONTINUABLE_WATCHPOINT
> > >
> > >>
> > >> Hmm, this poses an interesting problem.  The other i386 targets have
> > >> this in their nm.h file, since they consider hardware watchpoints as
a
> > >> native-only feature.  However, this isn't necessarily right since we
> > >> might support hardware breakpoints via the remote protocol.  If you
> > >> can live with the native-only approach, please move this to your nm.h
> > >> file.  Otherwise we might need to multi-arch this definition.
> > >
> > >
> > > Okay, file that under TODO along with the solib stuff.  We have
hardware
> > > breakpoints on all our remote targets that support them.
> >
> > Just FYI, this needs to be added to the target vector (target.h) and not
> > the architecture vector.
> >
> > For examples, see STOPPED_BY_WATCHPOINT et.al.  A bit of manipulation of
> > the existing nm-*.h files will be needed - have them define the value as
> 1.
> >
> > Can you please submit a separate patch that does just this.
> >
> > Andrew
> >
> >
> >
>
>

[-- Attachment #2: contin.diff --]
[-- Type: application/octet-stream, Size: 5709 bytes --]

Index: config/i386/nm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386.h,v
retrieving revision 1.3
diff -u -r1.3 nm-i386.h
--- config/i386/nm-i386.h	4 Jul 2002 12:32:29 -0000	1.3
+++ config/i386/nm-i386.h	11 Feb 2003 18:31:35 -0000
@@ -93,7 +93,7 @@
    one that caused the trap.  Therefore we don't need to step over it.
    But we do need to reset the status register to avoid another trap.  */
 
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 
 #define STOPPED_BY_WATCHPOINT(W)       (i386_stopped_data_address () != 0)
 
Index: config/i386/nm-i386sco5.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sco5.h,v
retrieving revision 1.3
diff -u -r1.3 nm-i386sco5.h
--- config/i386/nm-i386sco5.h	18 Aug 2002 22:23:32 -0000	1.3
+++ config/i386/nm-i386sco5.h	11 Feb 2003 18:31:35 -0000
@@ -63,7 +63,7 @@
 /* After a watchpoint trap, the PC points to the instruction which
    caused the trap.  But we can continue over it without disabling the
    trap.  */
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 #define HAVE_STEPPABLE_WATCHPOINT
 
 #define STOPPED_BY_WATCHPOINT(W)  \
Index: config/i386/nm-i386sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386sol2.h,v
retrieving revision 1.7
diff -u -r1.7 nm-i386sol2.h
--- config/i386/nm-i386sol2.h	5 Jun 2002 19:18:19 -0000	1.7
+++ config/i386/nm-i386sol2.h	11 Feb 2003 18:31:35 -0000
@@ -32,7 +32,7 @@
 /* When a hardware watchpoint fires off the PC will be left at the
    instruction following the one which caused the watchpoint.  
    It will *NOT* be necessary for GDB to step over the watchpoint. */
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 
 /* Solaris x86 2.6 and 2.7 targets have a kernel bug when stepping
    over an instruction that causes a page fault without triggering
Index: config/s390/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/s390/nm-linux.h,v
retrieving revision 1.5
diff -u -r1.5 nm-linux.h
--- config/s390/nm-linux.h	24 Feb 2002 22:56:06 -0000	1.5
+++ config/s390/nm-linux.h	11 Feb 2003 18:31:35 -0000
@@ -51,7 +51,7 @@
 /* WATCHPOINT SPECIFIC STUFF */
 
 #define TARGET_HAS_HARDWARE_WATCHPOINTS
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 #define target_insert_watchpoint(addr, len, type)  \
   s390_insert_watchpoint (PIDGET (inferior_ptid), addr, len, type)
 
Index: config/sparc/nm-sun4sol2.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/nm-sun4sol2.h,v
retrieving revision 1.9
diff -u -r1.9 nm-sun4sol2.h
--- config/sparc/nm-sun4sol2.h	14 Nov 2002 00:25:05 -0000	1.9
+++ config/sparc/nm-sun4sol2.h	11 Feb 2003 18:31:35 -0000
@@ -51,7 +51,7 @@
 /* When a hardware watchpoint fires off the PC will be left at the
    instruction following the one which caused the watchpoint.  
    It will *NOT* be necessary for GDB to step over the watchpoint. */
-#define HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT 1
 
 extern int procfs_stopped_by_watchpoint (ptid_t);
 #define STOPPED_BY_WATCHPOINT(W) \
Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.96
diff -u -r1.96 infrun.c
--- infrun.c	31 Jan 2003 15:22:57 -0000	1.96
+++ infrun.c	11 Feb 2003 18:31:36 -0000
@@ -226,13 +226,6 @@
 #define HAVE_STEPPABLE_WATCHPOINT 1
 #endif
 
-#ifndef HAVE_CONTINUABLE_WATCHPOINT
-#define HAVE_CONTINUABLE_WATCHPOINT 0
-#else
-#undef  HAVE_CONTINUABLE_WATCHPOINT
-#define HAVE_CONTINUABLE_WATCHPOINT 1
-#endif
-
 #ifndef CANNOT_STEP_HW_WATCHPOINTS
 #define CANNOT_STEP_HW_WATCHPOINTS 0
 #else
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.49
diff -u -r1.49 target.c
--- target.c	19 Jan 2003 04:06:46 -0000	1.49
+++ target.c	11 Feb 2003 18:31:37 -0000
@@ -573,6 +573,7 @@
       INHERIT (to_remove_watchpoint, t);
       INHERIT (to_stopped_data_address, t);
       INHERIT (to_stopped_by_watchpoint, t);
+      INHERIT (to_have_continuable_watchpoint, t);
       INHERIT (to_region_size_ok_for_hw_watchpoint, t);
       INHERIT (to_terminal_init, t);
       INHERIT (to_terminal_inferior, t);
Index: target.h
===================================================================
RCS file: /cvs/src/src/gdb/target.h,v
retrieving revision 1.35
diff -u -r1.35 target.h
--- target.h	19 Jan 2003 04:06:46 -0000	1.35
+++ target.h	11 Feb 2003 18:31:37 -0000
@@ -256,6 +256,7 @@
     int (*to_remove_watchpoint) (CORE_ADDR, int, int);
     int (*to_insert_watchpoint) (CORE_ADDR, int, int);
     int (*to_stopped_by_watchpoint) (void);
+    int to_have_continuable_watchpoint;
     CORE_ADDR (*to_stopped_data_address) (void);
     int (*to_region_size_ok_for_hw_watchpoint) (int);
     void (*to_terminal_init) (void);
@@ -961,6 +962,13 @@
 #ifndef STOPPED_BY_WATCHPOINT
 #define STOPPED_BY_WATCHPOINT(w) \
    (*current_target.to_stopped_by_watchpoint) ()
+#endif
+
+/* Non-zero if we have continuable watchpoints  */
+
+#ifndef HAVE_CONTINUABLE_WATCHPOINT
+#define HAVE_CONTINUABLE_WATCHPOINT \
+   (*current_target.to_have_continuable_watchpoint)
 #endif
 
 /* HP-UX supplies these operations, which respectively disable and enable

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-20  1:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-12 19:42 patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops Kris Warkentin
2003-02-14 18:49 ` Kris Warkentin
2003-02-20  0:41   ` Andrew Cagney
2003-02-20  1:09     ` Kris Warkentin
  -- strict thread matches above, loose matches on Subject: below --
2003-02-03 20:19 patch to add QNX NTO i386 support Kris Warkentin
2003-02-04 22:02 ` Andrew Cagney
2003-02-07  1:48   ` Kris Warkentin
2003-02-07 19:22     ` Mark Kettenis
2003-02-07 20:08       ` Kris Warkentin
2003-02-07 21:59         ` Andrew Cagney
2003-02-11 18:11           ` Kris Warkentin
2003-02-11 18:41             ` patch to add HAVE_CONTINUABLE_BREAKPOINT to target_ops Kris Warkentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox