diff options
author | Keith Seitz <keiths@redhat.com> | 2017-03-10 10:32:09 -0800 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2017-03-10 10:32:09 -0800 |
commit | 5f4d10850850cd95af5e95a16848c8c07a273d88 (patch) | |
tree | e33eb07a9c11a65587f3a8ed5c6e0ad1627b84a9 /gdb/ChangeLog | |
parent | 7b5d48229b7faa16f69e87fb269f17db0291d89f (diff) | |
download | gdb-5f4d10850850cd95af5e95a16848c8c07a273d88.zip gdb-5f4d10850850cd95af5e95a16848c8c07a273d88.tar.gz gdb-5f4d10850850cd95af5e95a16848c8c07a273d88.tar.bz2 |
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.
gdb/testsuite/ChangeLog
PR c++/8128
* gdb.cp/templates.exp (test_ptype_of_templates): Remove argument
type from destructor regexps.
Add a branch which actually passes the test.
Adjust "ptype t5i" test names.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6f4182d..e4c4432 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-03-10 Keith Seitz <keiths@redhat.com> + + PR c++/8218 + * c-typeprint.c (cp_type_print_method_args): Skip artificial arguments. + 2017-03-08 Pedro Alves <palves@redhat.com> PR gdb/18360 |