public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Iain Buclaw <ibuclaw@gdcproject.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/5] Updates d_language_defn to not use macro expansion
Date: Thu, 09 Jan 2014 13:07:00 -0000	[thread overview]
Message-ID: <CABOHX+cJ34G1FA240ZdV8xNsn0fqGezDNcu0aY5k7KZ8=X6_jA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

D doesn't have macros, so it makes little sense to use macro_expansion_c.

2014-01-09  Iain Buclaw  <ibuclaw@gdcproject.org>

        * d-lang.c (d_language_defn): Change macro_expansion_c to
        macro_expansion_no.

---

[-- Attachment #2: dlang-p2.patch --]
[-- Type: text/x-patch, Size: 907 bytes --]

 gdb/ChangeLog |    5 +++++
 gdb/d-lang.c  |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gdb/d-lang.c b/gdb/d-lang.c
index 13b5438..3775e4b 100644
--- a/gdb/d-lang.c
+++ b/gdb/d-lang.c
@@ -244,7 +244,7 @@ static const struct language_defn d_language_defn =
   range_check_off,
   case_sensitive_on,
   array_row_major,
-  macro_expansion_c,
+  macro_expansion_no,
   &exp_descriptor_c,
   c_parse,
   c_error,
@@ -259,8 +259,8 @@ static const struct language_defn d_language_defn =
   c_value_print,		/* Print a top-level value.  */
   default_read_var_value,	/* la_read_var_value */
   NULL,				/* Language specific skip_trampoline.  */
-  "this",
-  basic_lookup_symbol_nonlocal, 
+  "this",			/* name_of_this */
+  basic_lookup_symbol_nonlocal,
   basic_lookup_transparent_type,
   d_demangle,			/* Language specific symbol demangler.  */
   NULL,				/* Language specific

             reply	other threads:[~2014-01-09 13:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09 13:07 Iain Buclaw [this message]
2014-01-09 18:15 ` Tom Tromey
2014-01-09 18:32   ` Iain Buclaw
2014-01-10 12:06     ` Iain Buclaw
2014-01-10 17:14       ` Tom Tromey
2014-01-16 10:59         ` Iain Buclaw
2014-01-16 14:34           ` Tom Tromey
2014-01-16 17:03             ` Iain Buclaw
2014-01-16 17:11               ` Tom Tromey
2014-01-18 18:21         ` Iain Buclaw

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='CABOHX+cJ34G1FA240ZdV8xNsn0fqGezDNcu0aY5k7KZ8=X6_jA@mail.gmail.com' \
    --to=ibuclaw@gdcproject.org \
    --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).