public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 2/5] Updates d_language_defn to not use macro expansion
@ 2014-01-09 13:07 Iain Buclaw
  2014-01-09 18:15 ` Tom Tromey
  0 siblings, 1 reply; 10+ messages in thread
From: Iain Buclaw @ 2014-01-09 13:07 UTC (permalink / raw)
  To: gdb-patches

[-- 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-18 18:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-09 13:07 [PATCH 2/5] Updates d_language_defn to not use macro expansion Iain Buclaw
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

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).