[lldb-dev] Remote debug arm bare metal target with lldb - load executable to target

Tatyana Krasnukha via lldb-dev lldb-dev at lists.llvm.org
Thu Jul 30 04:37:19 PDT 2020


Try this: `target modules load --load --set-pc-to-entry --slide 0`.

From: lldb-dev <lldb-dev-bounces at lists.llvm.org> On Behalf Of via lldb-dev
Sent: Wednesday, July 22, 2020 7:10 PM
To: lldb-dev at lists.llvm.org
Subject: [lldb-dev] Remote debug arm bare metal target with lldb - load executable to target

Hello,
we are trying to debug firmware running on a stm32 using OpenOCD and LLDB.
GNU-GDB provides a 'load' command to load the sections from an ELF file to the target device.
We have tried to use 'target modules load --load' command to load ELF sections to a specific address, but that didn't work.
If there is a way at all, what is the proper way to load the executable to the target device with LLDB?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20200730/eace92f7/attachment.html>


More information about the lldb-dev mailing list