* buildsym.c (record_producer): Do nothing if no producer is provided.

This commit is contained in:
Joel Brobecker 2007-02-27 22:57:42 +00:00
parent 6d28409d4a
commit 05279ca074
2 changed files with 9 additions and 0 deletions

View 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

View 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));
}