public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: gdb-patches@sourceware.org
Subject: [RFC 10/18] gdb.mi/var-cmd.c C++ify
Date: Mon, 14 Sep 2020 01:14:29 +0100	[thread overview]
Message-ID: <20200914001437.31157-11-pedro@palves.net> (raw)
In-Reply-To: <20200914001437.31157-1-pedro@palves.net>

This adjusts gdb.mi/var-cmd.c to make it buildable as a C++ program.
---
 gdb/testsuite/gdb.mi/var-cmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/testsuite/gdb.mi/var-cmd.c b/gdb/testsuite/gdb.mi/var-cmd.c
index 0529b67c7f1..f209106dd65 100644
--- a/gdb/testsuite/gdb.mi/var-cmd.c
+++ b/gdb/testsuite/gdb.mi/var-cmd.c
@@ -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;
-- 
2.14.5


  parent reply	other threads:[~2020-09-14  0:15 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-14  0:14 [RFC 00/18] Allow building (more) C tests with a C++ compiler Pedro Alves
2020-09-14  0:14 ` [RFC 02/18] gdb.base/display.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 03/18] gdb.base/break.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 04/18] gdb.base/nested-addr.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 05/18] gdb.base/examine-backward.exp C++ify and Clang Pedro Alves
2020-09-14  0:14 ` [RFC 06/18] gdb.base/printcmds.c C++-ify Pedro Alves
2020-09-14  0:14 ` [RFC 07/18] gdb.base/watchpoint.{c,exp} Pedro Alves
2020-09-14  0:14 ` [RFC 08/18] gdb.base/charset.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 09/18] gdb.base/{exprs,ptype,ptype1,setvar,whatis}.c C++ify Pedro Alves
2020-09-14  0:14 ` Pedro Alves [this message]
2020-09-14  0:14 ` [RFC 11/18] gdb.python/{py-framefilter-mi,py-framefilter}.c C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 13/18] gdb.base/{prologue,symbol-alias}.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 14/18] gdb.base/share-env-with-gdbserver.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 15/18] gdb.base/sizeof.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 16/18] gdb.python/py-as-string.exp C++ify Pedro Alves
2020-09-14  0:14 ` [RFC 17/18] gdb.python/py-frame-inline.exp and C++ Pedro Alves
2020-09-14  0:14 ` [RFC 18/18] gdb.cp/call-c.exp C++ify Pedro Alves
2020-09-14 20:18 ` [RFC 00/18] Allow building (more) C tests with a C++ compiler Tom Tromey
2020-09-16 11:39   ` Pedro Alves
2020-09-17 23:11     ` Pedro Alves
2020-09-16 11:38 ` [RESEND][RFC 01/18] gdb.base/find.exp C++ify Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200914001437.31157-11-pedro@palves.net \
    --to=pedro@palves.net \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).