summaryrefslogtreecommitdiffstats
path: root/binutils/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/debug.c')
-rw-r--r--binutils/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/debug.c b/binutils/debug.c
index b1213d9bdf..3d7d48e2bb 100644
--- a/binutils/debug.c
+++ b/binutils/debug.c
@@ -2183,7 +2183,7 @@ debug_get_real_type (handle, type, list)
for (l = list; l != NULL; l = l->next)
{
- if (l->t == type)
+ if (l->t == type || l == l->next)
{
fprintf (stderr,
_("debug_get_real_type: circular debug information for %s\n"),
OpenPOWER on IntegriCloud