mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-16 08:36:43 +00:00
2010-02-08 Tristan Gingold <gingold@adacore.com>
* objfiles.c (objfile_separate_debug_iterate): Do not iterate on brothers of the parent.
This commit is contained in:
parent
a9f844b107
commit
399f313b12
@ -1,3 +1,8 @@
|
||||
2010-02-09 Tristan Gingold <gingold@adacore.com>
|
||||
|
||||
* objfiles.c (objfile_separate_debug_iterate): Do not iterate on
|
||||
brothers of the parent.
|
||||
|
||||
2010-02-08 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR c++/8017:
|
||||
|
@ -392,18 +392,21 @@ objfile_separate_debug_iterate (const struct objfile *parent,
|
||||
{
|
||||
struct objfile *res;
|
||||
|
||||
/* If any, return the first child. */
|
||||
res = objfile->separate_debug_objfile;
|
||||
if (res)
|
||||
return res;
|
||||
|
||||
res = objfile->separate_debug_objfile_link;
|
||||
if (res)
|
||||
return res;
|
||||
|
||||
/* Common case where there is no separate debug objfile. */
|
||||
if (objfile == parent)
|
||||
return NULL;
|
||||
|
||||
/* Return the brother if any. Note that we don't iterate on brothers of
|
||||
the parents. */
|
||||
res = objfile->separate_debug_objfile_link;
|
||||
if (res)
|
||||
return res;
|
||||
|
||||
for (res = objfile->separate_debug_objfile_backlink;
|
||||
res != parent;
|
||||
res = res->separate_debug_objfile_backlink)
|
||||
|
Loading…
Reference in New Issue
Block a user