This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: fix D language definition


I'm checking this in.

A user on irc pointed out that gdb would crash in linespec if the
current language was D.

The problem is a NULL pointer in the language definition.

Tom

2012-03-15  Tom Tromey  <tromey@redhat.com>

	* d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
	iterate_over_symbols.

Index: d-lang.c
===================================================================
RCS file: /cvs/src/src/gdb/d-lang.c,v
retrieving revision 1.10
diff -u -r1.10 d-lang.c
--- d-lang.c	2 Mar 2012 19:29:00 -0000	1.10
+++ d-lang.c	15 Mar 2012 14:01:26 -0000
@@ -274,7 +274,7 @@
   default_pass_by_reference,
   c_get_string,
   NULL,				/* la_get_symbol_name_cmp */
-  NULL,
+  iterate_over_symbols,
   LANG_MAGIC
 };
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]