aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPedro Alves <pedro@palves.net>2020-09-17 23:33:42 +0100
committerPedro Alves <pedro@palves.net>2020-09-18 00:07:03 +0100
commitd4bcee5cccce0ef4acb6f7cb571f439bba07df7f (patch)
tree7e0200960bf2a1094ef1b648a67fd9b195e2ef3d /gdb/testsuite
parent81f904895e839b19091832bb83f353d2f4963939 (diff)
downloadgdb-d4bcee5cccce0ef4acb6f7cb571f439bba07df7f.zip
gdb-d4bcee5cccce0ef4acb6f7cb571f439bba07df7f.tar.gz
gdb-d4bcee5cccce0ef4acb6f7cb571f439bba07df7f.tar.bz2
gdb.python/{py-framefilter-mi,py-framefilter}.c C++ify
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/py-framefilter-mi.c4
-rw-r--r--gdb/testsuite/gdb.python/py-framefilter.c8
3 files changed, 11 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 75a4c2d..a5a35af 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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.
2020-09-17 Pedro Alves <pedro@palves.net>
diff --git a/gdb/testsuite/gdb.python/py-framefilter-mi.c b/gdb/testsuite/gdb.python/py-framefilter-mi.c
index 1077906..bc2ad1e 100644
--- a/gdb/testsuite/gdb.python/py-framefilter-mi.c
+++ b/gdb/testsuite/gdb.python/py-framefilter-mi.c
@@ -83,8 +83,8 @@ void funca(void)
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;
diff --git a/gdb/testsuite/gdb.python/py-framefilter.c b/gdb/testsuite/gdb.python/py-framefilter.c
index d98005f..675a0c5 100644
--- a/gdb/testsuite/gdb.python/py-framefilter.c
+++ b/gdb/testsuite/gdb.python/py-framefilter.c
@@ -84,8 +84,8 @@ void funca(void)
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;
@@ -112,8 +112,8 @@ int func2(int f)
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;