On Thu, 31 Aug 2000, Andrew Cagney wrote:

> 
> Just BTW, if the debug info is corrupt then GDB should report an error()
> and not an internal_error().  Internal errors are more for when gdb's
> internal data structures turn out to be broken (and about to core dump
> :-).
> 
>       enjoy,
>               Andrew


I'll bet then that this error should be an error, rather than
internal_error.
The only place i really see constant static variables used like that is in
libio,
so it's quite possible nobody noticed it before, or it affects such a
small population of users that nobody ever bothered to report it.
The part i love is where you do:
    
(gdb) p __ios_flags::_S_boolalpha
Internal error: could not find static variable _S_boolalpha
(gdb) p '__ios_flags::_S_boolalpha'
No symbol "__ios_flags::_S_boolalpha" in current context.

Dunno which is better, probably neither.
Either the user things something has gone horribly wrong, or thinks were
stupid.
--Dan

Reply via email to