mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
gdb.mi/var-cmd.c C++ify
This adjusts gdb.mi/var-cmd.c to make it buildable as a C++ program. gdb/testsuite/ChangeLog: * gdb.mi/var-cmd.c (do_anonymous_type_tests): Add cast.
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
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>
|
||||
|
||||
* gdb.base/exprs.c: Replace 'this' with 'self' throughout.
|
||||
|
@ -566,7 +566,7 @@ do_anonymous_type_tests (void)
|
||||
};
|
||||
} v = {1, {2}, {3}};
|
||||
|
||||
anon = malloc (sizeof (struct anonymous));
|
||||
anon = (struct anonymous *) malloc (sizeof (struct anonymous));
|
||||
anon->a = 1;
|
||||
anon->b = 2;
|
||||
anon->c = (char *) 3;
|
||||
|
Reference in New Issue
Block a user