This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/DWARF2] Fallback unknown language to C
Joel Brobecker writes:
> Elena,
>
> > I would prefer to have the partial language support. Joel, any chance
> > you could be bribed into doing it? I think all it would be needed is
> > to create a new language vector and copy/rename some of the
> > c-functions into it.
>
> I had a quicky look and I think it should be pretty simple. However, I
> am not sure this is what you had in mind. Here is what I think might
> work:
>
> - Add a new language in defs.h (``language_partial''?)
> - in c-lang.c: Create a new language vector. It seems that making this
> vector close to identical to the C or Asm language vector should be
> good enough.
>
> Once this is done and integrated, we can then update dwarf2read.c to
> set the language to partial instead of unknown.
>
> Does it correspond to what you were thinking?
Yes, perfect!
elena
> --
> Joel