From: "Pierre Muller" <muller@ics.u-strasbg.fr>
To: "'Pierre Muller'" <muller@ics.u-strasbg.fr>,
"'Pedro Alves'" <pedro@codesourcery.com>,
<gdb-patches@sourceware.org>
Cc: "'Eli Zaretskii'" <eliz@gnu.org>
Subject: [PING][RFA-v2] Fix troubles with watchpoints in DJGPP
Date: Tue, 16 Jun 2009 22:38:00 -0000 [thread overview]
Message-ID: <000001c9eed3$0e883f10$2b98bd30$@u-strasbg.fr> (raw)
In-Reply-To: <006f01c9e854$7295da10$57c18e30$@u-strasbg.fr>
No one reacted to this second version of my patch...
I still have other hardware watchpoint related problems
that need to be discussed, but this one is really a small patch,
no ?
Pierre
> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Pierre Muller
> Envoyé : Monday, June 08, 2009 6:16 PM
> À : 'Pedro Alves'; gdb-patches@sourceware.org
> Cc : 'Eli Zaretskii'
> Objet : [RFA-v2] Fix troubles with watchpoints in DJGPP
>
>
>
> > -----Message d'origine-----
> > De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> > owner@sourceware.org] De la part de Pedro Alves
> > Envoyé : Thursday, May 28, 2009 1:30 AM
> > À : gdb-patches@sourceware.org
> > Cc : Pierre Muller (IMAP); 'Eli Zaretskii'
> > Objet : Re: [RFA] Fix troubles with watchpoints in DJGPP
> >
> > On Wednesday 27 May 2009 08:48:49, Pierre Muller (IMAP) wrote:
> >
> > > PS-1) Are there not other native targets, without
> > > dynamic libraries, that will suffer the same troubles?
> >
> > I think so. I've just tried on x86_64-linux, with a statically
> > linked binary (I used gdb.threads/staticthreads, set a watchpoint
> > on semaphore), and although there are no shared libraries loaded,
> > the problem is masked by adding the symbols of the vsyscall page
> > (sysfile-mem.c:add_vsyscall_page). If I hack that function to
> > do nothing, I see that same thing you're seeing on djgpp.
> >
> > Maybe there's a place for a generic fix? Somewhere after
> > having opened a connection to the target interface. I was
> > thinking of post_create_inferior, but sounds like opening
> > a connection to a remote target with "target remote" that
> > happens to not pull in any more symbols (like most embedded
> > targets) is having the same problem? Maybe there should be
> > a target_post_open ...
>
> I submit here a more general fix
> that calls breakpoint_re_set function
> after the target is pushed in post_create_inferior.
>
> This patch works for go32 target, but
> should work for all other native targets that
> have no dynamic libraries too.
>
> Is this OK?
>
> Pierre
>
> 2009-06-08 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * infcmd.c (post_create_inferior): Call breakpoint_re_set after
> target
> is pushed for watchpoint promotion to hardware watchpoint.
>
> Index: src/gdb/infcmd.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/infcmd.c,v
> retrieving revision 1.245
> diff -u -p -r1.245 infcmd.c
> --- src/gdb/infcmd.c 7 Jun 2009 16:46:48 -0000 1.245
> +++ src/gdb/infcmd.c 8 Jun 2009 07:29:43 -0000
> @@ -421,6 +421,9 @@ post_create_inferior (struct target_ops
> #endif
> }
>
> + /* Call breakpoint_re_set to update watchpoints types. */
> + breakpoint_re_set ();
> +
> observer_notify_inferior_created (target, from_tty);
> }
>
next prev parent reply other threads:[~2009-06-16 22:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 7:49 [RFA] " Pierre Muller (IMAP)
2009-05-27 19:25 ` Eli Zaretskii
2009-05-27 20:53 ` Pierre Muller
2009-05-28 8:21 ` Eli Zaretskii
2009-05-28 9:31 ` Pierre Muller
2009-05-28 13:27 ` Eli Zaretskii
2009-05-27 23:30 ` Pedro Alves
2009-05-28 8:08 ` Eli Zaretskii
2009-06-08 16:16 ` [RFA-v2] " Pierre Muller
2009-06-16 22:38 ` Pierre Muller [this message]
2009-06-16 22:59 ` [PING][RFA-v2] " Pedro Alves
2009-06-16 23:20 ` Pierre Muller
2009-06-16 23:46 ` Pedro Alves
2009-06-16 23:54 ` Pierre Muller
2009-06-17 0:05 ` Pedro Alves
2009-06-17 6:19 ` Pierre Muller
2009-06-17 12:32 ` Joel Brobecker
2009-06-17 22:44 ` DJ Delorie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000001c9eed3$0e883f10$2b98bd30$@u-strasbg.fr' \
--to=muller@ics.u-strasbg.fr \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox