[Lldb-commits] [PATCH] D113821: [LLDB][NativePDB] Fix image lookup by address

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Nov 14 23:10:04 PST 2021


labath added inline comments.


================
Comment at: lldb/test/Shell/SymbolFile/NativePDB/lookup-by-address.cpp:8
+// RUN: FileCheck --input-file=%t.out %s --check-prefix=NAME
+// RUN: address=`grep "Address:" %t.out | sed "s/.*Address: lookup-by-address.cpp.tmp.exe\[\(.*\)\].*/\1/"`
+// RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb -O "target create %t.exe" -o "image lookup -a $address" -o "exit" | FileCheck %s --check-prefix=ADDRESS
----------------
These fancy shell operations don't usually work on windows (which is pretty unfortunate, given this is a windows format).

Since the test executable will literally contain just the main function, maybe we could just pass a /base:BASE argument to the linker, and rely on the fact that the linker will place the function at BASE+0x1000 ?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113821



More information about the lldb-commits mailing list