summaryrefslogtreecommitdiff
path: root/binutils/debug.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-05-12 11:10:24 +0000
committerNick Clifton <nickc@redhat.com>2003-05-12 11:10:24 +0000
commit69c0278c2aa1237e95f4f0a5792f88134a0d0362 (patch)
treebf4f76eb8263e736a8b2e9a55390af271bbeb52b /binutils/debug.c
parent70f4e17a31cb2bdaf232036037401f7f6fa59f7d (diff)
downloadbinutils-redhat-69c0278c2aa1237e95f4f0a5792f88134a0d0362.tar.gz
Extend test for circualr debug references.
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"),