[Lldb-commits] [PATCH] D66791: [lldb][ELF] Read symbols from .gnu_debugdata sect.

Konrad Wilhelm Kleine via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 9 03:49:28 PDT 2019


kwk marked an inline comment as done.
kwk added a comment.

labath, please see my answer to your question and maybe help me out why you think I don't test what I want to test.



================
Comment at: lldb/lit/Breakpoint/minidebuginfo-set-and-hit-breakpoint.test:50
+
+# RUN: LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%T %lldb -x -b -o 'b multiplyByThree' -o 'b multiplyByFour' -o 'breakpoint list -v' -o 'run' -o 'continue' %t.binary | FileCheck %s
+
----------------
labath wrote:
> Instead of messing with the environment, it might be better to just set the rpath (`-Wl,-rpath`) of the executable appropriately (but I would still like to know what you're exactly trying to test with that extra shared library).
labath, I'd like to test the following scenario: Set a breakpoint on a symbol (`multiplyByThree`) in the `.dynsym` section and one on a symbol (`multiplyByFour`) from the .`symtab` that's embedded within the `.gnu_debugdata` section. I have no clue how to get those symbols without using a shared lib. Do you?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D66791





More information about the lldb-commits mailing list