convert to_flash_erase
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_flash_erase): Unconditionally delegate. * target.h (struct target_ops) <to_flash_erase>: Use TARGET_DEFAULT_NORETURN.
This commit is contained in:
parent
7e35c012fb
commit
e8a6c6ace9
4 changed files with 29 additions and 14 deletions
17
gdb/target.c
17
gdb/target.c
|
@ -1757,19 +1757,10 @@ target_memory_map (void)
|
|||
void
|
||||
target_flash_erase (ULONGEST address, LONGEST length)
|
||||
{
|
||||
struct target_ops *t;
|
||||
|
||||
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
||||
if (t->to_flash_erase != NULL)
|
||||
{
|
||||
if (targetdebug)
|
||||
fprintf_unfiltered (gdb_stdlog, "target_flash_erase (%s, %s)\n",
|
||||
hex_string (address), phex (length, 0));
|
||||
t->to_flash_erase (t, address, length);
|
||||
return;
|
||||
}
|
||||
|
||||
tcomplain ();
|
||||
if (targetdebug)
|
||||
fprintf_unfiltered (gdb_stdlog, "target_flash_erase (%s, %s)\n",
|
||||
hex_string (address), phex (length, 0));
|
||||
current_target.to_flash_erase (¤t_target, address, length);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue