diff --git a/coregrind/m_debuginfo/priv_symtab.h b/coregrind/m_debuginfo/priv_symtab.h index 72a72f7f7..65c062670 100644 --- a/coregrind/m_debuginfo/priv_symtab.h +++ b/coregrind/m_debuginfo/priv_symtab.h @@ -171,7 +171,6 @@ extern void ML_(ppCfiSI) ( CfiSI* ); struct _SegInfo { struct _SegInfo* next; /* list of SegInfos */ - Segment *seg; /* first segment we're mapped out of */ Int ref; /* Description of the mapped segment. */ diff --git a/coregrind/m_debuginfo/symtab.c b/coregrind/m_debuginfo/symtab.c index 62f7cff7f..2ffad73b7 100644 --- a/coregrind/m_debuginfo/symtab.c +++ b/coregrind/m_debuginfo/symtab.c @@ -1648,8 +1648,6 @@ SegInfo *VG_(read_seg_symbols) ( Segment *seg ) si->cfisi_size = si->cfisi_used = 0; si->cfisi_minaddr = si->cfisi_maxaddr = 0; - si->seg = seg; - si->stab_typetab = NULL; si->plt_start = si->plt_size = 0; diff --git a/coregrind/m_redir.c b/coregrind/m_redir.c index 3ffa9cda5..e78702203 100644 --- a/coregrind/m_redir.c +++ b/coregrind/m_redir.c @@ -210,11 +210,6 @@ static Bool resolve_redir(CodeRedirect *redir, const SegInfo *si) Bool resolved; vg_assert(si != NULL); - vg_assert(si->seg != NULL); - - /* no redirection from Valgrind segments */ - if (si->seg->flags & SF_VALGRIND) - return False; resolved = from_resolved(redir); vg_assert(!resolved);