Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@codesourcery.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb@sourceware.org
Subject: Re: GDB support for Flash memory programming
Date: Sun, 18 Jun 2006 09:55:00 -0000	[thread overview]
Message-ID: <vt2slm359lg.fsf@theseus.home.> (raw)
In-Reply-To: <200606171959.k5HJxABZ003460@elgar.sibelius.xs4all.nl> (Mark Kettenis's message of "Sat, 17 Jun 2006 21:59:10 +0200 (CEST)")


Mark Kettenis <mark.kettenis@xs4all.nl> writes:
>> From: Jim Blandy <jimb@codesourcery.com>
>> Date: Tue, 23 May 2006 16:32:42 -0700
>> 
>> One of the problems GDB has in the embedded development world is its
>> lack of support for loading programs into flash memory.  After some
>> conversation amongst ourselves to weed out patently stupid stuff (none
>> of the text below is mine... hey), we at CodeSourcery put together the
>> following proposal for general comments and criticism.
>>
>> We'd like to reach consensus on what the user interface should be
>> before we worry about implementation details --- possible remote
>> protocol changes, and so on --- so let's leave those topics aside for
>> the time being.
>> 
>> What do folks think?
>
> I don't think the gdb user interface should depend on the sort of
> memory you're targeting, i.e. the interface should be the same for all
> memory whether it is RAM, EEPROM or flash.  So I think "write-flash"
> is the the wrong name for the command.
>
> Looks like what you really want is some sort of command to (partially)
> write-protect (parts of) memory.

Write-flash isn't the name of the command; that's just the name of the
setting which controls whether we treat attempts to mutate variables
in flash as errors or not.  The command for loading programs remains
'load', regardless of the type of memory being accessed.

We really don't want to allow single-variable writes by default, since
writing to a variable in flash could take tens of seconds on some
devices.  But loading programs into flash is a common operation, just
as common as using 'load' in ordinary development.  So what we want is
read-onlyness depending on the command used.  And we also want the
read-onlyness map pre-initialized to match the areas of flash on the
target, since the point is to warn people before attempting expensive
operations.  I think the useful semantics here are pretty
flash-specific.


      reply	other threads:[~2006-06-18  5:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24  1:44 Jim Blandy
2006-05-24  2:03 ` Steven Johnson
2006-05-24 22:07   ` Jim Blandy
2006-05-25  2:35     ` Steven Johnson
2006-05-24  4:43 ` Nathan J. Williams
2006-05-24 22:17   ` Jim Blandy
2006-05-24  8:03 ` Russell Shaw
2006-05-25  0:22   ` Jim Blandy
2006-05-25  3:05     ` Russell Shaw
2006-05-25  0:39   ` GDB and remote protocols Daniel Jacobowitz
2006-05-25  3:04     ` Russell Shaw
2006-05-25  0:52 ` GDB support for Flash memory programming Steven Johnson
2006-05-25  1:11   ` Peter Barada
2006-05-25  2:18   ` Jim Blandy
2006-05-25  3:29     ` Steven Johnson
2006-05-26 18:42       ` Jim Blandy
2006-05-27  0:02         ` Steven Johnson
2006-06-17 20:07 ` Mark Kettenis
2006-06-18  9:55   ` Jim Blandy [this message]

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=vt2slm359lg.fsf@theseus.home. \
    --to=jimb@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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