aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-19 07:47:11 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:32 -0700
commit6b2c5a57e10ca3d9021ef6fe27ba779a06f06717 (patch)
treea451de1fae90ee2ee0ce9af1597952df2ab22a27 /gdb/target.h
parentcbffc065273e91d3596dc73bad695a815f67d5fa (diff)
downloadgdb-6b2c5a57e10ca3d9021ef6fe27ba779a06f06717.zip
gdb-6b2c5a57e10ca3d9021ef6fe27ba779a06f06717.tar.gz
gdb-6b2c5a57e10ca3d9021ef6fe27ba779a06f06717.tar.bz2
convert to_memory_map
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_memory_map): Unconditionally delegate. * target.h (struct target_ops) <to_memory_map>: Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h
index ecfd1a2..e6e78e1 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -669,7 +669,8 @@ struct target_ops
This method should not cache data; if the memory map could
change unexpectedly, it should be invalidated, and higher
layers will re-fetch it. */
- VEC(mem_region_s) *(*to_memory_map) (struct target_ops *);
+ VEC(mem_region_s) *(*to_memory_map) (struct target_ops *)
+ TARGET_DEFAULT_RETURN (0);
/* Erases the region of flash memory starting at ADDRESS, of
length LENGTH.