[Lldb-commits] [PATCH] D61210: [lldb] [lit] Introduce tests for reading x86 general purpose registers
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Apr 27 00:25:11 PDT 2019
mgorny added a comment.
GCC refuses to build this with:
Inputs/x86-64-gp-read.cpp: In function ‘int main()’:
Inputs/x86-64-gp-read.cpp:31:1: error: bp cannot be used in asm here
Inputs/x86-gp-read.cpp: In function ‘int main()’:
Inputs/x86-gp-read.cpp:31:1: error: bp cannot be used in asm here
Clang doesn't complain but it also seems to generally exhibit special assumptions about *bp not being touched by assembly. In this particular case, it seems to generate correct code (with push/pop for rbp around my code).
CHANGES SINCE LAST ACTION
More information about the lldb-commits