public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "ssbssa at sourceware dot org" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug c++/8218] ptype claims destructors have arg
Date: Sun, 14 Jan 2024 14:28:42 +0000	[thread overview]
Message-ID: <bug-8218-4717-SY55vcW9Fd@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-8218-4717@http.sourceware.org/bugzilla/>

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |8.0
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |ssbssa at sourceware dot org

--- Comment #7 from Hannes Domani <ssbssa at sourceware dot org> ---
(In reply to Sourceware Commits from comment #5)
> The master branch has been updated by Keith Seitz <kseitz@sourceware.org>:
> 
> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;
> h=5f4d10850850cd95af5e95a16848c8c07a273d88
> 
> commit 5f4d10850850cd95af5e95a16848c8c07a273d88
> Author: Keith Seitz <keiths@redhat.com>
> Date:   Fri Mar 10 10:32:09 2017 -0800
> 
>     c++/8218: Destructors w/arguments.
>     
>     For a long time now, c++/8218 has noted that GDB is printing argument
> types
>     for destructors:
>     
>     (gdb) ptype A
>     type = class A {
>       public:
>         ~A(int);
>     }
>     
>     This happens because cp_type_print_method_args doesn't ignore artificial
>     arguments.  [It ignores the first `this' pointer because it simply skips
>     the first argument for any non-static function.]
>     
>     This patch fixes this:
>     
>     (gdb) ptype  A
>     type = class A {
>       public:
>         ~A();
>     }
>     
>     I've adjusted gdb.cp/templates.exp to account for this and added a new
>     passing regexp.
>     
>     gdb/ChangeLog
>     
>     	PR c++/8218
>     	* c-typeprint.c (cp_type_print_method_args): Skip artificial arguments.

Fixed.

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

      parent reply	other threads:[~2024-01-14 14:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-8218-4717@http.sourceware.org/bugzilla/>
2013-01-22 17:34 ` dblaikie at gmail dot com
2013-01-22 18:05 ` tromey at redhat dot com
2024-01-14 14:28 ` ssbssa at sourceware dot org [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-8218-4717-SY55vcW9Fd@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).