diff options
author | Doug Evans <dje@google.com> | 2012-07-10 03:49:25 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-07-10 03:49:25 +0000 |
commit | b74db4368dc89ddbba419ea4fa7acaa27df03bfd (patch) | |
tree | 28903c208d84ee21eb99be96521de57bea9d85d9 /gdb | |
parent | fd55216c81fd25259ef30a5914ee82b727eddd8b (diff) | |
download | gdb-b74db4368dc89ddbba419ea4fa7acaa27df03bfd.zip gdb-b74db4368dc89ddbba419ea4fa7acaa27df03bfd.tar.gz gdb-b74db4368dc89ddbba419ea4fa7acaa27df03bfd.tar.bz2 |
* buildsym.c (start_subfile): Remove unnecessary check for
name == NULL.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/buildsym.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4ebefde..c866c5b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-07-09 Doug Evans <dje@google.com> + * 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 f1fb4be..428d332 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. */ |