From: Emi SUZUKI <emi-suzuki@tjsys.co.jp>
To: jimb@codesourcery.com, gdb-patches@sourceware.org
Subject: Re: [RFC] checking the Z-packet support on gdbserver
Date: Thu, 20 Sep 2007 09:49:00 -0000 [thread overview]
Message-ID: <20070920.184918.158391937.emi-suzuki@tjsys.co.jp> (raw)
In-Reply-To: <m38x73wsug.fsf@codesourcery.com>
Hello Jim,
Thank you for your review and sorry for a bit later response.
From: Jim Blandy <jimb at codesourcery.com>
Subject: Re: [RFC] checking the Z-packet support on gdbserver
Date: Tue, 18 Sep 2007 14:45:27 -0700
> So, would it make more sense for the initial state of the Z packets in
> remote_protocol_features to be PACKET_SUPPORT_UNKNOWN, and for
> gdbserver to transmit either Zx- or Zx+ as appropriate? Thus, in your
> case, as soon as GDB connected to the target it would know that
> hardware watchpoints weren't available, but on connection to some
> older stub which said nothing about the Z packets in its qSupported
> response (if it gave such a response at all), GDB would continue to
> try hardware watchpoints.
Hmmm. But my primal worry for the current behavior is that working
with the stubs which do not support hardware watchpoints (including
the older ones) cause errors. Although I know it would be a passive
attitude towards using hardware watchpoints, using software ones
instead of hardware ones should not cause errors. And if the older
stubs have Z-packet supports, you can activate them by setting "set
remote Z-packet on" or something, no matter how the initial state of
Z-packets in remote_protocol_features are.
Actually, I couldn't find any reason why the initial value of
remote_hw_watchpoint_limit defined in remote.c is -1, and it stands
for that hardware watchpoints are available...
My best regards,
--
Emi SUZUKI / emi-suzuki at tjsys.co.jp
next prev parent reply other threads:[~2007-09-20 9:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-13 12:09 [RFC] checking the Z-packet suppport " Emi SUZUKI
2007-09-13 17:05 ` Jim Blandy
2007-09-14 9:40 ` [RFC] checking the Z-packet support " Emi SUZUKI
2007-09-14 12:15 ` Daniel Jacobowitz
2007-09-18 21:17 ` Jim Blandy
2007-09-18 21:28 ` Daniel Jacobowitz
2007-09-18 21:45 ` Jim Blandy
2007-09-20 9:49 ` Emi SUZUKI [this message]
2007-09-14 12:15 ` [RFC] checking the Z-packet suppport " Daniel Jacobowitz
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=20070920.184918.158391937.emi-suzuki@tjsys.co.jp \
--to=emi-suzuki@tjsys.co.jp \
--cc=gdb-patches@sourceware.org \
--cc=jimb@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