* buildsym.c (record_producer): Do nothing if no producer is provided.
authorJoel Brobecker <brobecker@gnat.com>
Tue, 27 Feb 2007 22:57:42 +0000 (22:57 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Tue, 27 Feb 2007 22:57:42 +0000 (22:57 +0000)
gdb/ChangeLog
gdb/buildsym.c

index ef74a7fa1681d938f6d52f7cc63cf36940d18738..754ecc84d34b8b6d10c47f5962c3d1e73e62c0a9 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 ae0750a3a2eb77f872099f3eb7f5897508b6f2b8..94800bd76b4e4abbc01ba886b85494f766c8bbdc 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));
 }