This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/mips] mips32 frame code simplification...
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.
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. :(