aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2011-03-02 00:37:29 +0000
committerMichael Snyder <msnyder@vmware.com>2011-03-02 00:37:29 +0000
commit62d5b8da6aa3ebe70ba85705c5216c3a137f133b (patch)
tree016f7361903e354288b4b6c9cf12b4c1852e5b79
parent85c378b1130dad6ec8765d72a96f1c6ea83fa01b (diff)
downloadgdb-62d5b8da6aa3ebe70ba85705c5216c3a137f133b.zip
gdb-62d5b8da6aa3ebe70ba85705c5216c3a137f133b.tar.gz
gdb-62d5b8da6aa3ebe70ba85705c5216c3a137f133b.tar.bz2
2011-03-01 Michael Snyder <msnyder@vmware.com>
* dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/dwarf2read.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 53b05e9..66006b1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index c62e324..a255eef 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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