Infinite loop in make_cv_type
Richard Earnshaw
rearnsha@arm.com
Fri Feb 22 11:45:00 GMT 2002
> Any suggestions as to how the stabs reader might be getting ahead of
> itself? Is there another function that might be returning the stabs
> string? I don't think dbx_next_symbol_text has ever returned this
> earlier...
Dead simple really. The stabs on the ARM are broken into very short
strings for historical reasons (there was once an assembler that couldn't
cope with stabs strings of more than about 100 characters). We are simply
running off the end of a stabs string without calling STABS_CONTINUE.
Thus we end up parsing the following string twice: once on the overrun and
the second when dbx_next_symbol_text returns it.
OK to apply?
R.
<date> Richard Earnshaw (rearnsha@arm.com)
* stabsread.c (read_member_functions): Call STABS_CONTINUE after
skipping a method.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-stab.patch
Type: text/x-patch
Size: 445 bytes
Desc: gdb-stab.patch
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020222/fc1b35ad/attachment.bin>
More information about the Gdb-patches
mailing list