From 62d5b8da6aa3ebe70ba85705c5216c3a137f133b Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Wed, 2 Mar 2011 00:37:29 +0000 Subject: [PATCH] 2011-03-01 Michael Snyder * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here. --- gdb/ChangeLog | 2 ++ gdb/dwarf2read.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 + * 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 -- 2.7.4