[Lldb-commits] [PATCH] D62503: Add ReadCStringFromMemory for faster string reads
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 25 21:28:31 PDT 2019
teemperor added a comment.
It seems to break looking up symbols from shared libraries. A simple reproducer is debugging a simple "Hello World" program in C on Linux (Arch Linux in my case, but it seems to also affect other distributions)
#include <stdio.h>
int main() {
printf("Hello World\n");
}
and then trying to eval printf:
(lldb) target create "printftest"
Current executable set to 'printftest' (x86_64).
(lldb) b main
Breakpoint 1: where = printftest`main + 8 at main.cpp:4:3, address = 0x0000000000001108
(lldb) r
Process 56813 launched: '/home/teemperor/llvm/test/printftest' (x86_64)
Process 56813 stopped
* thread #1, name = 'printftest', stop reason = breakpoint 1.1
frame #0: 0x0000555555555108 printftest`main at main.cpp:4:3
1 #include <stdio.h>
2
3 int main() {
-> 4 printf("Hello World\n");
5 }
(lldb) p printf("a")
error: Couldn't lookup symbols:
printf
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62503/new/
https://reviews.llvm.org/D62503
More information about the lldb-commits
mailing list