public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/15364] New: regression with "&&"
@ 2013-04-12 17:53 tromey at redhat dot com
  2013-04-12 17:54 ` [Bug exp/15364] " tromey at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-04-12 17:53 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug exp/15364] regression with "&&"
  2013-04-12 17:53 [Bug exp/15364] New: regression with "&&" tromey at redhat dot com
@ 2013-04-12 17:54 ` tromey at redhat dot com
  2013-05-13 16:51 ` cvs-commit at gcc dot gnu.org
  2013-05-13 16:52 ` tromey at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-04-12 17:54 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware    |tromey at redhat dot com
                   |dot org                     |

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug exp/15364] regression with "&&"
  2013-04-12 17:53 [Bug exp/15364] New: regression with "&&" tromey at redhat dot com
  2013-04-12 17:54 ` [Bug exp/15364] " tromey at redhat dot com
@ 2013-05-13 16:51 ` cvs-commit at gcc dot gnu.org
  2013-05-13 16:52 ` tromey at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2013-05-13 16:51 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-05-13 16:51:53 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    tromey@sourceware.org    2013-05-13 16:51:52

Modified files:
    gdb            : ChangeLog eval.c opencl-lang.c 
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: exprs.c exprs.exp 

Log message:
    PR exp/15364:
    * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
    STRUCTOP_PTR>: Return a not_lval value for
    EVAL_AVOID_SIDE_EFFECTS.
    * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
    for EVAL_AVOID_SIDE_EFFECTS.
    gdb/testsuite
    * gdb.base/exprs.exp (test_expr): Add regression test.
    * gdb.base/exprs.c (null_t_struct): New global.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15548&r2=1.15549
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/eval.c.diff?cvsroot=src&r1=1.182&r2=1.183
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/opencl-lang.c.diff?cvsroot=src&r1=1.23&r2=1.24
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3656&r2=1.3657
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/exprs.c.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/exprs.exp.diff?cvsroot=src&r1=1.29&r2=1.30

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug exp/15364] regression with "&&"
  2013-04-12 17:53 [Bug exp/15364] New: regression with "&&" tromey at redhat dot com
  2013-04-12 17:54 ` [Bug exp/15364] " tromey at redhat dot com
  2013-05-13 16:51 ` cvs-commit at gcc dot gnu.org
@ 2013-05-13 16:52 ` tromey at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-05-13 16:52 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |7.7

--- Comment #2 from Tom Tromey <tromey at redhat dot com> 2013-05-13 16:52:45 UTC ---
Fixed.

-- 
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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-05-13 16:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 17:53 [Bug exp/15364] New: regression with "&&" tromey at redhat dot com
2013-04-12 17:54 ` [Bug exp/15364] " tromey at redhat dot com
2013-05-13 16:51 ` cvs-commit at gcc dot gnu.org
2013-05-13 16:52 ` tromey at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).