From b74db4368dc89ddbba419ea4fa7acaa27df03bfd Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 10 Jul 2012 03:49:25 +0000 Subject: [PATCH] * buildsym.c (start_subfile): Remove unnecessary check for name == NULL. --- gdb/ChangeLog | 3 +++ gdb/buildsym.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ebefdedd7..c866c5b942 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-07-09 Doug Evans + * buildsym.c (start_subfile): Remove unnecessary check for + name == NULL. + * psymtab.c (allocate_psymtab): Use host_address_to_string. * dwarf2read.c (load_full_type_unit): Simplify. diff --git a/gdb/buildsym.c b/gdb/buildsym.c index f1fb4be4f3..428d332fcc 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -572,7 +572,7 @@ start_subfile (const char *name, const char *dirname) current_subfile = subfile; /* Save its name and compilation directory name. */ - subfile->name = (name == NULL) ? NULL : xstrdup (name); + subfile->name = xstrdup (name); subfile->dirname = (dirname == NULL) ? NULL : xstrdup (dirname); /* Initialize line-number recording for this subfile. */ -- 2.34.1