diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-12-03 13:01:03 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2017-12-03 13:06:14 -0500 |
commit | 1e97a22796cced8bba3359df46e8c2883653516f (patch) | |
tree | cacb220a7ed41c9552b15f8529bde38c31679f3c /gdb/target.h | |
parent | 10f64178412d9c6e4f2faade0da271ab8be273c9 (diff) | |
download | gdb-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.h')
-rw-r--r-- | gdb/target.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/target.h b/gdb/target.h index 0d1e7bd..638e2f0 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -418,11 +418,6 @@ typedef void async_callback_ftype (enum inferior_event_type event_type, #define TARGET_DEFAULT_RETURN(ARG) #define TARGET_DEFAULT_FUNC(ARG) -/* Define a typedef, because make-target-delegates doesn't currently handle type - names with templates. */ - -typedef std::vector<mem_region> mem_region_vector; - struct target_ops { struct target_ops *beneath; /* To the target under this one. */ @@ -777,7 +772,7 @@ 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. */ - mem_region_vector (*to_memory_map) (struct target_ops *) + std::vector<mem_region> (*to_memory_map) (struct target_ops *) TARGET_DEFAULT_RETURN (std::vector<mem_region> ()); /* Erases the region of flash memory starting at ADDRESS, of |