--- target.c | 1 + target.h | 4 ++++ 2 files changed, 5 insertions(+) --- a/target.c +++ b/target.c @@ -659,6 +659,7 @@ update_current_target (void) INHERIT (to_upload_trace_state_variables, t); INHERIT (to_get_raw_trace_data, t); INHERIT (to_set_disconnected_tracing, t); + INHERIT (to_get_segment_base, t); INHERIT (to_magic, t); /* Do not inherit to_memory_map. */ /* Do not inherit to_flash_erase. */ --- a/target.h +++ b/target.h @@ -673,6 +673,10 @@ struct target_ops right now, or in this debug session, or for this target -- return -1. */ int (*to_core_of_thread) (struct target_ops *, ptid_t ptid); + /* Get the segment base of current inferior to BASE. + Return 0 if success. */ + int (*to_get_segment_base) (int idx, ULONGEST *base); + int to_magic; /* Need sub-structure for target machine related rather than comm related? */