Re: [RFA/mips] mips32 frame code simplification...

Andrew Cagney
2004-09-15T19:57:07Z

> Joel Brobecker writes:
>
>>> I don't think that's the problem. I get an infinite loop inside GDB
>>> itself (backtracing from a signal handler I think), and that causes
>>> the expect/dejagnu buffer to get full.
>
>
> How about:
>
> set backtrace limit 1000
>
> That would look good in default_gdb_start and mi_gdb_start.

Someone somewhere pointed out (with a patch) that
set backtrace limit 1000
didn't actually work! I've lost the patch but am working on a tested fix.

Now if only I could remember who posted the original patch.

Andrew

> However a backtrace limit of 1000 would still overflow the
> 20000-character buffer. Also I've heard that "set backtrace limit"
> has a bug these days.
>
> We could also change the individual "backtrace" and "bt" calls to
> "backtrace 100". That's simpler and more effective, but it fixes
> just one nit at a time.
>
>
>>> And apparently, this just disables dejagnu for the rest of the run
>>> (can't spawn the compiler nor the debugger anymore for instance).
>>> Maybe there is a way of flushing that buffer when we do a gdb_exit?
>
>
> I don't know enough about expect to get into that area. :(
>