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

Frank Ch. Eigler wrote:

>>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?
>
Just one. The cache component. It silently reads directly from the 
backing memory, thus (potentially) returning the wrong value.

>>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.
>  
>
I guess one could argue that all complete component implementations 
should handle all possible input possibilities. The failure was not 
obvious in my case because of the silent misbehavior of the cache 
component. I guess I was just wanting to prevent a similar misfortune 
from happening to someone else (or me again!) in the future.

Your gloss example convinces me that the cache component should be 
fixed, however. Once done, I can implement the GDB access in the way 
you've suggested.

Dave


  reply	other threads:[~2004-06-29 20:40 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
2004-06-29 20:40         ` Dave Brolley [this message]
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=40E1D329.1060705@redhat.com \
    --to=brolley@redhat.com \
    --cc=fche@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).