public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: "Frank Ch. Eigler" <fche@redhat.com>
To: Dave Brolley <brolley@redhat.com>
Cc: sid@sources.redhat.com
Subject: Re: Misaligned read/write of memory by GDB
Date: Tue, 29 Jun 2004 19:18:00 -0000	[thread overview]
Message-ID: <20040629191821.GM10148@redhat.com> (raw)
In-Reply-To: <40E1BEF2.4070401@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

Hi -


> >OK, but did you consider an alternate of having a memory target that
> >is unable to handle an unaligned access return sid::bus::misaligned,
> >and then have gdb back down to byte-by-byte access?
> >
> I thought about the possibility of fixing existing memory targets to 
> handle misaligned access, either by implementing support, returning 
> sid::bus::misaligned, or whatever else might be appropriate. 

How many offenders (that did neither) did you encounter?

> However it occurred to me that this would require implementors of all
> future memory targets to be aware of potential GDB access of this
> type. [...]

True, except that such accesses could originate elsewhere - a simulated
CPU, or a gloss component, for example.


- FChE

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-06-29 19:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-28 21:18 Dave Brolley
2004-06-28 22:50 ` Dave Brolley
2004-06-29 18:27   ` Frank Ch. Eigler
2004-06-29 19:14     ` Dave Brolley
2004-06-29 19:18       ` Frank Ch. Eigler [this message]
2004-06-29 20:40         ` Dave Brolley
2004-07-01 17:02           ` Dave Brolley

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=20040629191821.GM10148@redhat.com \
    --to=fche@redhat.com \
    --cc=brolley@redhat.com \
    --cc=sid@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).