[Bug 25050] New: 'register read -a' provides wrong values of FPU x87 Special Purpose Registers for x86_64-FreeBSD platform

Bug ID 25050
Summary ‘register read -a’ provides wrong values of FPU x87 Special Purpose Registers for x86_64-FreeBSD platform
Product lldb
Version unspecified
Hardware PC
OS FreeBSD
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter abhiinnitald@gmail.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

Created attachment 15002 [details]
Source file (compiled to produce the failure)

Environment: FreeBSD 10.2-RELEASE on x86_64, Compiler: clang-3.7.0
LLDB : Built from source (Checked out from public repo; revision 248711)

Commands to compile inferior:
  clang++ -g -O0 -std=c++11 -fno-builtin -m64 source.cpp -o a.out

Commands executed to pose the bug:

$ lldb a.out
(lldb) b 7
(lldb) run
(lldb) register read -a
(lldb) next

  'next' instruction executes some assembly instructions to push float values
on 'st' stack

(lldb) register read -a

Value of fstat and ftag didn't change compared to their values in previous
register read -a command.

This bug is similar to bug 24457 but for FreeBSD platform.
I am working on it and submit a patch soon.

abhiinnitald@gmail.com changed bug 25050