This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Tolerate filenames present in symtabs but absent from macroinfo


!       (__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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]