OSDN Git Service

* buildsym.c (record_producer): Do nothing if no producer is provided.
authorbrobecke <brobecke>
Tue, 27 Feb 2007 22:57:42 +0000 (22:57 +0000)
committerbrobecke <brobecke>
Tue, 27 Feb 2007 22:57:42 +0000 (22:57 +0000)
gdb/ChangeLog
gdb/buildsym.c

index ef74a7f..754ecc8 100644 (file)
@@ -1,3 +1,7 @@
+2007-02-26  Joel Brobecker  <brobecker@adacore.com>
+
+       * buildsym.c (record_producer): Do nothing if no producer is provided.
+
 2007-02-28  Nick Roberts  <nickrob@snap.net.nz>
 
        * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
index ae0750a..94800bd 100644 (file)
@@ -1139,6 +1139,11 @@ record_debugformat (char *format)
 void
 record_producer (const char *producer)
 {
+  /* The producer is not always provided in the debugging info.
+     Do nothing if PRODUCER is NULL.  */
+  if (producer == NULL)
+    return;
+
   current_subfile->producer = savestring (producer, strlen (producer));
 }