2011-03-01 Michael Snyder <msnyder@vmware.com>
authorMichael Snyder <msnyder@vmware.com>
Wed, 2 Mar 2011 00:37:29 +0000 (00:37 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 2 Mar 2011 00:37:29 +0000 (00:37 +0000)
* dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.

gdb/ChangeLog
gdb/dwarf2read.c

index 53b05e939f86c72ba505335e559025ddf320721d..66006b16ecf4d4ef4aa3a216cbf0e9f0ecf44351 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-01  Michael Snyder  <msnyder@vmware.com>
 
+       * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
+
        * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
 
        * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
index c62e324f588e8298a68be3484b0371278b995581..a255eefd5366de99dc43f07c6b7d4108d643099c 100644 (file)
@@ -4849,7 +4849,7 @@ dwarf2_compute_name (char *name, struct die_info *die, struct dwarf2_cu *cu,
              xfree (prefixed_name);
            }
          else
-           fputs_unfiltered (name ? name : "", buf);
+           fputs_unfiltered (name, buf);
 
          /* Template parameters may be specified in the DIE's DW_AT_name, or
             as children with DW_TAG_template_type_param or