aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2007-02-27 22:57:42 +0000
committerJoel Brobecker <brobecker@gnat.com>2007-02-27 22:57:42 +0000
commit05279ca074900b17889d5a5d059099914481d326 (patch)
treefc69895cf4747d875e831797c16d3db64e1534ac /gdb/buildsym.c
parent6d28409d4a62e02fac28ce80dd92041cc66ceb24 (diff)
downloadgdb-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.c5
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));
}