[Lldb-commits] [PATCH] D44998: ObjectFileELF: Add support for arbitrarily named code sections

Konstantin Baladurin via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 2 01:56:30 PDT 2018


kbaladurin updated this revision to Diff 140609.
kbaladurin added a comment.
Herald added a subscriber: javed.absar.

Thank you! I've extended `lldb-test` utility to dump section type:

  Showing 6 sections
    Index: 0
    Type: regular
    Name: 
    VM size: 0
    File size: 0
    
    Index: 1
    Type: code
    Name: .text
    VM size: 8
    File size: 8
    
    Index: 2
    Type: code
    Name: __codesection
    VM size: 8
    File size: 8
    
    Index: 3
    Type: elf-symbol-table
    Name: .symtab
    VM size: 0
    File size: 16
    ...

and added lit test to check section type and arm test in python test suite to check breakpoints in arbitrary named thumb code sections.


https://reviews.llvm.org/D44998

Files:
  include/lldb/Core/Section.h
  lit/Modules/elf-code-section.yaml
  packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/Makefile
  packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/TestBreakpointThumbCodesection.py
  packages/Python/lldbsuite/test/arm/breakpoint-thumb-codesection/main.c
  source/Core/Section.cpp
  source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  tools/lldb-test/lldb-test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44998.140609.patch
Type: text/x-patch
Size: 5267 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180402/b58d9598/attachment.bin>


More information about the lldb-commits mailing list