From: Daniel Jacobowitz <drow@false.org>
To: Orjan Friberg <orjan.friberg@axis.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [gdbserver/patch] Z packet support
Date: Sun, 30 Jan 2005 04:40:00 -0000 [thread overview]
Message-ID: <20050130043944.GA25185@nevyn.them.org> (raw)
In-Reply-To: <41E52769.2030706@axis.com>
On Wed, Jan 12, 2005 at 02:34:33PM +0100, Orjan Friberg wrote:
> Daniel Jacobowitz wrote:
> >
> >I'm fine with the approach. The implementation needs a bit of work,
> >though.
>
> There's a new ChangeLog entry (date change only) and patch at the end. A
> couple of comments to what you wrote first through:
You missed the most important problem with the previous posting, I'm
afraid - it's still whitespace mangled. Please don't send patches
using format=flowed; it's very good for text, but lousy for data.
Either disable it or just attach them. I've more or less figured out
the algorithm by which it ate your patch, but it's pretty tedious to
hand-merge; could you resend?
There's still some formatting glitches, but they're minor, I can just
correct as I edit. I still want to add x86 support before approving
this so that I can test it. The patch itself looks right, except:
> >>+ addr = (*the_target->stopped_data_address) ();
> >>+
> >>+ *buf++ = tohex ((addr >> 28) & 0xf);
> >>+ *buf++ = tohex ((addr >> 24) & 0xf);
> >>+ *buf++ = tohex ((addr >> 20) & 0xf);
> >>+ *buf++ = tohex ((addr >> 16) & 0xf);
> >>+
> >>+ *buf++ = tohex ((addr >> 12) & 0xf);
> >>+ *buf++ = tohex ((addr >> 8) & 0xf);
> >>+ *buf++ = tohex ((addr >> 4) & 0xf);
> >>+ *buf++ = tohex (addr & 0xf);
> >>+
> >>+ *buf++ = ';';
> >>+ }
> >
> >
> >This is broken on 64-bit targets. This will require a certain amount
> >of shuffling to figure out the proper size of an address.
>
> Living comfortably in a 32-bit world, I may have missed what you mean by "a
> certain amount of shuffling". I imagined a simple sizeof (addr) would do.
CORE_ADDR is always a long long in gdbserver, so your sizeof (addr)
probably doesn't work right for 32-bit targets. I guess sizeof (void
*) is always right for this, though... at least for the kinds of
targets gdbserver supports now.
> > - Some of the z/Z commands are breakpoints, not watchpoints. Please
> > only invoke watchpoint methods for watchpoint commands.
>
> I assume you mean that I should exclude memory breakpoint and hardware
> breakpoint. Anyway, that's what I did.
Yep.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2005-01-30 4:40 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-01 15:13 Orjan Friberg
2004-12-07 2:44 ` Daniel Jacobowitz
2004-12-16 18:46 ` Orjan Friberg
2005-01-12 13:35 ` Orjan Friberg
2005-01-30 4:40 ` Daniel Jacobowitz [this message]
2005-02-01 12:09 ` Orjan Friberg
2005-02-14 14:42 ` Orjan Friberg
2005-02-24 20:53 ` Daniel Jacobowitz
2005-05-12 12:34 ` Orjan Friberg
2005-01-30 15:32 Paul Schlie
2005-01-30 15:38 ` Daniel Jacobowitz
2005-01-30 15:57 ` Paul Schlie
2005-01-30 17:36 ` Daniel Jacobowitz
2005-01-30 19:55 ` Paul Schlie
2005-01-30 20:38 ` 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=20050130043944.GA25185@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=orjan.friberg@axis.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