* [RFA] Use i386_use_watchpoints for go32v2, bds and windows native
@ 2009-02-08 23:22 Pierre Muller
2009-02-09 4:10 ` Eli Zaretskii
2009-02-09 11:07 ` [RFA] " Mark Kettenis
0 siblings, 2 replies; 11+ messages in thread
From: Pierre Muller @ 2009-02-08 23:22 UTC (permalink / raw)
To: 'gdb-patches ml'
I started a while ago to write
a patch to add support for hardware watchpoints
in windows gdbserver.
After some success in writing the adequate code,
I realized that this could not work with
a GDB compiled for cygwin in 'target remote' mode.
The reason is the following:
cygwin native nm-cygwin.h header
includes nm-i386.h header
with I386_USE_GENERIC_WATCHPOINTS defined,
but not I386_WATCHPOINTS_IN_TARGET_VECTOR.
This then defines the macros
target_insert_watchpoint
and
target_remove_watchpoint
and thus even after
setting 'target remote'
the same i386_insert_watchpoint
function is still called, whereas remote_insert_watchpoint
should be called.
Using 'set debug target 1' also allows to see
that the current_target->to_insert_watchpoint
is not called for current cygwin native GDB.
The correction of this problem is easy, as it is already implemented
for linux.
The patch only adds
#define I386_WATCHPOINTS_IN_TARGET_VECTOR
to all config/i386/nm-*.h
that defines I386_USE_GENERIC_WATCHPOINTS
before including nm-i386.h
and add the corresponding call
to i386_use_watchpoints (target)
in the native file when the target vector gets
defined.
I found only three places where this happens:
nm-go32.h with native go32-nat.c
nm-fbsd.h with native i386bsd-nat.c
and
nm-cygwin.h and nm-cygwin64.h with native windows-nat.c
I was able to test that FreeBSD
compiles with that patch, and that
the 'set debug target 1'
does write 'target_insert_watchpoint'
(which is not the case without the patch).
Pierre Muller
Pascal language support maintainer for GDB
PS1: Cygwin testsuite runs show
no significant change.
PS2: It could have seemed more logical to
insert the call to i386_use_watchpoints
to i386-windows-nat.c and amd64-windows-nat.c
in case we later support other processors for windows,
but the required functions
cygwin_set_dr, cygwin_set_dr7 and cygwin_get_dr6
are also in windows-nat.c file,
and there is still a lot of code that is i386
specific in that file...
ChangeLog entry:
2009-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
* Extend use of i386_use_watchpoints to all i386 native files
using hardware watchpoints.
go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
i386bsd-nat.c (i386bsd_target): Ditto.
windows-nat.c (init_windows_ops): Ditto.
config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
config/i386/nm-cygwin64.h: Ditto.
config/i386/nm-fbsd.h: Ditto.
config/i386/nm-go32.h: Ditto.
Index: gdb/go32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/go32-nat.c,v
retrieving revision 1.63
diff -u -p -r1.63 go32-nat.c
--- gdb/go32-nat.c 6 Feb 2009 22:21:26 -0000 1.63
+++ gdb/go32-nat.c 8 Feb 2009 22:27:44 -0000
@@ -910,6 +910,9 @@ init_go32_ops (void)
go32_ops.to_has_stack = 1;
go32_ops.to_has_registers = 1;
go32_ops.to_has_execution = 1;
+
+ i386_use_watchpoints (&go32_ops);
+
go32_ops.to_magic = OPS_MAGIC;
/* Initialize child's cwd as empty to be initialized when starting
Index: gdb/i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.41
diff -u -p -r1.41 i386bsd-nat.c
--- gdb/i386bsd-nat.c 3 Jan 2009 05:57:52 -0000 1.41
+++ gdb/i386bsd-nat.c 8 Feb 2009 22:27:44 -0000
@@ -248,6 +248,7 @@ i386bsd_target (void)
t = inf_ptrace_target ();
t->to_fetch_registers = i386bsd_fetch_inferior_registers;
t->to_store_registers = i386bsd_store_inferior_registers;
+ i386_use_watchpoints (t);
return t;
}
Index: gdb/windows-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/windows-nat.c,v
retrieving revision 1.179
diff -u -p -r1.179 windows-nat.c
--- gdb/windows-nat.c 6 Feb 2009 22:21:26 -0000 1.179
+++ gdb/windows-nat.c 8 Feb 2009 22:27:46 -0000
@@ -2135,6 +2135,8 @@ init_windows_ops (void)
windows_ops.to_has_registers = 1;
windows_ops.to_has_execution = 1;
windows_ops.to_pid_to_exec_file = windows_pid_to_exec_file;
+ i386_use_watchpoints (&windows_ops);
+
windows_ops.to_magic = OPS_MAGIC;
}
Index: gdb/config/i386/nm-cygwin.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-cygwin.h,v
retrieving revision 1.8
diff -u -p -r1.8 nm-cygwin.h
--- gdb/config/i386/nm-cygwin.h 3 Jan 2009 05:57:54 -0000 1.8
+++ gdb/config/i386/nm-cygwin.h 8 Feb 2009 22:27:46 -0000
@@ -20,6 +20,7 @@
void dll_symbol_command (char *, int);
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#include "i386/nm-i386.h"
Index: gdb/config/i386/nm-cygwin64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-cygwin64.h,v
retrieving revision 1.1
diff -u -p -r1.1 nm-cygwin64.h
--- gdb/config/i386/nm-cygwin64.h 11 Jan 2009 13:15:56 -0000 1.1
+++ gdb/config/i386/nm-cygwin64.h 8 Feb 2009 22:27:46 -0000
@@ -19,6 +19,7 @@
void dll_symbol_command (char *, int);
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#include "i386/nm-i386.h"
Index: gdb/config/i386/nm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-fbsd.h,v
retrieving revision 1.18
diff -u -p -r1.18 nm-fbsd.h
--- gdb/config/i386/nm-fbsd.h 3 Jan 2009 05:57:54 -0000 1.18
+++ gdb/config/i386/nm-fbsd.h 8 Feb 2009 22:27:46 -0000
@@ -23,6 +23,7 @@
#ifdef HAVE_PT_GETDBREGS
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#endif
#include "i386/nm-i386.h"
Index: gdb/config/i386/nm-go32.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-go32.h,v
retrieving revision 1.8
diff -u -p -r1.8 nm-go32.h
--- gdb/config/i386/nm-go32.h 3 Jan 2009 05:57:54 -0000 1.8
+++ gdb/config/i386/nm-go32.h 8 Feb 2009 22:27:46 -0000
@@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#include "i386/nm-i386.h"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [RFA] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-08 23:22 [RFA] Use i386_use_watchpoints for go32v2, bds and windows native Pierre Muller
@ 2009-02-09 4:10 ` Eli Zaretskii
2009-02-09 7:33 ` Pierre Muller
2009-02-09 11:07 ` [RFA] " Mark Kettenis
1 sibling, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2009-02-09 4:10 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
> From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> Date: Mon, 9 Feb 2009 00:22:50 +0100
>
> The correction of this problem is easy, as it is already implemented
> for linux.
> The patch only adds
> #define I386_WATCHPOINTS_IN_TARGET_VECTOR
> to all config/i386/nm-*.h
> that defines I386_USE_GENERIC_WATCHPOINTS
> before including nm-i386.h
> and add the corresponding call
> to i386_use_watchpoints (target)
> in the native file when the target vector gets
> defined.
>
> I found only three places where this happens:
> nm-go32.h with native go32-nat.c
> nm-fbsd.h with native i386bsd-nat.c
> and
> nm-cygwin.h and nm-cygwin64.h with native windows-nat.c
I don't necessarily object, but could you please explain what does
each of these two changes do? That is, what does defining
I386_WATCHPOINTS_IN_TARGET_VECTOR accomplish, and why we need to call
i386_use_watchpoints?
Thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [RFA] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-09 4:10 ` Eli Zaretskii
@ 2009-02-09 7:33 ` Pierre Muller
2009-02-09 20:38 ` Eli Zaretskii
0 siblings, 1 reply; 11+ messages in thread
From: Pierre Muller @ 2009-02-09 7:33 UTC (permalink / raw)
To: 'Eli Zaretskii'; +Cc: gdb-patches
From Eli Zaretskii
> Envoyé : Monday, February 09, 2009 5:10 AM
> À : Pierre Muller
> Cc : gdb-patches@sourceware.org
> Objet : Re: [RFA] Use i386_use_watchpoints for go32v2, bds and windows
> native
>
> > From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> > Date: Mon, 9 Feb 2009 00:22:50 +0100
> >
> > The correction of this problem is easy, as it is already
> implemented
> > for linux.
> > The patch only adds
> > #define I386_WATCHPOINTS_IN_TARGET_VECTOR
> > to all config/i386/nm-*.h
> > that defines I386_USE_GENERIC_WATCHPOINTS
> > before including nm-i386.h
> > and add the corresponding call
> > to i386_use_watchpoints (target)
> > in the native file when the target vector gets
> > defined.
> >
> > I found only three places where this happens:
> > nm-go32.h with native go32-nat.c
> > nm-fbsd.h with native i386bsd-nat.c
> > and
> > nm-cygwin.h and nm-cygwin64.h with native windows-nat.c
>
> I don't necessarily object, but could you please explain what does
> each of these two changes do? That is, what does defining
> I386_WATCHPOINTS_IN_TARGET_VECTOR accomplish, and why we need to call
> i386_use_watchpoints?
The function i386_use_watchpoints
simply sets the target vector fields related to hardware watchpoints.
But this change alone is useless as the mechanism used to set
hardware watchpoints in gdb relies on macros
called target_insert_watchpoint or target_remove_watchpoint
(plus others), macros that are set in nm-i386.h
to call directly i386_insert_watchpoint/i386_remove_watchpoint,
unless the macro I386_WATCHPOINTS_IN_TARGET_VECTOR is also
defined when parsing that header.
If target_xxx_watchpoint are set by nm-i386.h header,
'target remote' or 'target extended-remote' do not
work as expected for remote hardware watchpoints because
instead of calling remove_insert_watchpoint and similar,
which generate the Z2 to Z4 packets, it still
calls the native i386_insert_watchpoint.
You might argue that this is not very useful for djgpp
native, but there are other points in favor of that patch:
- the patch removes completely the use of
this native definitions of target_xxxx_wqatchpoint
macros and are as such supported by the ARI list.
- the 'set debug target 1' command also is affected
by that patch.
Before the patch no watchpoint messages are printed out,
while they are after.
The above applies to all targets concerned by the patch.
By the way, should I split this into three independent
patches for each target or is it better if I leave it as
one single piece?
Pierre Muller
Pascal language support maintainer for GDB
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [RFA] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-08 23:22 [RFA] Use i386_use_watchpoints for go32v2, bds and windows native Pierre Muller
2009-02-09 4:10 ` Eli Zaretskii
@ 2009-02-09 11:07 ` Mark Kettenis
2009-02-09 12:34 ` Pierre Muller
1 sibling, 1 reply; 11+ messages in thread
From: Mark Kettenis @ 2009-02-09 11:07 UTC (permalink / raw)
To: muller; +Cc: gdb-patches
> From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> Date: Mon, 9 Feb 2009 00:22:50 +0100
>
> ChangeLog entry:
>
> 2009-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * Extend use of i386_use_watchpoints to all i386 native files
> using hardware watchpoints.
> go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
> i386bsd-nat.c (i386bsd_target): Ditto.
> windows-nat.c (init_windows_ops): Ditto.
> config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
> config/i386/nm-cygwin64.h: Ditto.
> config/i386/nm-fbsd.h: Ditto.
> config/i386/nm-go32.h: Ditto.
Only FreeBSD has hardware watchpoint support, so your change to
i386bsd-nat.c isn't quite right.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [RFA] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-09 11:07 ` [RFA] " Mark Kettenis
@ 2009-02-09 12:34 ` Pierre Muller
0 siblings, 0 replies; 11+ messages in thread
From: Pierre Muller @ 2009-02-09 12:34 UTC (permalink / raw)
To: 'Mark Kettenis'; +Cc: gdb-patches
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Mark Kettenis
> Envoyé : Monday, February 09, 2009 12:07 PM
> À : muller@ics.u-strasbg.fr
> Cc : gdb-patches@sourceware.org
> Objet : Re: [RFA] Use i386_use_watchpoints for go32v2, bds and windows
> native
>
> > From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> > Date: Mon, 9 Feb 2009 00:22:50 +0100
> >
> > ChangeLog entry:
> >
> > 2009-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
> >
> > * Extend use of i386_use_watchpoints to all i386 native files
> > using hardware watchpoints.
> > go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
> > i386bsd-nat.c (i386bsd_target): Ditto.
> > windows-nat.c (init_windows_ops): Ditto.
> > config/i386/nm-cygwin.h: Define
> I386_WATCHPOINTS_IN_TARGET_VECTOR.
> > config/i386/nm-cygwin64.h: Ditto.
> > config/i386/nm-fbsd.h: Ditto.
> > config/i386/nm-go32.h: Ditto.
>
> Only FreeBSD has hardware watchpoint support, so your change to
> i386bsd-nat.c isn't quite right.
I didn't manage to figure that out, thanks.
This means that I should move the i386bsd-nat.c change
to i386fbsd-nat.c source file.
Would the part below be OK then?
Pierre Muller
Pascal language support maintainer for GDB
Index: gdb/i386fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386fbsd-nat.c,v
retrieving revision 1.16
diff -u -p -r1.16 i386fbsd-nat.c
--- gdb/i386fbsd-nat.c 3 Jan 2009 05:57:52 -0000 1.16
+++ gdb/i386fbsd-nat.c 9 Feb 2009 12:32:57 -0000
@@ -125,6 +125,7 @@ _initialize_i386fbsd_nat (void)
/* Add some extra features to the common *BSD/i386 target. */
t = i386bsd_target ();
+ i386_use_watchpoints (t);
t->to_resume = i386fbsd_resume;
t->to_pid_to_exec_file = fbsd_pid_to_exec_file;
t->to_find_memory_regions = fbsd_find_memory_regions;
Pierre@d620-muller ~/gdbcvs/src
$ cvs diff -up gdb/i386* gdb/config/i386/nm-fbsd.h
Index: gdb/i386fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386fbsd-nat.c,v
retrieving revision 1.16
diff -u -p -r1.16 i386fbsd-nat.c
--- gdb/i386fbsd-nat.c 3 Jan 2009 05:57:52 -0000 1.16
+++ gdb/i386fbsd-nat.c 9 Feb 2009 12:33:18 -0000
@@ -125,6 +125,7 @@ _initialize_i386fbsd_nat (void)
/* Add some extra features to the common *BSD/i386 target. */
t = i386bsd_target ();
+ i386_use_watchpoints (t);
t->to_resume = i386fbsd_resume;
t->to_pid_to_exec_file = fbsd_pid_to_exec_file;
t->to_find_memory_regions = fbsd_find_memory_regions;
Index: gdb/config/i386/nm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-fbsd.h,v
retrieving revision 1.18
diff -u -p -r1.18 nm-fbsd.h
--- gdb/config/i386/nm-fbsd.h 3 Jan 2009 05:57:54 -0000 1.18
+++ gdb/config/i386/nm-fbsd.h 9 Feb 2009 12:33:18 -0000
@@ -23,6 +23,7 @@
#ifdef HAVE_PT_GETDBREGS
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#endif
#include "i386/nm-i386.h"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [RFA] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-09 7:33 ` Pierre Muller
@ 2009-02-09 20:38 ` Eli Zaretskii
2009-02-13 11:06 ` [RFA-v2] " Pierre Muller
0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2009-02-09 20:38 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
> From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> Cc: <gdb-patches@sourceware.org>
> Date: Mon, 9 Feb 2009 08:33:20 +0100
>
> The function i386_use_watchpoints
> simply sets the target vector fields related to hardware watchpoints.
> But this change alone is useless as the mechanism used to set
> hardware watchpoints in gdb relies on macros
> called target_insert_watchpoint or target_remove_watchpoint
> (plus others), macros that are set in nm-i386.h
> to call directly i386_insert_watchpoint/i386_remove_watchpoint,
> unless the macro I386_WATCHPOINTS_IN_TARGET_VECTOR is also
> defined when parsing that header.
>
> If target_xxx_watchpoint are set by nm-i386.h header,
> 'target remote' or 'target extended-remote' do not
> work as expected for remote hardware watchpoints because
> instead of calling remove_insert_watchpoint and similar,
> which generate the Z2 to Z4 packets, it still
> calls the native i386_insert_watchpoint.
Thanks. I'm okay with the changes to go32-nat.c and nm-go32.h.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [RFA-v2] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-09 20:38 ` Eli Zaretskii
@ 2009-02-13 11:06 ` Pierre Muller
2009-02-14 19:22 ` Christopher Faylor
2009-02-20 10:56 ` [PING][RFA-v2] " Pierre Muller
0 siblings, 2 replies; 11+ messages in thread
From: Pierre Muller @ 2009-02-13 11:06 UTC (permalink / raw)
To: 'Eli Zaretskii', 'Mark Kettenis', cgf; +Cc: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 1156 bytes --]
I resubmitting an updated patch that
takes into account the remark from Mark,
that only FreeBSD supports hardware watchpoints.
Eli already gave his approval for the go32 part,
but I also need approval for bsd and for windows.
This patch is required, in order
for the hardware watchpoint patch for windows gdbserver,
to be useful for windows native gdb debugger connected to a windows native
gdbserver.
http://sourceware.org/ml/gdb-patches/2009-02/msg00206.html
But I didn't get any feedback on that RFC yet :(
By the way, who is responsible for windows gdbserver?
Mark and Chris, is this patch OK?
Pierre Muller
Pascal language support maintainer for GDB
gdb/ChangeLog entry:
2009-02-13 Pierre Muller <muller@ics.u-strasbg.fr>
* Extend use of i386_use_watchpoints to all i386 native files
using hardware watchpoints.
go32-nat.c (init_go32_ops): Call i386_use_watchpoints.
i386fbsd-nat.c (_initialize_i386fbsd_nat): Ditto.
windows-nat.c (init_windows_ops): Ditto.
config/i386/nm-cygwin.h: Define I386_WATCHPOINTS_IN_TARGET_VECTOR.
config/i386/nm-cygwin64.h: Ditto.
config/i386/nm-fbsd.h: Ditto.
config/i386/nm-go32.h: Ditto.
[-- Attachment #2: i386_use_watchpoints.patch --]
[-- Type: application/octet-stream, Size: 3887 bytes --]
Index: gdb/go32-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/go32-nat.c,v
retrieving revision 1.63
diff -u -p -r1.63 go32-nat.c
--- gdb/go32-nat.c 6 Feb 2009 22:21:26 -0000 1.63
+++ gdb/go32-nat.c 8 Feb 2009 22:27:44 -0000
@@ -910,6 +910,9 @@ init_go32_ops (void)
go32_ops.to_has_stack = 1;
go32_ops.to_has_registers = 1;
go32_ops.to_has_execution = 1;
+
+ i386_use_watchpoints (&go32_ops);
+
go32_ops.to_magic = OPS_MAGIC;
/* Initialize child's cwd as empty to be initialized when starting
Index: gdb/i386fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386fbsd-nat.c,v retrieving revision 1.16 diff -u -p -r1.16 i386fbsd-nat.c
--- gdb/i386fbsd-nat.c 3 Jan 2009 05:57:52 -0000 1.16
+++ gdb/i386fbsd-nat.c 9 Feb 2009 12:32:57 -0000
@@ -125,6 +125,7 @@ _initialize_i386fbsd_nat (void)
/* Add some extra features to the common *BSD/i386 target. */
t = i386bsd_target ();
+ i386_use_watchpoints (t);
t->to_resume = i386fbsd_resume;
t->to_pid_to_exec_file = fbsd_pid_to_exec_file;
t->to_find_memory_regions = fbsd_find_memory_regions;
Index: gdb/windows-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/windows-nat.c,v
retrieving revision 1.179
diff -u -p -r1.179 windows-nat.c
--- gdb/windows-nat.c 6 Feb 2009 22:21:26 -0000 1.179
+++ gdb/windows-nat.c 8 Feb 2009 22:27:46 -0000
@@ -2135,6 +2135,8 @@ init_windows_ops (void)
windows_ops.to_has_registers = 1;
windows_ops.to_has_execution = 1;
windows_ops.to_pid_to_exec_file = windows_pid_to_exec_file;
+ i386_use_watchpoints (&windows_ops);
+
windows_ops.to_magic = OPS_MAGIC;
}
Index: gdb/config/i386/nm-cygwin.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-cygwin.h,v
retrieving revision 1.8
diff -u -p -r1.8 nm-cygwin.h
--- gdb/config/i386/nm-cygwin.h 3 Jan 2009 05:57:54 -0000 1.8
+++ gdb/config/i386/nm-cygwin.h 8 Feb 2009 22:27:46 -0000
@@ -20,6 +20,7 @@
void dll_symbol_command (char *, int);
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#include "i386/nm-i386.h"
Index: gdb/config/i386/nm-cygwin64.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-cygwin64.h,v
retrieving revision 1.1
diff -u -p -r1.1 nm-cygwin64.h
--- gdb/config/i386/nm-cygwin64.h 11 Jan 2009 13:15:56 -0000 1.1
+++ gdb/config/i386/nm-cygwin64.h 8 Feb 2009 22:27:46 -0000
@@ -19,6 +19,7 @@
void dll_symbol_command (char *, int);
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#include "i386/nm-i386.h"
Index: gdb/config/i386/nm-fbsd.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-fbsd.h,v
retrieving revision 1.18
diff -u -p -r1.18 nm-fbsd.h
--- gdb/config/i386/nm-fbsd.h 3 Jan 2009 05:57:54 -0000 1.18
+++ gdb/config/i386/nm-fbsd.h 8 Feb 2009 22:27:46 -0000
@@ -23,6 +23,7 @@
#ifdef HAVE_PT_GETDBREGS
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#endif
#include "i386/nm-i386.h"
Index: gdb/config/i386/nm-go32.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-go32.h,v
retrieving revision 1.8
diff -u -p -r1.8 nm-go32.h
--- gdb/config/i386/nm-go32.h 3 Jan 2009 05:57:54 -0000 1.8
+++ gdb/config/i386/nm-go32.h 8 Feb 2009 22:27:46 -0000
@@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#define I386_USE_GENERIC_WATCHPOINTS
+#define I386_WATCHPOINTS_IN_TARGET_VECTOR
#include "i386/nm-i386.h"
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [RFA-v2] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-13 11:06 ` [RFA-v2] " Pierre Muller
@ 2009-02-14 19:22 ` Christopher Faylor
2009-02-20 10:56 ` [PING][RFA-v2] " Pierre Muller
1 sibling, 0 replies; 11+ messages in thread
From: Christopher Faylor @ 2009-02-14 19:22 UTC (permalink / raw)
To: gdb-patches, Pierre Muller, 'Mark Kettenis',
'Eli Zaretskii'
On Fri, Feb 13, 2009 at 09:42:05AM +0100, Pierre Muller wrote:
>Mark and Chris, is this patch OK?
Yes.
cgf
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PING][RFA-v2] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-13 11:06 ` [RFA-v2] " Pierre Muller
2009-02-14 19:22 ` Christopher Faylor
@ 2009-02-20 10:56 ` Pierre Muller
2009-02-21 0:04 ` Mark Kettenis
1 sibling, 1 reply; 11+ messages in thread
From: Pierre Muller @ 2009-02-20 10:56 UTC (permalink / raw)
To: 'Mark Kettenis'; +Cc: gdb-patches
I got Eli's and Chris' approval
for the go32v2 and windows parts,
but I still need approval for the FreeBSD part...
http://sourceware.org/ml/gdb-patches/2009-02/msg00300.html
Mark, are you the principal BSD maintainer
or should I ask someone else?
Pierre Muller
Pascal language support maintainer for GDB
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PING][RFA-v2] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-20 10:56 ` [PING][RFA-v2] " Pierre Muller
@ 2009-02-21 0:04 ` Mark Kettenis
2009-02-21 10:55 ` Pierre Muller
0 siblings, 1 reply; 11+ messages in thread
From: Mark Kettenis @ 2009-02-21 0:04 UTC (permalink / raw)
To: muller; +Cc: gdb-patches
> From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> Date: Fri, 20 Feb 2009 11:02:54 +0100
>
> I got Eli's and Chris' approval
> for the go32v2 and windows parts,
> but I still need approval for the FreeBSD part...
>
> http://sourceware.org/ml/gdb-patches/2009-02/msg00300.html
>
> Mark, are you the principal BSD maintainer
> or should I ask someone else?
I don't run a FreeBSD box anymore, so I can't test, but the change
looks fine to me. Go ahead and commit it.
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: [PING][RFA-v2] Use i386_use_watchpoints for go32v2, bds and windows native
2009-02-21 0:04 ` Mark Kettenis
@ 2009-02-21 10:55 ` Pierre Muller
0 siblings, 0 replies; 11+ messages in thread
From: Pierre Muller @ 2009-02-21 10:55 UTC (permalink / raw)
To: 'Mark Kettenis'; +Cc: gdb-patches
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Mark Kettenis
> Envoyé : Friday, February 20, 2009 11:09 AM
> À : muller@ics.u-strasbg.fr
> Cc : gdb-patches@sourceware.org
> Objet : Re: [PING][RFA-v2] Use i386_use_watchpoints for go32v2, bds and
> windows native
>
> > From: "Pierre Muller" <muller@ics.u-strasbg.fr>
> > Date: Fri, 20 Feb 2009 11:02:54 +0100
> >
> > I got Eli's and Chris' approval
> > for the go32v2 and windows parts,
> > but I still need approval for the FreeBSD part...
> >
> > http://sourceware.org/ml/gdb-patches/2009-02/msg00300.html
> >
> > Mark, are you the principal BSD maintainer
> > or should I ask someone else?
>
> I don't run a FreeBSD box anymore, so I can't test, but the change
> looks fine to me. Go ahead and commit it.
Thanks, I committed the patch.
This was a prerequisite for my windows gdbserver hardware watchpoint
support patch:
http://sourceware.org/ml/gdb-patches/2009-02/msg00206.html
But I got no reaction to that patch until now.
Pierre Muller
Pascal language support maintainer for GDB
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-02-20 10:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-08 23:22 [RFA] Use i386_use_watchpoints for go32v2, bds and windows native Pierre Muller
2009-02-09 4:10 ` Eli Zaretskii
2009-02-09 7:33 ` Pierre Muller
2009-02-09 20:38 ` Eli Zaretskii
2009-02-13 11:06 ` [RFA-v2] " Pierre Muller
2009-02-14 19:22 ` Christopher Faylor
2009-02-20 10:56 ` [PING][RFA-v2] " Pierre Muller
2009-02-21 0:04 ` Mark Kettenis
2009-02-21 10:55 ` Pierre Muller
2009-02-09 11:07 ` [RFA] " Mark Kettenis
2009-02-09 12:34 ` Pierre Muller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox