aboutsummaryrefslogtreecommitdiff
path: root/gdb/target-delegates.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2017-12-03 13:01:03 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2017-12-03 13:06:14 -0500
commit1e97a22796cced8bba3359df46e8c2883653516f (patch)
treecacb220a7ed41c9552b15f8529bde38c31679f3c /gdb/target-delegates.c
parent10f64178412d9c6e4f2faade0da271ab8be273c9 (diff)
downloadgdb-1e97a22796cced8bba3359df46e8c2883653516f.zip
gdb-1e97a22796cced8bba3359df46e8c2883653516f.tar.gz
gdb-1e97a22796cced8bba3359df46e8c2883653516f.tar.bz2
Remove mem_region_vector typedef
Now that make-target-delegates understands namespaces and templates, this typedef is no longer useful. gdb/ChangeLog: * target.h (mem_region_vector): Remove. (struct target_ops) <to_memory_map>: Change return type to std::vector<mem_region>. * target-debug.h (target_debug_print_mem_region_vector): Rename to ... (target_debug_print_std_vector_mem_region): ... this. * target-delegates.c: Re-generate.
Diffstat (limited to 'gdb/target-delegates.c')
-rw-r--r--gdb/target-delegates.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c
index 1cbe6f8..9691074 100644
--- a/gdb/target-delegates.c
+++ b/gdb/target-delegates.c
@@ -2148,29 +2148,29 @@ debug_get_memory_xfer_limit (struct target_ops *self)
return result;
}
-static mem_region_vector
+static std::vector<mem_region>
delegate_memory_map (struct target_ops *self)
{
self = self->beneath;
return self->to_memory_map (self);
}
-static mem_region_vector
+static std::vector<mem_region>
tdefault_memory_map (struct target_ops *self)
{
return std::vector<mem_region> ();
}
-static mem_region_vector
+static std::vector<mem_region>
debug_memory_map (struct target_ops *self)
{
- mem_region_vector result;
+ std::vector<mem_region> result;
fprintf_unfiltered (gdb_stdlog, "-> %s->to_memory_map (...)\n", debug_target.to_shortname);
result = debug_target.to_memory_map (&debug_target);
fprintf_unfiltered (gdb_stdlog, "<- %s->to_memory_map (", debug_target.to_shortname);
target_debug_print_struct_target_ops_p (&debug_target);
fputs_unfiltered (") = ", gdb_stdlog);
- target_debug_print_mem_region_vector (result);
+ target_debug_print_std_vector_mem_region (result);
fputs_unfiltered ("\n", gdb_stdlog);
return result;
}