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/DWARF2] Fallback unknown language to C


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?
-- 
Joel


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