[Lldb-commits] [PATCH] D70847: [lldb] Set executable module when adding modules to the Target

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 31 01:27:34 PST 2020


labath added inline comments.


================
Comment at: lldb/packages/Python/lldbsuite/test/commands/target/set-exec/TestSetExecutable.py:16
+        """Test adding images to the target."""
+        self.build()
+
----------------
anton.kolesov wrote:
> clayborg wrote:
> > Create a yaml file and put it in the same directory as this file. Change this line to be:
> > ```
> >         src_dir = self.getSourceDir()
> >         yaml_path = os.path.join(src_dir, "a.yaml")
> >         obj_path = self.getBuildArtifact("a.out")
> >         self.yaml2obj(yaml_path, obj_path)
> > ```
> > Make an ELF file that that is for a remote platform where the triple and platform won't match typical hosts.
> Do you have any specific suggestions that also have freely available toolchain? I have immediate access only to Windows/Linux x86 and Synopsys ARC, and ARC elf files don't change the platform - it remains as "host" even when connecting to a GDB-server, plus obj2yaml segfaults on ARC elf files.
Would this do the job?
```
--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_DYN
  Machine:         EM_AARCH64
  Entry:           0x00000000000006C0
Sections:
  - Name:            .text
    Type:            SHT_PROGBITS
    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
    Address:         0x00000000000006C0
    AddressAlign:    0x0000000000000008
    Content:         DEADBEEF
...
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70847/new/

https://reviews.llvm.org/D70847





More information about the lldb-commits mailing list