From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: cagney@gnu.org, gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc] Eliminate TARGET_HAS_HARDWARE_WATCHPOINTS
Date: Thu, 09 Sep 2004 12:47:00 -0000 [thread overview]
Message-ID: <20040909124755.GA8559@nevyn.them.org> (raw)
In-Reply-To: <01c49621$Blat.v2.2.2$eb2d05a0@zahav.net.il>
On Thu, Sep 09, 2004 at 07:02:07AM +0300, Eli Zaretskii wrote:
> > Date: Wed, 8 Sep 2004 23:53:37 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: cagney@gnu.org, gdb-patches@sources.redhat.com
> >
> > > > For cross-compiled build, autoconf should work just fine. Compile
> > > > tests are still available and you shouldn't be using run tests for this
> > > > sort of thing anyway.
> > >
> > > I don't think this kind of test can be done by compiling a program,
> > > but if you have a specific test in mind, please describe it.
> > >
> > > In any case, if what you suggest works, I agree to replacing the macro
> > > with these alternatives.
> >
> > There are two cases:
> > - If we enabled support, GDB could not be compiled. This is amenable
> > to compile tests.
> > - If we enabled support, it would not work at runtime. This is
> > amenable only to runtime tests - either run during configure or run
> > during execution. I strongly believe the former are wrong in all
> > but exceptional cases.
>
> I understand the theory, I just don't know how to test for watchpoint
> support in a program by just compiling it. If you can suggest a
> program whose compilation will reveal that, please do.
There's nothing generic controlled by TARGET_HAS_HARDWARE_WATCHPOINTS.
It controls an include of <sys/debugreg.h> in i386v-nat.c - that can be
autoconf'd, and then checked for the appropriate DR_* constants if
that's necessary. It controls the use of prwatch_t in procfs.c,
likewise.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2004-09-09 12:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-05 13:59 Andrew Cagney
2004-09-06 5:03 ` Eli Zaretskii
2004-09-06 14:05 ` Andrew Cagney
2004-09-06 18:47 ` Eli Zaretskii
2004-09-07 21:20 ` Andrew Cagney
2004-09-08 3:51 ` Eli Zaretskii
2004-09-08 14:28 ` Andrew Cagney
2004-09-08 15:18 ` Eli Zaretskii
2004-09-08 15:23 ` Daniel Jacobowitz
2004-09-09 3:41 ` Eli Zaretskii
2004-09-09 3:53 ` Daniel Jacobowitz
2004-09-09 4:04 ` Eli Zaretskii
2004-09-09 12:47 ` Daniel Jacobowitz [this message]
2004-09-09 18:52 ` Eli Zaretskii
2004-09-12 16:33 ` Andrew Cagney
2004-09-12 18:42 ` Eli Zaretskii
2004-09-13 14:30 ` Andrew Cagney
2004-09-13 19:43 ` Eli Zaretskii
2004-09-13 20:48 ` Andrew Cagney
2004-09-15 7:20 ` Eli Zaretskii
2004-09-15 16:11 ` Andrew Cagney
2004-09-16 10:53 ` Eli Zaretskii
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=20040909124755.GA8559@nevyn.them.org \
--to=drow@false.org \
--cc=cagney@gnu.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.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