public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24789] gdb thinks an int is not an int
       [not found] <bug-24789-4717@http.sourceware.org/bugzilla/>
@ 2020-04-01 17:16 ` cvs-commit at gcc dot gnu.org
  2020-04-01 17:20 ` ssbssa at yahoo dot de
  2020-04-01 18:07 ` tromey at sourceware dot org
  2 siblings, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-04-01 17:16 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Hannes Domani <ssbssa@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=60e22c1eacb0df32aeeeb78c53cfd46c53a3770f

commit 60e22c1eacb0df32aeeeb78c53cfd46c53a3770f
Author: Hannes Domani <ssbssa@yahoo.de>
Date:   Tue Mar 31 14:49:06 2020 +0200

    Allow pointer arithmetic with integer references

    Considering these variables:
    int i = 3;
    int &iref = i;

    It's not possible to do any pointer arithmetic with iref:
    (gdb) p &i+iref
    Argument to arithmetic operation not a number or boolean.

    So this adds checks for references to integers in pointer arithmetic.

    gdb/ChangeLog:

    2020-04-01  Hannes Domani  <ssbssa@yahoo.de>

            PR gdb/24789
            * eval.c (is_integral_or_integral_reference): New function.
            (evaluate_subexp_standard): Allow integer references in
            pointer arithmetic.

    gdb/testsuite/ChangeLog:

    2020-04-01  Hannes Domani  <ssbssa@yahoo.de>

            PR gdb/24789
            * gdb.cp/misc.cc: Add integer reference variable.
            * gdb.cp/misc.exp: Add test.

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

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

* [Bug c++/24789] gdb thinks an int is not an int
       [not found] <bug-24789-4717@http.sourceware.org/bugzilla/>
  2020-04-01 17:16 ` [Bug c++/24789] gdb thinks an int is not an int cvs-commit at gcc dot gnu.org
@ 2020-04-01 17:20 ` ssbssa at yahoo dot de
  2020-04-01 18:07 ` tromey at sourceware dot org
  2 siblings, 0 replies; 3+ messages in thread
From: ssbssa at yahoo dot de @ 2020-04-01 17:20 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at yahoo dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at yahoo dot de

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

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

* [Bug c++/24789] gdb thinks an int is not an int
       [not found] <bug-24789-4717@http.sourceware.org/bugzilla/>
  2020-04-01 17:16 ` [Bug c++/24789] gdb thinks an int is not an int cvs-commit at gcc dot gnu.org
  2020-04-01 17:20 ` ssbssa at yahoo dot de
@ 2020-04-01 18:07 ` tromey at sourceware dot org
  2 siblings, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2020-04-01 18:07 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.1
                 CC|                            |tromey at sourceware dot org
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Fixed.

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

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

end of thread, other threads:[~2020-04-01 18:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-24789-4717@http.sourceware.org/bugzilla/>
2020-04-01 17:16 ` [Bug c++/24789] gdb thinks an int is not an int cvs-commit at gcc dot gnu.org
2020-04-01 17:20 ` ssbssa at yahoo dot de
2020-04-01 18:07 ` tromey at sourceware dot org

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