Skip to content

[lldb][AIX] Added support to load DW_ranges section #142356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 2, 2025

Conversation

HemangGadhavi
Copy link
Contributor

This PR is in reference to porting LLDB on AIX.

Link to discussions on llvm discourse and github:

  1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640
  2. Extending LLDB to work on AIX #101657
    The complete changes for porting are present in this draft PR:
    Extending LLDB to work on AIX #102601
  • [lldb] [AIX] Added support to load Dwarf Ranges(.dwranges) section.

@DhruvSrivastavaX

@llvmbot
Copy link
Member

llvmbot commented Jun 2, 2025

@llvm/pr-subscribers-lldb

Author: Hemang Gadhavi (HemangGadhavi)

Changes

This PR is in reference to porting LLDB on AIX.

Link to discussions on llvm discourse and github:

  1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640
  2. Extending LLDB to work on AIX #101657
    The complete changes for porting are present in this draft PR:
    Extending LLDB to work on AIX #102601
  • [lldb] [AIX] Added support to load Dwarf Ranges(.dwranges) section.

@DhruvSrivastavaX


Full diff: https://github.com/llvm/llvm-project/pull/142356.diff

1 Files Affected:

  • (modified) lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp (+1)
diff --git a/lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp b/lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp
index e629355cd40b9..84d05e173f83f 100644
--- a/lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp
+++ b/lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp
@@ -239,6 +239,7 @@ void ObjectFileXCOFF::CreateSectionsWithBitness(
                          .Case(".dwinfo", eSectionTypeDWARFDebugInfo)
                          .Case(".dwline", eSectionTypeDWARFDebugLine)
                          .Case(".dwabrev", eSectionTypeDWARFDebugAbbrev)
+                         .Case(".dwrnges", eSectionTypeDWARFDebugRanges)
                          .Default(eSectionTypeInvalid);
     }
 

Copy link
Contributor

@DhruvSrivastavaX DhruvSrivastavaX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DhruvSrivastavaX DhruvSrivastavaX merged commit def17cd into llvm:main Jun 2, 2025
10 checks passed
@DhruvSrivastavaX DhruvSrivastavaX deleted the aix_dwranges branch June 2, 2025 17:04
sallto pushed a commit to sallto/llvm-project that referenced this pull request Jun 3, 2025
This PR is in reference to porting LLDB on AIX.

Link to discussions on llvm discourse and github:

1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640
2. llvm#101657
The complete changes for porting are present in this draft PR:
llvm#102601

- [lldb] [AIX] Added support to load Dwarf Ranges(.dwranges) section.
DhruvSrivastavaX pushed a commit to DhruvSrivastavaX/lldb-for-aix that referenced this pull request Jun 12, 2025
This PR is in reference to porting LLDB on AIX.

Link to discussions on llvm discourse and github:

1. https://discourse.llvm.org/t/port-lldb-to-ibm-aix/80640
2. llvm#101657
The complete changes for porting are present in this draft PR:
llvm#102601

- [lldb] [AIX] Added support to load Dwarf Ranges(.dwranges) section.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants