[Bug exp/15364] New: regression with "&&"

tromey at redhat dot com sourceware-bugzilla@sourceware.org
Fri Apr 12 17:53:00 GMT 2013


http://sourceware.org/bugzilla/show_bug.cgi?id=15364

             Bug #: 15364
           Summary: regression with "&&"
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: exp
        AssignedTo: unassigned@sourceware.org
        ReportedBy: tromey@redhat.com
    Classification: Unclassified


This regression was reported on irc.
It comes from my patch 1f8a1ced4eefa4c6052a3e4566781527373eff45

struct s
{
  int x;
};

struct s *s2;

int main()
{
}


(gdb) p s2 && s2->x == 0
Cannot access memory at address 0x0

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the Gdb-prs mailing list