This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/22499] New: 8.0 regression: wrongly read $xmm0


https://sourceware.org/bugzilla/show_bug.cgi?id=22499

            Bug ID: 22499
           Summary: 8.0 regression: wrongly read $xmm0
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: jan.kratochvil at redhat dot com
  Target Milestone: ---

gdb prints wrong result of double variable in -mavx mode
https://bugzilla.redhat.com/show_bug.cgi?id=1515209
by the courtesy of Peter Steinbach

398e081380a204e3b9fb4eb4da069ccf471f930e is the first bad commit
commit 398e081380a204e3b9fb4eb4da069ccf471f930e
Author: Pedro Alves <palves@redhat.com>
Date:   Wed Sep 30 19:23:39 2015 +0100
    x86/Linux: reenable all-stop on top of non-stop

cat test.cpp <<EOH
#include <iostream>

int main(int argc, char** argv){

    double rvalue = 0.3;
    std::cout << "- " << rvalue << "\n";
    double a,b;

    rvalue = 0.3;

    std::cout << ": " << rvalue << "\n";
    return rvalue < 1. ? 0 : 1;
}
EOH

gdb -batch ./test -ex 'b 5' -ex r -ex step -ex 'p rvalue'
Actual results:
$1 = 7.0607433379231282e-184
Expected results:
$1 = 0.29999999

gdb -batch ./test -ex 'b 5' -ex r -ex stepi -ex 'p/x $xmm0' 2>&1|tee
/proc/self/fd/2|grep 0x3fd3333333333333

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]