Re: RFA: Tolerate filenames present in symtabs but absent from macro info

Andrew Cagney
2002-11-06T18:34:22Z

> ! (__FILE__, __LINE__,
> ! "\n"
> ! "the symtab `%s' refers to a preprocessor macro table which doesn't\n"
>
>
> What's the "\n" for? The sentence should also start with a capital (and probably not end in a full-stop).

Hmm, oops, PS.

> ! ms->file = macro_lookup_inclusion (main, sal.symtab->filename);
>
> ! if (! ms->file)
> ! internal_error
> ! (__FILE__, __LINE__,
> ! "\n"
> ! "the symtab `%s' refers to a preprocessor macro table which doesn't\n"
> ! "have any record of processing a file by that name.\n",
> ! sal.symtab->filename);
> !
> ! ms->line = sal.line;

Is this an error? The problem is caused by invalid input and not GDB's
internal state being somehow corrupt.

(Daniel's suggestion about gdb-test is a good idea.)

Andrew