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 /gdb/buildsym.c | |
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.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r-- | gdb/buildsym.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)); } |