This adjusts:
gdb.python/{py-framefilter-mi,py-framefilter}.c
to make them buildable as C++ programs.
gdb/testsuite/ChangeLog:
* gdb.python/py-framefilter-mi.c (funca): Add casts.
* gdb.python/py-framefilter.c.c (funca, func2): Add casts.
+2020-09-17 Pedro Alves <pedro@palves.net>
+
+ * gdb.python/py-framefilter-mi.c (funca): Add casts.
+ * gdb.python/py-framefilter.c.c (funca, func2): Add casts.
+
2020-09-17 Pedro Alves <pedro@palves.net>
* gdb.mi/var-cmd.c (do_anonymous_type_tests): Add cast.
fb.f = 42;
fb.s = 19;
- bf = malloc (sizeof (foobar));
- bf->nothing = malloc (128);
+ bf = (foobar *) malloc (sizeof (foobar));
+ bf->nothing = (char *) malloc (128);
bf->nothing = "Bar Foo";
bf->f = 24;
bf->s = 91;
fb.f = 42;
fb.s = 19;
- bf = alloca (sizeof (foobar));
- bf->nothing = alloca (128);
+ bf = (foobar *) alloca (sizeof (foobar));
+ bf->nothing = (char *) alloca (128);
bf->nothing = "Bar Foo";
bf->f = 24;
bf->s = 91;
fb.f = 84;
fb.s = 38;
- bf = alloca (sizeof (foobar));
- bf->nothing = alloca (128);
+ bf = (foobar *) alloca (sizeof (foobar));
+ bf->nothing = (char *) alloca (128);
bf->nothing = "Elided Bar Foo";
bf->f = 48;
bf->s = 182;