Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Pierre Muller \(IMAP\)" <muller@ics.u-strasbg.fr>,
	 "'Eli Zaretskii'" <eliz@gnu.org>
Subject: Re: [RFA] Fix troubles with watchpoints in DJGPP
Date: Wed, 27 May 2009 23:30:00 -0000	[thread overview]
Message-ID: <200905280030.28382.pedro@codesourcery.com> (raw)
In-Reply-To: <001401c9de9f$928b9f80$b7a2de80$@u-strasbg.fr>

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 ...

-- 
Pedro Alves


  parent reply	other threads:[~2009-05-27 23:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27  7:49 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 [this message]
2009-05-28  8:08   ` Eli Zaretskii
2009-06-08 16:16   ` [RFA-v2] " Pierre Muller
2009-06-16 22:38     ` [PING][RFA-v2] " Pierre Muller
2009-06-16 22:59       ` 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=200905280030.28382.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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