llvm-project/lldb/lit/Modules
Pavel Labath edb0127629 ObjectFileELF: Add support for arbitrarily named code sections
ObjectFileELF assumes that code section has ".text" name. There is an
exception for kalimba toolchain that can use arbitrary names, but other
toolchains also could use arbitrary names for code sections. For
example, corert uses separate section for compiled managed code. As lldb
doesn't recognize such section it leads to problem with breakpoints on
arm, because debugger cannot determine instruction set (arm/thumb) and
uses incorrect breakpoint opcode that breaks program execution.

This change allows debugger to correctly handle such code sections. We
assume that section is a code section if it has SHF_EXECINSTR flag set
and has SHT_PROGBITS type.

Patch by Konstantin Baladurin <k.baladurin@partner.samsung.com>.
Differential Revision: https://reviews.llvm.org/D44998

llvm-svn: 331173
2018-04-30 13:23:47 +00:00
..
build-id-case.yaml Support reading section ".gnu_debugaltlink" 2018-04-29 19:47:48 +00:00
compressed-sections.yaml Support reading section ".gnu_debugaltlink" 2018-04-29 19:47:48 +00:00
elf-duplicate-section.yaml [elf] Remove one copy of the section merging code 2018-03-09 12:30:09 +00:00
elf-section-types.yaml ObjectFileELF: Add support for arbitrarily named code sections 2018-04-30 13:23:47 +00:00
lit.local.cfg