aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/whatis.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2020-09-17 23:33:41 +0100
committerPedro Alves <pedro@palves.net>2020-09-18 00:06:17 +0100
commit0a229804ab1d9d442295010633ba565bdb1c9e2d (patch)
tree0e6484f3bbd3d83e2f10e312f524d0d39c34f5f3 /gdb/testsuite/gdb.base/whatis.c
parentc3e5138dccad66deda24fadb831f27881fa64b2d (diff)
downloadbinutils-0a229804ab1d9d442295010633ba565bdb1c9e2d.zip
binutils-0a229804ab1d9d442295010633ba565bdb1c9e2d.tar.gz
binutils-0a229804ab1d9d442295010633ba565bdb1c9e2d.tar.bz2
gdb.base/{exprs,ptype,ptype1,setvar,whatis}.c C++ify
This adjusts: gdb.base/{exprs,ptype,ptype1,setvar,whatis}.c, to make them buildable as C++ programs. gdb/testsuite/ChangeLog: * gdb.base/exprs.c: Replace 'this' with 'self' throughout. * gdb.base/ptype.c: : Replace 'this' with 'self' throughout. (charfoo, intfoo): Define full prototype. * gdb.base/ptype1.c (charfoo): Define full prototype. * gdb.base/setvar.c: Replace 'this' with 'self' throughout. * gdb.base/whatis.c: Replace 'this' with 'self' throughout.
Diffstat (limited to 'gdb/testsuite/gdb.base/whatis.c')
-rw-r--r--gdb/testsuite/gdb.base/whatis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/whatis.c b/gdb/testsuite/gdb.base/whatis.c
index 11c84d2..743cb61 100644
--- a/gdb/testsuite/gdb.base/whatis.c
+++ b/gdb/testsuite/gdb.base/whatis.c
@@ -207,7 +207,7 @@ double v_double_func () { return (0.0); }
struct link {
struct link *next;
#ifdef __STDC__
- struct link *(*linkfunc) (struct link *this, int flags);
+ struct link *(*linkfunc) (struct link *self, int flags);
#else
struct link *(*linkfunc) ();
#endif
@@ -217,7 +217,7 @@ struct link {
union tu_link {
struct link *next;
#ifdef __STDC__
- struct link *(*linkfunc) (struct link *this, int flags);
+ struct link *(*linkfunc) (struct link *self, int flags);
#else
struct link *(*linkfunc) ();
#endif