From: Joel Brobecker Date: Tue, 27 Feb 2007 22:57:42 +0000 (+0000) Subject: * buildsym.c (record_producer): Do nothing if no producer is provided. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=05279ca074900b17889d5a5d059099914481d326;p=binutils-gdb.git * buildsym.c (record_producer): Do nothing if no producer is provided. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ef74a7fa168..754ecc84d34 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-02-26 Joel Brobecker + + * buildsym.c (record_producer): Do nothing if no producer is provided. + 2007-02-28 Nick Roberts * varobj.c (varobj_update): Remove unused local. Use gdb_assert diff --git a/gdb/buildsym.c b/gdb/buildsym.c index ae0750a3a2e..94800bd76b4 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -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)); }