convert to_verify_memory
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_verify_memory): Unconditionally delegate. * target.h (struct target_ops) <to_verify_memory>: Use TARGET_DEFAULT_NORETURN.
This commit is contained in:
parent
9e538d0d0b
commit
eb276a6b5b
4 changed files with 34 additions and 19 deletions
27
gdb/target.c
27
gdb/target.c
|
@ -3723,25 +3723,16 @@ target_core_of_thread (ptid_t ptid)
|
|||
int
|
||||
target_verify_memory (const gdb_byte *data, CORE_ADDR memaddr, ULONGEST size)
|
||||
{
|
||||
struct target_ops *t;
|
||||
int retval = current_target.to_verify_memory (¤t_target,
|
||||
data, memaddr, size);
|
||||
|
||||
for (t = current_target.beneath; t != NULL; t = t->beneath)
|
||||
{
|
||||
if (t->to_verify_memory != NULL)
|
||||
{
|
||||
int retval = t->to_verify_memory (t, data, memaddr, size);
|
||||
|
||||
if (targetdebug)
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"target_verify_memory (%s, %s) = %d\n",
|
||||
paddress (target_gdbarch (), memaddr),
|
||||
pulongest (size),
|
||||
retval);
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
||||
tcomplain ();
|
||||
if (targetdebug)
|
||||
fprintf_unfiltered (gdb_stdlog,
|
||||
"target_verify_memory (%s, %s) = %d\n",
|
||||
paddress (target_gdbarch (), memaddr),
|
||||
pulongest (size),
|
||||
retval);
|
||||
return retval;
|
||||
}
|
||||
|
||||
/* The documentation for this function is in its prototype declaration in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue