diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-02-27 22:57:42 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-02-27 22:57:42 +0000 |
commit | 05279ca074900b17889d5a5d059099914481d326 (patch) | |
tree | fc69895cf4747d875e831797c16d3db64e1534ac | |
parent | 6d28409d4a62e02fac28ce80dd92041cc66ceb24 (diff) | |
download | gdb-05279ca074900b17889d5a5d059099914481d326.zip gdb-05279ca074900b17889d5a5d059099914481d326.tar.gz gdb-05279ca074900b17889d5a5d059099914481d326.tar.bz2 |
* buildsym.c (record_producer): Do nothing if no producer is provided.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/buildsym.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ef74a7f..754ecc8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/buildsym.c b/gdb/buildsym.c index ae0750a..94800bd 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)); } |