[all-commits] [llvm/llvm-project] 1fee25: Clear old section-to-addr entry when loading Secti...

Jason Molenda via All-commits all-commits at lists.llvm.org
Tue Sep 27 16:20:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1fee25629d9d3f33cc618cb2b61cdf3823bfd092
      https://github.com/llvm/llvm-project/commit/1fee25629d9d3f33cc618cb2b61cdf3823bfd092
  Author: Jason Molenda <jason at molenda.com>
  Date:   2022-09-27 (Tue, 27 Sep 2022)

  Changed paths:
    M lldb/source/Target/SectionLoadList.cpp
    A lldb/test/API/functionalities/multiple-slides/Makefile
    A lldb/test/API/functionalities/multiple-slides/TestMultipleSlides.py
    A lldb/test/API/functionalities/multiple-slides/main.c

  Log Message:
  -----------
  Clear old section-to-addr entry when loading Section at new addr

SectionLoadList has a section-to-address map (m_sect_to_addr) and
an address-to-section map (m_addr_to_sect).  When the load address
of a section is updated, the old entry from m_addr_to_sect would
never be cleared, resulting in incorrect address-to-section address
lookups from that point forward.

Differential Revision: https://reviews.llvm.org/D130534
rdar://97308773




More information about the All-commits mailing list