+2020-09-17  Pedro Alves  <pedro@palves.net>
+
+       * 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.
+
 2020-09-17  Pedro Alves  <pedro@palves.net>
 
        * gdb.base/charset.c [__cplusplus] (wchar_t, char16_t, char32_t):
 
 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
 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
 
 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
 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
 
 /***********/
 
-extern char charfoo ();
+extern char charfoo (int);
 
 typedef int foo;
 
-foo intfoo (afoo)
+foo intfoo (int afoo)
 {
   charfoo (afoo);
   return (afoo * 2);
 
 typedef char foo;
 
-foo charfoo (afoo)
+foo charfoo (int afoo)
 {
   return (afoo * 2);
 }
 
 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
 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
 
 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
 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